Yes, but you still have to write source code to do so. On Tuesday, September 11, 2012 11:52:04 AM UTC-7, Arjun wrote: > > In robotium its possible to test the Preinstalled application > http://code.google.com/p/robotium/wiki/RobotiumForPreInstalledApps > > On Tue, Sep 11, 2012 at 11:41 PM, Lew <[email protected] <javascript:>>wrote: > >> How do you write a test without source code? >> >> Arjun wrote: >>> >>> Thanks for your reply actually i [sic] am testing testing the APK >>> without source code. >>> >>> Lew wrote: >>> >>> Arjun wrote: >>>>> >>>>> can you pla tel me the example how to use it in case if get >>>>> ArrayList<view> view= solo.getviews(); is comming 0 i mean >>>>> in this case what is the solution can u give me a example >>>>> >>>>> You should introduce new questions as new topics, but here goes. From >>>> a code fragment it's >>>> impossible to be certain. I've seen timing issues, where Views aren't >>>> rendered yet at the time >>>> 'solo' is looking. If you can peg a specific view, say by resource ID >>>> ('R.id.foobar'), you can >>>> wait for a view with something like >>>> >>>> boolean gotView = solo.waitForView(solo.getView(**R.id.foobar)); >>>> >>>> 'getViews()' returns "an ArrayList of all the View objects located in >>>> the focused Activity or Dialog." >>>> >>>> Perhaps your focused 'Activity' or 'Dialog' didn't have any 'View's. >>>> >>>> Show us a complete example that illustrates your issue. >>>> >>>> http://sscce.org/ >>>> >>> >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to >> [email protected]<javascript:> >> To unsubscribe from this group, send email to >> [email protected] <javascript:> >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en >> > >
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

