PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV Mobile 2024
→
WM 24 and now 25 - unable to run app on Pixel device
WM 24 and now 25 - unable to run app on Pixel device
Started by Claire, Jan., 06 2021 9:02 PM - 6 replies
Connect yourself…
Claire
#1
Registered member
48 messages
Posted on January, 06 2021 - 9:02 PM
Hello, we just upgraded to version 25 of WM because we were under the impression that it would solve an issue we were having while using version 24. This problem seems to only be occurring on devices that have never had the app installed previously and as of now, does not function on a Google Pixel 3A. After installation, an alert message pops up that reads
Unable to download images from server: Unable to create file or to open it in read/write. Please try reloading from the Settings page.
Reloading from the settings page does not work - I just receive an error message for all 400+ images that cannot be downloaded. Other people have installed it successfully on different android devices but I am not sure if the obb file directory already existed on their device.
This is the only place in our code that mentions the .obb file
s
ImageZip
=
""
s
APKExtDir
=
SysDirStorageCard
(
) +
"/Android/obb/edu.misin.edu/"
fDelete
(
s
APKExtDir
+ [
"/"
] +
"*.obb"
)
s
APKExtensionFile
=
s
APKExtDir
+
"main."
+
gn
AndroidVersion
+
".edu.misin.edu.obb"
//sDownLoadImagesZip = gsTempDir + "Images.zip"
IF
NOT
fDirectoryExist
(
s
APKExtDir
)
THEN
fMakeDir
(
s
APKExtDir
)
END
//temporary to test: if it is a real APK extension, do not delete
IF
fFileExist
(
s
APKExtensionFile
)
THEN
fDelete
(
s
APKExtensionFile
)
END
I did not develop this app so I am unable to explain this setup fully but I am curious why I am unable to successfully deploy this app on my Pixel. Any assistance would be greatly appreciated.
Report
0
0
Claire
#2
Registered member
48 messages
Posted on January, 06 2021 - 9:06 PM
* I am not sure why the full error message did not come through but it should read:
Unable to download images from server: unable to create </storage/emulated/0/Android/obb/edu.misin.edu/main.90.edu.misin.edu.obb> file or to open it in read/write. Please try reloading from the settings page.
Report
0
0
oArgus
#3
Posted on January, 07 2021 - 1:43 AM
A lot of information is missing in your post to be sure of anything but:
- your problem phone is a google pixel
- as such it is probably running a very new version of android (10 probably?)
- this version is MUCH STRICTER as to WHERE an app can write (and create subdirectories)
so if my suppositions are correct and the other phones where this was working are using older android versions, then the solution is to use one of the few directories where an app is now allowed to work.
Report
0
0
Claire
#4
Registered member
48 messages
Posted on January, 07 2021 - 2:07 PM
oArgus wrote:
A lot of information is missing in your post to be sure of anything but:
- your problem phone is a google pixel
- as such it is probably running a very new version of android (10 probably?)
- this version is MUCH STRICTER as to WHERE an app can write (and create subdirectories)
so if my suppositions are correct and the other phones where this was working are using older android versions, then the solution is to use one of the few directories where an app is now allowed to work.
Hi oArgus,
- Yes, Google Pixel 3A running Android 11 operating system
- I will follow up with one of my testers to see what phone operating system she is running.
- Other apps in the app store still seem to have the ability to write to the same location where our app is trying to write to.
Is there information on the new directories or the directories where the performance would remain the same (i.e not having to re-write a ton of code?)
Report
0
0
Rubén Sánchez Peña
#5
Registered member
794 messages
Popularité : +40 (42 votes)
Posted on January, 08 2021 - 11:59 AM
Hi. Look at this for access to "external" files
https://doc.windev.com/en-US/…
It was modified for Android 10+
https://blogs.pcsoft.fr/fr/aout-2020-google-demande-relever-niveau-api-cible-applications-android-afin-deployer-google-play/281474976710907/read.awp
Rubén
Report
0
0
Claire
#6
Registered member
48 messages
Posted on January, 08 2021 - 3:50 PM
Rubén Sánchez Peña wrote:
Hi. Look at this for access to "external" files https://doc.windev.com/en-US/…
It was modified for Android 10+
https://blogs.pcsoft.fr/fr/aout-2020-google-demande-relever-niveau-api-cible-applications-android-afin-deployer-google-play/281474976710907/read.awp
Rubén
Thank you Rubén - I guess what doesn't make sense to me is it seems to be working just fine on devices running Android 10. It it just having trouble with Android 11 or at least just on Pixel devices.
Report
0
0
Claire
#7
Registered member
48 messages
Posted on January, 08 2021 - 4:03 PM
Claire wrote:
> Thank you Rubén - I guess what doesn't make sense to me is it seems to be working just fine on devices running Android 10. It it just having trouble with Android 11 or at least just on Pixel devices.
This limitation will be final from Android 11
Well that makes sense, thanks everyone - guess this will be a bit more work than expected.
Report
0
0
→ Go back to WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text