Hi all,
I have a use case, an *Android Service is wrapped by a Java package
containing the Init.java class*.
The Applications (Activity) should import the package and instantiate the
Init class.
and work on it.
The bindService is called in the constructor of the Init class.
*My problem here is:*
The instantiation happens immediately returning an object of Init class, but
binding with the Service is not.
*I observe that:**
*1). If i do this way
* onCreate() {
** Init service = new Init(this); //Instantiating and binding
service.create(); //Calling a method in the
Init which requires a service connection handle
}
*The call fails As the Service connection handle is not prepared yet
2). The onServiceConnection is getting called only if there is an event on
the UI
like button click or list item selection.
*I would Like to know:**
*1). What exactly happens between the *
bindService and onServiceConnected *calls
2). Is there any way that we can push the request to call onServiceConnected
immediatly after bindService.
So that i can use the above shown use case.
Any Suggestion, pointers would be really helpful.
--
Shine bright,
(: Naveen Krishna Ch :)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Android Discuss" 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-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---