Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class DeeplinkTestActivity extends AppCompatActivity {
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- // get the data from the intent.
- Intent intent = getIntent();
- Uri data = intent.getData();
- // deeplink - testapp://deeplink/example?key1=value1
- if (data != null) {
- // get the additional query params added to the deeplink
- String value1 = data.getQueryParameter("key1"); // will return "value1"
- }
- // get the FlurryMessage from extras
- FlurryMessage flurryMessage = FlurryMessaging.getFlurryMessageFromIntent(getIntent());
- if (flurryMessage != null) {
- // use as required
- }
- }
- }
Add Comment
Please, Sign In to add comment