Android Question Code does not work.

D

Deleted member 97504

Guest
Hello so this is my full code:
http://pastebin.com/6NKpUxNr
and my problem is:
That code does not work, if I press the button it will just do nothing. If I do it standalone(like sub button1_click and then the shell code it will work)
any idea? I really have no idea why this code is not working :-/
 

DonManfred

Expert
Licensed User
Longtime User
Instead of uploading your code somewhere.

Use the IDE and export your project as ZIP (File-Export as zip) and upload this zip here. You need to have Registered user account for this i guess.

If you want to post a codesnippet you should use the code-tag in the forumeditor.

codetag001.png

codetag002.png


codetag003.png


Against your question. Your code will only work on ROOTED devices as you want to use "su" in your scripts.

To run shell commands you need to use a library.Search the forum for root, superuser, shell... I dont know the name of the library but i think there is one.
 
Upvote 0

barx

Well-Known Member
Licensed User
Longtime User
I don't see the button declared anywhere??
 
Upvote 0
D

Deleted member 97504

Guest
I made it work yesterday I forgot to mension that yesterday I will remove this thread.
 
Upvote 0
Top