Category : service

I’m creating an audiobook player, and I’m using MediaSessionCompat related classes to handle notifications. My code is heavily inspired by the android-MediaBrowserService samples ( https://github.com/googlearchive/android-MediaBrowserService ), and i’m not quite understanding it all for the moment ( the createContentIntent espicially ) Here is my simple class in charge of building notifications from a bookPlayer providing ..

Read more

I have 2 services run on 2 different processes like this: <service android:name=".MyService1" android:enabled="true" android:exported="false" android:process=":process1" /> <service android:name=".MyService2" android:enabled="true" android:exported="false" android:process=":process2" /> And in 2 this service, I start the same service. <service android:name=".LogService" android:enabled="true" android:exported="false" android:process=":service" /> In each service in process1 and process2. Intent intent = new Intent(this, LogService.class); startService(intent); Questions: Are ..

Read more

I’m pretty new to programming and android and try to write one of my first app. I want to reschedule notifications after the phone reboot. I stuck on onHandleIntent() when I trying to get access to db. There is nothing happening and no errors. Event.class @Entity(tableName = "event_table") public class Event { @PrimaryKey(autoGenerate = true) ..

Read more

I did reference a binding project in my Xamarin.Android project, but I am having problem implementing the sample project in java into C#. This is de code in the android studio project: Private IProviderBinder providerBinder; private ServiceConnection serviceConnection = new ServiceConnection() { @Override public void onServiceConnected(ComponentName name, IBinder service) { /* we have a connection ..

Read more