Android Question Suddenly program stopped working.

GaryK4

Member
Licensed User
Longtime User
I'm not sure what is going on. System update? Below items worked a couple of days ago.
SQL1.Initialize(File.DirRootExternal, "Golf_Match/DB/Golfers4.db", True) <-- android.database.sqlite.SQLiteCantOpenDatabaseException: Cannot open database '/storage/emulated/0/Golf_Match/DB/Golfers4.db' with flags 0x10000010: File /storage/emulated/0/Golf_Match/DB/Golfers4.db is not readable

Dim sf As Object = FTP.DownloadFile("ftp/hdcp_index.txt", False, File.DirRootExternal, "Golf_Match/hdcp_index.txt")
Wait For (sf) FTP_DownloadCompleted (ServerPath As String, Success As Boolean)

Also new: when I install, there is a new popup (google Play Protect). I I selected both scan and not to scan.
This is no own program for personal use. Google play does not apply. I have developer options enabled.
Is it possible to totally bypass this?

Not sure what else may have stopped working.
Very frustrating.



AddManifestText(
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="26"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)

'---------- Permissions ------------------
AddPermission(android.permission.WRITE_EXTERNAL_STORAGE) ' Allows an application to write to external storage.
AddPermission(android.permission.ACCESS_FINE_LOCATION)
 

mangojack

Expert
Licensed User
Longtime User
There is a mixture of reasons why your app is crashing , a recent system update has probably brought the issues to the surface.

This is no own program for personal use. Google play does not apply.
Ok , but is it essential that you use .DirRootExternal for your db and text files ? rather than .DirInternal or .GetSafeDirDefaultExternal("")

if so this might help ...


Also new: when I install, there is a new popup (google Play Protect).

Increasing your targetSDKVersion to 30 might help. But this could be as a result of other possible issues( app not installed thru Playstore etc)


The is a lot of information in the forum regarding these issues. a Lot has changed.
 
Upvote 0

mangojack

Expert
Licensed User
Longtime User
A new post today regarding WRITE_EXTERNAL_STORAGE permission issues might be worth reading ...

 
Upvote 0

GaryK4

Member
Licensed User
Longtime User
The log file recommended targetSdkVersion 33. I tried that and it did not help. I recompiled because ftp stopped working, then all hell broke lose.
I created this program ~ 2010 and made constant enhancements to it. It is very large.
I own a couple of domains and thinking of rewriting it as a web app. There would be a loss of some functions
 
Upvote 0

GaryK4

Member
Licensed User
Longtime User
All is working now. I only understand half of it. Spectrum internet was down for ~ 20 hours. This caused my external IP to change (not static IP). Updated Google domains (now Squarespace). Rebooted everything. Now the program works without any changes! I understand why FTP did not work because if the domain name / IP. But the external storage? Some Google cache issue while getting permissions?
Fiber internet is coming in my area. I will look into a static IP.
 
Upvote 0
Top