hi Qasim,

That's nice to use the am command to start the application with the
main Activity. But in my case I don know the application main Activity
name. So then how can tell the Main Activity name in the component
place.

thx
rk

On Jul 8, 11:30 am, Qasim Ali Khawaja <khawaja.qa...@gmail.com> wrote:
> Look for invoking path in *AndroidManifest.xml *
> like I successfully launch the following examples
>
> *Browser app::*
> # am start -a android.intent.action.MAIN -n 
> com.android.browser/.BrowserActivity
>
> Starting: Intent { action=android.intent.action.MAIN
> comp={com.android.browser/com.android.browser.BrowserActivity} }
> Warning: Activity not started, its current task has been brought to the front
>
> *Settings app::*
> # am start -a android.intent.action.MAIN -n com.android.settings/.Settings
>
> Starting: Intent { action=android.intent.action.MAIN
> comp={com.android.settings/com.android.settings.Settings} }
>
> Regards
>
> On Wed, Jul 8, 2009 at 2:20 AM, Qasim Ali Khawaja
> <khawaja.qa...@gmail.com>wrote:
>
>
>
>
>
> > Hi tried the following Android 1.5
>
> > # am start -a *android.intent.action.call* tel:123456
> > Starting: Intent { action=android.intent.action.call data=tel:123456 }
> > Error: Activity not started, unable to resolve Intent {
> > action=android.intent.action.call data=tel:123456 flags=0x10000000 }
>
> > # am start -a *android.intent.action.CALL* tel:123456
> > Starting: Intent { action=android.intent.action.CALL data=tel:123456 }
> > [1]   Killed                  am start -a android.intent.action.CALL
> > tel:123456
>
> > Regards
> > On Wed, Jul 8, 2009 at 1:04 AM, rk <raj.10...@gmail.com> wrote:
>
> >> 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 -
>
> > --
> > M Qasim Ali -|- BICSE-3B-26 -|- Semester-8
> > +++++++++++++++++++++++++++
> > President, SOMS
>
> > Undergraduate Student
> > Bachelors in Information n Communication Systems Engineering (BICSE)
> > NUST School of Electrical Engineering and computer science, Islamabad
> > (SEECS), Pakistan
> > +++++++++++++++++++++++++++
> > Blog:http://seecsopenmobile.wordpress.com
> > Web:http://openmobilelab.seecs.edu.pk/soms
> > Email: qasim....@seecs.edu.pk
> > mobile: +9203455935526
>
> --
> M Qasim Ali -|- BICSE-3B-26 -|- Semester-8
> +++++++++++++++++++++++++++
> President, SOMS
>
> Undergraduate Student
> Bachelors in Information n Communication Systems Engineering (BICSE)
> NUST School of Electrical Engineering and computer science, Islamabad
> (SEECS), Pakistan
> +++++++++++++++++++++++++++
> Blog:http://seecsopenmobile.wordpress.com
> Web:http://openmobilelab.seecs.edu.pk/soms
> Email: qasim....@seecs.edu.pk
> mobile: +9203455935526- 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