Is there a way to get extra data from Intent as a Map ? It let to build more universal solutions without hardcoding getting each extra data Item with GetExtra("...").
I need Map for Extras not for exploration, but for regular using in order to avoid hardcoding Extra Item names.
Is there a way to do it with JavaObject ? If yes, I would appreciate the appropriate code snippet/
Is it possible to implement B4A ode using JavaObject see. below Java code ?
B4X:
//fetching extra data passed with intents in a Bundle type variable
extras = getIntent().getExtras();
if(extras == null)
{ newString= null;
}
else
{ /* fetching the string passed with intent using ‘extras’*/
newString= extras.getString("STRING_I_NEED");
}
}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.