Floria Garden
Member
Hi Gamemakers!
I would like to find out if I can edit the extension because it asks to READ_EXTERNAL_STORAGE and it affects my uninstall rate.
In the file it says that //It's our request!! so it looks like it is added by YOYOgames?
If it can be edited, it would mean the world to me and I wont have to nuke my app.
I can't attach text file for some reason, here is the snippet from extension
I would like to find out if I can edit the extension because it asks to READ_EXTERNAL_STORAGE and it affects my uninstall rate.
In the file it says that //It's our request!! so it looks like it is added by YOYOgames?
If it can be edited, it would mean the world to me and I wont have to nuke my app.
I can't attach text file for some reason, here is the snippet from extension
Code:
@Override
public void onRequestPermissionsResult(int requestCode,String permissions[], int[] grantResults)
{
//Doesn't get called as when the result comes in the game hasn't yet evaluated extensions :(
Log.i("yoyo", "RequestPermissionsResult received:"+ Integer.toString(requestCode));
if(requestCode == MY_PERMISSIONS_REQUEST_READ_EXTERNAL_STORAGE)
{
//It's our request!!
for (int i = 0; i < permissions.length; i++)
{
String permission = permissions[i];
int grantResult = grantResults[i];
Log.i("yoyo","permission=" + permission + " result=" + Integer.toString(grantResult));
if(permission.equals("android.permission.READ_EXTERNAL_STORAGE"))
{
if(grantResult==0)
{
RunnerActivity.CurrentActivity.APKExpansionFileReady = true;
}
else
{
Toast toast = Toast.makeText(RunnerActivity.CurrentActivity,"Unable to run without storage permssions, please enable storage permission",Toast.LENGTH_LONG);
toast.show();
ActivityCompat.requestPermissions(RunnerActivity.CurrentActivity,new String[]{Manifest.permission.READ_EXTERNAL_STORAGE}, MY_PERMISSIONS_REQUEST_READ_EXTERNAL_STORAGE);
}
}
}
}
}
Last edited: