The am command requires that the entire system be running, since it makes calls on the activity manager.
You are mixing two completely different levels of the system. init is the very lowest-level user space code that runs, and zygote is the lowest-level dalkvik stuff. An .apk is the highest-level application concept, and needs all of the other platform (system process with all of the system java code like the window manager) to be up and running for it to be able to do anything. On Tue, Jan 26, 2010 at 8:12 PM, Nilly <[email protected]> wrote: > > I have tried disabling zygote process in init.rc started the .apk > using am start. > > e.g. > am start -a android.intent.action.MAIN -n com.iftitah.android.contact/ > com.iftitah.android.contact.Contact > > but it is not starting saying " IS SYSTEM RUNNING" > can not connect to activity manager.... > > I want to know if i want to start only single application than what > all process is requierd? > > Regards, > Niral > > > > > On Jan 23, 8:36 pm, Anil Sasidharan <[email protected]> wrote: > > Hi, > > > > Try broadcast receiver or intent filter for "BOOTUP_COMPLETED" > notification. > > > > Warm Regards, > > Anil > > > > > > > > On Sat, Jan 23, 2010 at 5:04 PM, Nilly <[email protected]> wrote: > > > hmm, > > > If I have .apk installed already than is it possible to run it on boot > > > up time? > > > > > Regards, > > >Niral > > > > > On Jan 23, 4:27 pm, Dianne Hackborn <[email protected]> wrote: > > >> You can't. You need to have the rest of the system running before you > can > > >> run a .apk. > > > > >> On Fri, Jan 22, 2010 at 8:53 PM, Nilly <[email protected]> > wrote: > > >> > HI All, > > > > >> > I want to run an application at startup.I have .apk file. > > >> > How can I run it at start up? > > > > >> > I have looked at the init.rc but it only shows how to run > process.but > > >> > i have seen that dalvikvm & other process starts .apk file resides > in / > > >> > system/app folder. > > > > >> > If I want to run application (using installing .apk file) at boot up > > >> > time how can i do that? > > > > >> > Rgrds, > > >> >Niral > > > > >> > -- > > >> > unsubscribe: > > >> > [email protected]<android-porting%[email protected]> > <android-porting%2bunsubscr...@googlegroups.com> > > >> > website:http://groups.google.com/group/android-porting > > > > >> -- > > >> Dianne Hackborn > > >> Android framework engineer > > >> [email protected] > > > > >> Note: please don't send private questions to me, as I don't have time > to > > >> provide private support, and so won't reply to such e-mails. All such > > >> questions should be posted on public forums, where I and others can > see and > > >> answer them.- Hide quoted text - > > > > >> - Show quoted text - > > > > > -- > > > unsubscribe: > > > [email protected]<android-porting%[email protected]> > > > website:http://groups.google.com/group/android-porting- Hide quoted > text - > > > > - Show quoted text - > > -- > unsubscribe: > [email protected]<android-porting%[email protected]> > website: http://groups.google.com/group/android-porting > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
