hi,
i am using the code "Runtime.getRuntime().exec("uiautomator runtest
SettingsTest.jar -c com.example.tests.SettingsTest");" to run the ui
automator from the android application. Still i get the below exception
02-12 10:15:17.125: I/System.out(1787): INSTRUMENTATION_RESULT:
longMsg=Permission Denial: Do not have permission in call
getContentProviderExternal() from pid=1843, uid=10048 requires
android.permission.ACCESS_CONTENT_PROVIDERS_EXTERNALLY
I am trying to run the application on an emulator with api level 17 /19 .
In both the cases i get the same error.
Can someone comment if you have solved this issue.
thanks
On Tuesday, February 11, 2014 6:32:23 PM UTC+5:30, vineela reddy wrote:
>
>
> On Thursday, March 28, 2013 3:35:31 PM UTC+5:30, Saurabh Rupainwar wrote:
>>
>> Can i run the uiautomator command "adb shell uiautomator runtest
>> LaunchSettings.jar -c com.uia.example.my.LaunchSettings" from an android
>> application (for example on a button click) when I have already pushed the
>> jar at /data/local/tmp/ location ?
>>
>> I have tried doing this from code but nothing is happening, while running
>> the command from shell works perfectly fine.
>>
> You can add adb shell command in the Application
> using Runtime.getRuntime().exec("uiautomator runtest LaunchSettings.jar -c
> com.uia.example.my.LaunchSettings").It is working fine my side.
>
--
You received this message because you are subscribed to the Google Groups
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.