I'm trying to create a shortcut for an another application's activity (which is mine too). The shortcut starts the activity correctly, but just one of the two extras is received (or sent, I don't know). See the code below:
//Setting up the intent
Intent intent = new Intent();
intent.putExtra("num", 12);
intent.putExtra("name", "something");
intent.setComponent(new ComponentName
("com.myanother.app","com.myanother.app.MyActivity"));
And the other activity:
Bundle extras = getIntent().getExtras();
if (extras != null) {
int num = extras.getInt("num"); //this worked
String name = extras.getString("name"); //this gets null
So, what's wrong? And sorry for my English if I made some mistakes.