its a service packaged as a .jar so it can be included in other
peoples applications so they will start it and it only needs to pop up
once in the life on the app.
What is the first parameter i must give to the initial intent
deceleration?
i've tried this: Intent test = new Intent(????,"TsandCs.class");

can you suggest a better way to do this?

thanks

On Jul 13, 3:21 pm, Mark Murphy <[email protected]> wrote:
> 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/commonsguyhttp://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