Why "shell uiautomator dump /sdcard/dump.xml" can't excute on my android app?
-
hi all: I have a problem: "adb shell uiautomator dump /sdcard/dump.xml" this commond can run on pc cmd,but can't use Runtime.getRuntime().exec() api to excute in app , i don't konw what's wrong, beacause of no execption i got. why other shell commond can run ok like "logcat", "ls " , ect i also research the android resource, find it use "app_process /system/bin com.android.commands.uiautomator.Launcher dump /scard/dump.xml" what can i do to run success of the commond "uiautomator dump /sdcard/dump.xml"
-
hi all: I have a problem: "adb shell uiautomator dump /sdcard/dump.xml" this commond can run on pc cmd,but can't use Runtime.getRuntime().exec() api to excute in app , i don't konw what's wrong, beacause of no execption i got. why other shell commond can run ok like "logcat", "ls " , ect i also research the android resource, find it use "app_process /system/bin com.android.commands.uiautomator.Launcher dump /scard/dump.xml" what can i do to run success of the commond "uiautomator dump /sdcard/dump.xml"
-
thanks, i use like that: Runtime.getRuntime().exec("uiautomator dump /sdcard/dump.xml")
-
thanks, i use like that: Runtime.getRuntime().exec("uiautomator dump /sdcard/dump.xml")
-
Thanks Writer For This Amazing Post ! It's Very Helpful to All People Regards, Hindi Pathshala | Dalal Stock
-
You need to provide the full path of the executable. Remember you are not running in a shell environment.
I couldn't get this to work either... what do you mean by provide the full path of the executable?
-
I couldn't get this to work either... what do you mean by provide the full path of the executable?
-
I mean the complete path of the program, from the root directory. As a CTO you should understand this.
That's helpful... :laugh: I'm currently trying to run the uiautomator from within an app in android... and I'm not being able to... It keeps returning an exit code of 9. I have no idea where the uiautomator is located in the android os. Do you have any idea?
-
That's helpful... :laugh: I'm currently trying to run the uiautomator from within an app in android... and I'm not being able to... It keeps returning an exit code of 9. I have no idea where the uiautomator is located in the android os. Do you have any idea?
-
luisvaldez wrote:
Do you have any idea?
Sorry, no. Try Testing UI for Multiple Apps | Android Developers[^].
beh... thanks anyway...
-
thanks, i use like that: Runtime.getRuntime().exec("uiautomator dump /sdcard/dump.xml")
Hi, Were you able to run this? I've tried various solutions but none worked. Please share solution if you have got one. It would be great help.