D Deleted member 97504 Guest Jul 5, 2016 #1 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 :-/
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 Jul 6, 2016 #2 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. 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
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. 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.
barx Well-Known Member Licensed User Longtime User Jul 6, 2016 #3 I don't see the button declared anywhere?? Upvote 0
D Deleted member 97504 Guest Jul 6, 2016 #4 I made it work yesterday I forgot to mension that yesterday I will remove this thread. Upvote 0