I found it out. Posting it for people who might be interested. Intents are used for this purpose. The Activity Manager command line tool am can accept Intent parameters.
adb shell am -e <param_name> <value> -n <package>/.<Activity_class> can be used to execute the Activity from command line and in the java class intent.getStringExtra("<param name>"); function can be used to retrive the value. HTH avi On Dec 16, 9:04 pm, avi <avinanku...@gmail.com> wrote: > All, > > Is there a way to provide command line parameters to Instrumentation > test case. I know in regular jUnit test cases, we can specify - > D<arg_name>="value". Can I do something similar? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---