Can I launch an Android Application from Linux service?

29 views
Skip to first unread message

John Bachus

unread,
May 25, 2012, 1:45:17 PM5/25/12
to android-...@googlegroups.com

Can I launch an Android Application from a Linux service?

If so, do you have sample code to do this?

Dianne Hackborn

unread,
May 26, 2012, 1:47:25 PM5/26/12
to android-...@googlegroups.com
You need to somehow get a startActivity() call into the Activity Manager, which means doing stuff in Java to build the Intent and make the call.

On Fri, May 25, 2012 at 10:45 AM, John Bachus <Singer...@gmx.com> wrote:

Can I launch an Android Application from a Linux service?

If so, do you have sample code to do this?

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.



--
Dianne Hackborn
Android framework engineer
hac...@android.com

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.

Aleksandar Gargenta

unread,
May 26, 2012, 3:45:26 PM5/26/12
to android-...@googlegroups.com
Or just system("am ...") command :-)

Dianne Hackborn

unread,
May 26, 2012, 5:08:31 PM5/26/12
to android-...@googlegroups.com
Note that this is not an API, so we won't guarantee that it won't change across platforms in incompatible ways.
Reply all
Reply to author
Forward
0 new messages