Hi ATrubka, I had exactly the same problem, and I would know if you get any solution about it??
thanks in advance Laga On Feb 28, 12:38 am, ATrubka <[email protected]> wrote: > I'm trying to connect to a service, but for some reason connection's > onServiceConnected() never gets invoked with no other errors. It's not > the only service I have and they work fine. Even more. This one was > working before as well, but after adding other services to application > it stopped working. I'm probably doing something wrong, but can't find > any problems... > > Debug output below shows that: > 1. bindService was invoked. > 2. AudioPlayerService was created. > 3. AudioPlayerService.onBind() method was invoked. > 4. But connection never received call to onServiceConnected() and as a > result never obtained remote interface. > > Here's onCreate and onBind methods that shows there's nothing that can > slow them down. > > public void onCreate() { > super.onCreate(); > Log.d(getClass().getSimpleName(), "Created"); > } > > public IBinder onBind(Intent intent) { > Log.d(getClass().getSimpleName(), "Binding"); > return _audioPlayerRemoteInterface; > } > > Service configuration > > <service android:name=".services.AudioPlayerService" > android:process=":audioplayerservice" > /> > > Log > > 02-27 16:24:04.392: DEBUG/AudioPlayerServiceConnection(8736): Opening > service connection for intent Intent { comp={com.tourizo.android/ > com.tourizo.android.services.AudioPlayerService} } > 02-27 16:24:04.563: DEBUG/AudioPlayerService(8776): Created > 02-27 16:24:04.573: DEBUG/AudioPlayerService(8776): Binding > 02-27 16:24:04.592: INFO/jdwp(8776): received file descriptor 26 from > ADB > 02-27 16:24:12.682: WARN/ActivityManager(47): Launch timeout has > expired, giving up wake lock! > 02-27 16:24:12.695: WARN/ActivityManager(47): Activity idle timeout > for HistoryRecord{435024a8 {com.tourizo.android/ > com.tourizo.android.activities.ChapterActivity}} > 02-27 16:24:24.393: DEBUG/AndroidRuntime(8736): Shutting down VM > > Could you please help me? Am I doing something wrong? > > Thank you in advance! > A. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

