Other [please test] RuntimePermissions.GetSafeDirDefaultExternal

Erel

Administrator
Staff member
Licensed User
I'm seeing some unexpected crash reports that I'm trying to analyze. If you can, please run this code and see whether it prints "please post..." in the logs.
It depends on RuntimePermissions library.
B4X:
Sub Activity_Create(FirstTime As Boolean)
   Dim rp As RuntimePermissions
   If rp.GetSafeDirDefaultExternal("") <> File.DirDefaultExternal Then
     Log("Please post: " & rp.GetSafeDirDefaultExternal(""))
     Log(File.DirDefaultExternal)
   Else
     Log("Nothing interesting")
   End If
End Sub
The crashes were mainly with Lenovo and Moto G devices.
 

An Schi

Well-Known Member
Licensed User
I think this won't help (?), cause i don't have an Android 6 device.
But when Erel is asking for help one time i wanted to participate and do my best ;)

I'm logging 'Nothing interesting' on my Samsung Galaxy S4 with 5.0.1
 

Calum Forsyth

Member
Licensed User
I got 'nothing interesting' on all devices:

- Moto G
- Samsung Galaxy Tab A 6.0
- Samsung Galaxy S3

I'm using v6.30 of the software and have run the tests in both debug mode and release (obfuscated) mode.
 

Lahksman

Active Member
Licensed User
Got the following on a:
Huawei P8 Lite Android 6.0
B4X:
Please post: /storage/emulated/0/Android/data/b4a.example/files
/storage/9016-4EF8/Android/data/b4a.example/files
 

LucaMs

Expert
Licensed User
Android 4.4.2 (Asus), with both SdkTarget 19 and 23: logs "Nothing interesting"

Same on an italian smartphone with Android 4.0.4.

Uhm... maybe this is not interesting; probably I would have had to answer only if I had received "please post..." :D

It's too late, now :)
 

Pendrush

Well-Known Member
Licensed User
"Nothing interesting" on both Samsung Galaxy Tab 3 (Android 4.4.2) and Nexus 5 (Cyanogenmod Android 6.0.1, last nightly).
 

Lahksman

Active Member
Licensed User
@Erel

B4X:
--------- beginning of main
** Service (starter) Create **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Internal: /data/user/0/b4a.example/files
/storage/emulated/0/Android/data/b4a.example/files
/storage/9016-4EF8/Android/data/b4a.example/files
** Activity (main) Resume **
 

Lahksman

Active Member
Licensed User
Reconfigured my phone, normally my SD-card is my primary storage, just switched that to internal storage.

Now on the first test: Nothing interesting
2nd test: same as my previouw post
 

An Schi

Well-Known Member
Licensed User
Tested now also with a Samsung Galaxy S3 Mini with 4.1.2:
Nothing interesting
 
Top