Last active
July 12, 2017 10:44
-
-
Save ismaeltoe/32e0ee42cc8a04dc891e8d17fdef1d95 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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