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: android-porti...@googlegroups.com
website: http://groups.google.com/group/android-porting
Regards,
Niral
On Jan 23, 4:27 pm, Dianne Hackborn <hack...@android.com> 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 <ni...@oriolesoftware.com> 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: android-porti...@googlegroups.com<android-porting%2Bunsubscribe@googlegroups.com>
> > website:http://groups.google.com/group/android-porting
>
> --
> Dianne Hackborn
> Android framework engineer
>
> 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 -
Try broadcast receiver or intent filter for "BOOTUP_COMPLETED" notification.
Warm Regards,
Anil
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
> > website:http://groups.google.com/group/android-porting- Hide quoted text -
I dont want to start other application(resides in system/app) but when
I simply delete that I am not able to start android so i think some
are mandatory.
dalkvik is taking time.
system manager is starting so many other services I just need activity
manager as it is require to start an application I want.
So I want as minimum as possible init and only required services to
start by system_server process.
So if I go to system server code and comment out the other services
and only keep activity manager will it do?
Actually my intention is to start only an application at boot up time
no other init.
Regards,
Niral
> > > > unsubscribe: android-porti...@googlegroups.com<android-porting%2Bunsubscribe@googlegroups.com>
> > > > website:http://groups.google.com/group/android-porting-Hide quoted
--
unsubscribe: android-porti...@googlegroups.com
website: http://groups.google.com/group/android-porting
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.
--unsubscribe: android-porti...@googlegroups.com
website: http://groups.google.com/group/android-porting