Saturday, 15 February 2014

Android: Adding more than one Bundle to a new activity -


I am trying to pass in two separate pieces for a new activity in my Android application. I currently have this:

  Bundle DataBundle = new bundle (); Bundle Extras = Milentant (). GetExtras (); // Student ID data bundle.IPIINT ("id", 0); // Lesson ID Intent Intents = New Intent (getApplicationContext (), com.example.ltss.dyslexia.app.LessonNotes.class); Intent.putExtras (dataBundle); Intent.putExtras (additional); StartActivity;  

I have the code to access this information. However, the first one has been overridden by adding the second bundle

  Bundle Extras = Milentant (). GetExtras (); Bundle studentId = getIntent (). GetExtras (); Log D. ("Subdomain id:", string.value (additional)); Log D. ("StudentID:", string.whuf (student id));  

I need to keep a close passage because I need to check that one of them is zero.

Am I asking what to do? Any ideas as a way to do this? Or is there another way to do this? (Parsing Probably?)

Thanks

You putExtra ("bundle 1 ", bundle 1) and putExtra (" bundle2 ", bundle 2) and then getIntent (). GetBundleExtra ("bundle1"); and to get


No comments:

Post a Comment