sorry i realized i dont need a first parameter. When i run the app though i get an error that says No Activity found to handle intent i know this is a manifest problem my is shown below,
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.packagename" android:versionCode="1" android:versionName="1.0"> <application android:icon="@drawable/icon" android:label="@string/ app_name"> <activity android:name=".BbClient" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <service android:name=".BbService"/> <activity android:name=".TsandCs"></activity> </application> </manifest> i read one of your older posts here http://www.mail-archive.com/[email protected]/msg10539.html how exactly would i apply that to this mainfest. Thank you for your help, your support is great. On Jul 13, 7:00 pm, Boozel <[email protected]> wrote: > 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

