brucko wrote: > I have a service that is opened by an Activity for the purposes of > managing a SQLite database the service is passed the application > context when binding... > > serviceIntent = new Intent(getApplicationContext(), > DatabaseService.class); > bindService(serviceIntent, mConnection, Context.BIND_AUTO_CREATE);
You can just use new Intent(this), where this is your Activity. There is no value here in using getApplicationContext(). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en

