This question may sound stupid but I wana know When do we put activity name in Intent.putExtra()? In one case we are putting extra only with bundle and in other
The approach is just the difference here. If you use a Bundle you can store almost all types in it:
Bundle mBundle = new Bundle();
mBundle.put(key, value);
and pass it to an activity
mIntent.putExtras(mBundle);
and in the other activity which recieves the info, just grab the content of the bundle like this:
Bundle extras = getIntent().getExtras();
and grab each element in the bundle like this:
extras.getString("myKey")