whenever i try to get the "Hello" or any other type with that parcelable i get it as null , can anyone help ?
// intent from current activity to Next Activity
Intent intent = new Intent(InstructorLessonsActivity.this, InstructorTopicActivity.class);
//Putting extras to get them in the Next Activity
Bundle args=new Bundle();
args.putParcelable("lesson",test);
args.putString("courseid",courseID);
// intent.putExtra("lesson",test);
// starting the Activity
intent.putExtras(args);
startActivity(intent);
}
i tried using Bundle but it's hopeless , it's as if parcelable overrides the intent extras and takes place
Here is the Next Activity getIntent Part
//Getting intent and checking if it's null
Bundle intent = getIntent().getExtras();
if(intent!=null) {
Log.v("intent Extra : ", ":------------" + intent.getParcelable("lesson"));
Log.v("intent Extra : ", ":------------" + intent.getString("courseid"));
}