Skip to content
Advertisement

Tag: start-activity

Unable to start activity: java.lang.ArrayIndexOutOfBoundsException

Everyone, hi! Friends, when you click on the button, a new activity does not start. The following exception occurs: java.lang.ArrayIndexOutOfBoundsException. The log of my error is presented below: Program code for MainActivity.java Program code for PlayerActivity.java: If I understand correctly, then the error is in the following lines: But… I do not know how to fix the error. Could you

ACTION_MANAGE_UNKNOWN_APP_SOURCES: startActivityForResult() or startActivity()?

I’m following these tree examples where is showed how request permission to install an app from an unknown source: How to manage installation from Unknown Sources in Android Oreo? How to use PackageManager canRequestPackageInstalls in Android Oreo? Android 8 unknown source app installation When i tested with startActivityForResult(), onActivityResult() never was called when i enable or disable (on switch widget).

Advertisement