• 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
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:
Back
Top Bottom