Android Question Phone.Shell

Dey

Active Member
Licensed User
Longtime User
Hello everyone
it is possible and how can I give this command
adb shell wm density "240" && adb reboot
thank you
 

DonManfred

Expert
Licensed User
Longtime User
Did you get any error using the adb command from windows commandline?

You cannot use adb from within your app
 
Upvote 0

Dey

Active Member
Licensed User
Longtime User
Did you get any error using the adb command from windows commandline?

You cannot use adb from within your app
Thanks Don
I badly explained myself
It DEALLOCATES command works from adb
this also works by B4A

result = cmd.Shell ("wm density", Null, Sb, StdErr)
I from the density
I can not change it
I made several attempts
Dim value As String = QUOTE & "160" & QUOTE
result = cmd.Shell ("wm density" & value, null, Sb, StdErr)

Error: bad number java.lang.NumberFormatException: Invalid int "" 160 ""
 
Upvote 0
Top