Hi Romain,

I used that command, This is how I tried...


$ am start com.android.gmail
am start com.android.gmail
Starting: Intent { action=android.intent.action.VIEW
data=com.android.gmail }
Error: Activity not started, unable to resolve Intent
{ action=android.intent.action.VIEW data=com.android.gmail
flags=0x10000000 }

I got the error like this?

but when I try to see the usage details. I am not able to understand
this one. Could you please tell me how to start that email application
without main activity name, with only package name?????

am start
Error: No intent supplied
usage: am [start|broadcast|instrument]
       am start -D INTENT
       am broadcast INTENT
       am instrument [-r] [-e <ARG_NAME> <ARG_VALUE>] [-p <PROF_FILE>]
                [-w] <COMPONENT>

       INTENT is described with:
                [-a <ACTION>] [-d <DATA_URI>] [-t <MIME_TYPE>]
                [-c <CATEGORY> [-c <CATEGORY>] ...]
                [-e|--es <EXTRA_KEY> <EXTRA_STRING_VALUE> ...]
                [--ez <EXTRA_KEY> <EXTRA_BOOLEAN_VALUE> ...]
                [-e|--ei <EXTRA_KEY> <EXTRA_INT_VALUE> ...]
                [-n <COMPONENT>] [-f <FLAGS>] [<URI>]
$



thx
rk

On Jul 8, 9:20 am, Romain Guy <romain...@google.com> wrote:
> Hi,
>
> You can use adb shell am start. The command will give you the
> parameters you can use.
>
>
>
>
>
> On Tue, Jul 7, 2009 at 9:16 PM, rk<raj.10...@gmail.com> wrote:
>
> > hi,
>
> > is there any way to launch applcation from PC through adb by using
> > only package name?
>
> > in my case I don know the main activity name? because I don know the
> > main class name for all android standard applications.
>
> > any pointers or suggestions highly appriciated....
>
> > thx
> > rk
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"android-framework" group.
To post to this group, send email to android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to