Hi I have this code in my sub-activity:
Intent intent = getIntent();
message = intent.getStringExtra(MainActivity.EXTRA_MESSAGE);
and the code is working ok, but the getIntent(); command is labeled as "deprecated", so I would like to replace it with parseUri, but my new code
does not work:
Uri imageUri = getIntent().getData();
Intent intent = (android.content.Intent) parseUri( imageUri.toString(), Intent.URI_INTENT_SCHEME);
can someone help me ?
here is complette source code:
uloz.to
for AndroidStudio2022/Java
Intent intent = getIntent();
message = intent.getStringExtra(MainActivity.EXTRA_MESSAGE);
and the code is working ok, but the getIntent(); command is labeled as "deprecated", so I would like to replace it with parseUri, but my new code
does not work:
Uri imageUri = getIntent().getData();
Intent intent = (android.content.Intent) parseUri( imageUri.toString(), Intent.URI_INTENT_SCHEME);
can someone help me ?
here is complette source code:
