Where is it crashing?
I am running in to a similar problem for I different reasons.
What class is this in in your code?
I don't know if this will help, but try the following code:
// In your activity
private void startService(){
Intent myIntent = new Intent(this, MyService.class);
Bundle b = new Bundle();
b.putSerializable("userBean", user);
myIntent.putExtras(b);
mMyService.startService(myIntent);
}
// In your service
public void onStart(Intent intent, int startId) {
Bundle b = intent.getExtras();
User user = (User) b.getSerializable("userBean");
Log.i("MyService", "User Name: " + user.getName());
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---