Skip to content

Instantly share code, notes, and snippets.

@ismaeltoe
Last active July 12, 2017 10:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ismaeltoe/32e0ee42cc8a04dc891e8d17fdef1d95 to your computer and use it in GitHub Desktop.
Save ismaeltoe/32e0ee42cc8a04dc891e8d17fdef1d95 to your computer and use it in GitHub Desktop.
public class MainActivity extends AppCompatActivity {
private static final String TAG = MainActivity.class.getSimpleName();
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
if (getIntent().getExtras() != null) {
for (String key : getIntent().getExtras().keySet()) {
Object value = getIntent().getExtras().get(key);
Log.d(TAG, "Key: " + key + " Value: " + value);
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment