I am questioning if there’s one other approach to swap to a special app? The built-in activity switcher would not trigger Pokemon Go to restart. Is there a approach to invoke that?
I’ve been utilizing this to modify from my app and open Pokemon Go
PackageManager supervisor = context.getPackageManager(); Intent intent = supervisor.getLaunchIntentForPackage("com.nianticlabs.pokemongo"); intent.addCategory(Intent.CATEGORY_LAUNCHER);
A couple of months in the past, this began Pokemon Go to open to a black display. The workaround for this was to shut Pokemon go, and begin Pokemon Go by switching to it via my app. The first time would begin with Pokemon Go’s loading display as anticipated, however would correctly swap between apps after that.
The newest launch of Pokemon Go appears to have mounted the black display downside by all the time restarting Pokemon Go everytime it’s swap to. I discovered this different intent filter of their AndroidManifest.xml and it really works, nevertheless it additionally causes the app to restart.
Uri uri = Uri.parse("http://pokemongolive.com/launchapp"); Intent pokemonGoIntent = new Intent(Intent.ACTION_VIEW, uri); if (pokemonGoIntent.resolveActivity(getPackageManager()) != null) startActivity(pokemonGoIntent);
Is one other approach to swap to a different app? Even when my app is loaded and working, the built-in activity switcher would not trigger Pokemon Go to restart.