• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

parseUri instead of getIntent(); does not work ...

JerryM22

Lurker
Mar 4, 2023
4
1
Hi,
I would like to use parseUri instead of getIntent(); but parseUri the does not work. What I have to do ?

try {
//Intent intent = getIntent();
Intent intent = (android.content.Intent) parseUri( "android-app://com.example.myapp.MainActivity", 0); //
message = intent.getStringExtra(MainActivity.EXTRA_MESSAGE);
}
//catch (URISyntaxException ignore)
catch (Exception ignore)
{
message = "";
}// try catch


here is complette code:
for AndroidStudio 2022/Java
 
Last edited:

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones