Good information.  Thanks.  I'm not using a specific notepad example
to launch my app.  Instead I'm using our own internal app.  I have
access to the code, but how do you know what path to provide to the
application?  I've tried some that I thought would work, such as our
SplashScreen, but my app never comes up.  It does the navigation on
the device, but just without my app running.  I just navigates though
my phone menu.

I'm making the same call like this
device.startActivity(component='com.myapp.SplashScreen')

How does one know what can actually be called with the startActivity
component call?  Any help would be appreciated.

On Jan 11, 10:30 pm, "Hakbong Kim [email protected]"
<[email protected]> wrote:
> Your code works.
> Thanks for your help.
>
> On 1월7일, 오전6시10분, "A. Elk" <[email protected]> wrote:
>
> > Uh, I think the beginning example in theMonkeyRunnerdocumentation is
> > wrong. The initial snippet is very misleading. Someone should report
> > that as a bug.
>
> > Your code listing doesn't show that you installed the package that
> > contains the component you want to start. I assume that you either
> > installed it before you ranMonkeyRunner, or that you left this out of
> > your listing.
>
> > The syntax of the "component" parameter is the same as that for an
> > Android ComponentName: package_name/class_name. Package_name is the
> > Android package name of the .apk containing your application. In your
> > example, assuming that you're using the Note Pad sample app as your
> > application, it's com.example.android.notepad. Class_name is the name
> > of a class that Android can start; it's almost always an extension of
> > android.app.Activity. For the Note Pad sample app, you would probably
> > use com.example.android.notepad.NotesList.
>
> > To ensure you're not doing something wrong, remember to install the
> > package, then try using this code snippet:
>
> > packagename = "com.example.android.notepad"
> > classname = "com.example.android.notepad.NotesList"
> > componentname = packagename + "/" + classname
> > device.StartActivity(component=componentname)
>
> > On Jan 6, 12:28 am, "Hakbong Kim [email protected]"
>
> > <[email protected]> wrote:
> > > I tried to usemonkeyrunner.
> > > A target is Android vmware image.
> > > I checked that press(), takeSnopshot() and drag() are normally
> > > executed.
> > > But, startActivity() is not executed.
>
> > > The first source code is
>
> > >      from com.android.monkeyrunnerimportMonkeyRunner, MonkeyDevice
> > >      device =MonkeyRunner.waitForConnection()
>
> > > device.startActivity(component='com.example.android.notepad.NotesList')
>
> > > The second is
> > > ( I modified a third line referring to a writing of this group )
>
> > >      from com.android.monkeyrunnerimportMonkeyRunner, MonkeyDevice
> > >      device =MonkeyRunner.waitForConnection()
> > >      device.startActivity(component='com.example.android.notepad
> > > \.NotesList')
>
> > > In two cases, the result is same
>
> > > 110106 17:13:42.168:I [main] [com.android.monkeyrunner.MonkeyManager]
> > > Monkey Command: wake.
> > > 110106 17:13:42.310:I [main] [com.android.monkeyrunner.MonkeyManager]
> > > Monkey Command: quit.
>
> > > I tried using startActivity() with other activities. But, the result
> > > is same.
> > > What is right arguments for startActivity() ?

-- 
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

Reply via email to