On Tue, Jul 13, 2010 at 9:15 AM, Boozel <[email protected]> wrote:
> i'd like to Launch an Activity Form a Service.
> I know that this is not best practice for android however i am
> creating an application that is just a service and the first time it
> runs the user needs to accept some terms and conditions (this is the
> activity i need to launch).

What do you think is going to cause the service to run in the first place?

> Can any one help me some code to do this? Is it possible?

You can call startActivity() from a Service. However, you are going to
get a lot of one-star ratings on the Market if you just pop up a set
of terms and conditions unannounced.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android 2.2 Programming Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to