Android Question Requesting permissions at runtime in Starter

focus330

Member
Licensed User
Longtime User
Can I Use the requesting permissions for 23+ also in Starter ?
I want to create a directory in file.DirDefaultExternal in Starter code.
I have many problems to emulate an ANdroid 6.0 device then I ask if someone can give me an answer.
 

focus330

Member
Licensed User
Longtime User
Thanks Erel.
It means that using the new FIREBASE for admob and analytics, isn't necessary to activate the library RuntimePermissions or others like MPermissions ?
I don't use RuntimePermissions. I used MPermissions to control if user had allow read/write contacts.
My problem begins after activated FIREBASE. Now I receive from my app this error ( only from 23+):

(ArrayList) [Exception) Not initialized
java.lang.Exception: Sub activity_permissionresult was not found.
java.lang.Exception: Sub activity_permissionresult was not found.
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:175)
at anywheresoftware.b4a.BA$2.run(BA.java:328)
at anywheresoftware.b4a.BA.setActivityPaused(BA.java:398)
at com.csmatrixit.importcontacts.main$ResumeMessage.run(main.java:296)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7229)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
 
Last edited:
Upvote 0

focus330

Member
Licensed User
Longtime User
I see. But I'm not using RuntimePermissions.CheckAndRequest. !! Perhaps using MPermissions may be the same.
I'll delete check with MPermissions.
 
Upvote 0

focus330

Member
Licensed User
Longtime User
Yes. Removing MPermissions the problem desappears. I'll open a post under the argument MPermissions to sinalize that with Firebase the class isn't compatible and not necessary.
Thanks Erel.
 
Upvote 0
Top