Android Question B4X Apps not found after installation an Android 12 phone

KurtS

Member
Licensed User
Longtime User
Hi,
i installed an old b4A app on my new Samsung phone with android version 12.

When i start the application i got an error message java.io.FileNotFoundException: /storage/emulated/0/Android/data/de.spahn.mediman/files/info.csv: open failed:
ENOENT (No such file or directory)


I started to look after that directory and i did not found the whole directory de.spahn.mediman in android/data!

When i install the same source on my tablet with Android Version 7 then everything work fine.

Can you please help me? Do you have an idea?
 

agraham

Expert
Licensed User
Longtime User
Not enough information :(
What is the target SDK of your app?
What file permissions, if any, does your app request?
Is the package name of your app de.spahn.mediman?
If so how is the file info.csv created?
If not then you are trying to access another apps data which is no longer allowed after Android 11?
 
Upvote 0

KurtS

Member
Licensed User
Longtime User
Hello agraham,
you are right. Here are the missing informations: target SDK is 30, file permissions are read and write, my package name is 'de.spahn.mediman'!

The program is a medication checker that takes care of the amount of my medication and an alarm at the time of taking it. It also reminds me to buy medication in time.
In the file 'info.csv' i store the date of the last use. I read the date then i calculate the amount of days between today and this date and multiply it with the amount of medication i use every day. Then i display the table. I also store the actual date in 'info.csv'!

The solution is i have to create the directory 'de.spahn.mediman' and the subdirectory 'files' with the file 'info.csv' by my own, then everything works fine!
I don't know the reason, but it is a way!

Thank you for your help!
 
Last edited:
Upvote 0
Top