Posts

what is in manifest

what is in manifest <? xml version = "1.0" encoding = "utf-8" ?> <manifest ... >     <application android:icon = "@drawable/app_icon.png" ... >         <activity android:name = "com.example.project.ExampleActivity"                   android:label = "@string/example_label" ... >         </activity>         ...     </application> </manifest>

Navigation

Image

what is savedInstanceState / Bundle

what is savedInstanceState / Bundle The  savedInstanceState  parameter is a  Bundle  that provides data about the previous instance of the fragment, if the fragment is being resumed

Sending data between activities

Sending data between activities 1 Intent intent = new Intent ( this , MyActivity . class ); 2 intent . putExtra ( "media_id" , "a1b2c3" ); 3 // ... 4 startActivity ( intent ); The OS parcels the underlying  Bundle  of the intent.  1.          this      contains the Bundle 1.2      to whom ?  Ans:     MyActivity . class  OS creates the new activity,  un-parcels the data,   passes the intent to the new activity.