I have a userObject Class(made it parcelable for following implementation) and I wrote the below code in my service. Just want to know, is there any other efficient/easy way then Android Parcelable in which I need not to make my class Parcelable?
public final static String PAR_KEY = "par_key";
userObject currentUser = new userObject(uid,uname,role,status,avatarUrl,profileUrl);
Intent Connect = new Intent("onChatConnect");//add action
Bundle mBundle = new Bundle();
mBundle.putParcelable(PAR_KEY, currentUser);
Connect.putExtras(mBundle);
LocalBroadcastManager.getInstance(getApplicationContext()).sendBroadcast(Connect);