Intent putExtra (String name, Bundle value)
Add extended data to the intent. The name must include a package prefix, for example the app com.android.contacts would use names like "com.android.contacts.ShowAll".
Parameters:
name - The name of the extra data, with package prefix.
value - The Bundle data value.
Returns the same Intent object, for chaining multiple calls into a single statement.
1.Create an intent by using examples such as, Create an Intent to Open a New Activity/Screen or Create an Intent with a Given Action
2. In the MainActivity.java file, in the onCreate method, add the line below, as an example. RowId would be the name of the field and id would be the value.
myIntent.putExtra("RowId", 1);
3. Compile and run!
Next Recommended Article: Intent.EXTRA_TEXT
Resources:
http://developer.android.com/reference/android/content/Intent.html#putExtra(java.lang.String, android.os.Bundle)
Add extended data to the intent. The name must include a package prefix, for example the app com.android.contacts would use names like "com.android.contacts.ShowAll".
Parameters:
name - The name of the extra data, with package prefix.
value - The Bundle data value.
Returns the same Intent object, for chaining multiple calls into a single statement.
1.Create an intent by using examples such as, Create an Intent to Open a New Activity/Screen or Create an Intent with a Given Action
2. In the MainActivity.java file, in the onCreate method, add the line below, as an example. RowId would be the name of the field and id would be the value.
myIntent.putExtra("RowId", 1);
3. Compile and run!
Next Recommended Article: Intent.EXTRA_TEXT
Resources:
http://developer.android.com/reference/android/content/Intent.html#putExtra(java.lang.String, android.os.Bundle)