Been going through the Local Bound Servcie example here:

  http://developer.android.com/guide/topics/fundamentals/bound-services.html


And kinda wondering whats the point - "public IBinder onBind(Intent arg0)"
is essentially being used to retrun a reference to the service class so its
methods can be called directly by the activity. Why not just store a
reference to the Service in a static global and have the Activity call that
directly - it would seem much easier.

e,g

public class MainService extends Service
{

public MainService()
{
}
}
-- 
Lindsay

-- 
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

Reply via email to