Home PageFacebookRSS News Feed
PocketGPS
Web
SatNav,GPS,Navigation
Pocket GPS World - SatNavs | GPS | Speed Cameras: Forums

Pocket GPS World :: View topic - Samsung Phones and Android 10
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in for private messagesLog in for private messages   Log inLog in 

Samsung Phones and Android 10
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Pocket GPS World Forum Index -> CamerAlert on Android
View previous topic :: View next topic  
Author Message
mol2
Occasional Visitor


Joined: Aug 29, 2005
Posts: 35

PostPosted: Wed Jan 13, 2021 6:26 pm    Post subject: Reply with quote

Still not working on Samsung S10e running Android 10.
Back to top
View user's profile Send private message
FrequentFlyer
Lifetime Member


Joined: Jun 12, 2006
Posts: 964
Location: London

PostPosted: Fri Mar 12, 2021 10:11 am    Post subject: Reply with quote

I miss CA do much, I'm going to buy another phone. Question. What is the last Samsung phone that will run CA ? Thanks.
Back to top
View user's profile Send private message
Kremmen
Pocket GPS Verifier
Pocket GPS Verifier


Joined: Mar 03, 2006
Posts: 7137
Location: Reading

PostPosted: Fri Mar 12, 2021 10:21 am    Post subject: Reply with quote

It's hit and miss but you need a phone that's going to stick on Android 9 (Pie) and not update. My guess would be a Galaxy S7.

I've been looking at a decompiled CA in a few APK tools and it looks like the issue is AndroidX and the new API's.

There are 2 lines that need adding into the .gradle then Android Studio may be able to convert the code.

I can't get in too deep because not all the support files are available but the error seems to be the way AndroidX handles the 'filename.9.png' initial splash screen.

Android uses the '*.9.png' as an instruction to resize the splash screen to the phones screen size.

This is where it seems to be falling over.
_________________
DashCam:
Viofo A119 V3
Back to top
View user's profile Send private message
MaFt
Pocket GPS Staff
Pocket GPS Staff


Joined: Aug 31, 2005
Posts: 15297
Location: Bradford, West Yorkshire

PostPosted: Sat Mar 13, 2021 2:12 pm    Post subject: Reply with quote

FrequentFlyer wrote:
I miss CA do much, I'm going to buy another phone. Question. What is the last Samsung phone that will run CA ? Thanks.


My OnePlus 5 running Android 10 runs the app fine. As does my recent Huawei P30 Lite NE (Android 10).

I know it fails on Pixel 2 running Android 11.

Aside from that, I don't know cos I don't use Samsung...!
Back to top
View user's profile Send private message Visit poster's website
MaFt
Pocket GPS Staff
Pocket GPS Staff


Joined: Aug 31, 2005
Posts: 15297
Location: Bradford, West Yorkshire

PostPosted: Sat Mar 13, 2021 2:16 pm    Post subject: Reply with quote

Kremmen wrote:
Android uses the '*.9.png' as an instruction to resize the splash screen to the phones screen size.

This is where it seems to be falling over.


Interesting. The 9-patch files (*.9.png) are still valid in the Android SDK so it may be how Samsung's version of Android 10 specifically handles the file?!

Unless the error is just AFTER the 9-patch file loads and that file is the last thing that successfully loads and gets logged?

MaFt
Back to top
View user's profile Send private message Visit poster's website
Kremmen
Pocket GPS Verifier
Pocket GPS Verifier


Joined: Mar 03, 2006
Posts: 7137
Location: Reading

PostPosted: Sat Mar 13, 2021 5:32 pm    Post subject: Reply with quote

Could be.

I'm also suspicious of how AndroidX handles map files, which could be the next thing it does. On my Android 9 tablet, after the splash it loads the map.

Sadly I'm no Android expert.

One thing I did find is using the Android Studio AVD which mimics an Android phone for testing, that also falls over, but I did set it to mimic a Pixel2 which is the default.
_________________
DashCam:
Viofo A119 V3
Back to top
View user's profile Send private message
Leo_A
Regular Visitor


Joined: Jan 10, 2017
Posts: 157

PostPosted: Mon Mar 15, 2021 7:42 pm    Post subject: Reply with quote

Starting from Android 9, if the app uses Google Maps, its manifest must include the following line

Code:
<uses-library android:name="org.apache.http.legacy" android:required="false" />


in the application section.[/quote]
Back to top
View user's profile Send private message
Kremmen
Pocket GPS Verifier
Pocket GPS Verifier


Joined: Mar 03, 2006
Posts: 7137
Location: Reading

PostPosted: Tue Mar 16, 2021 4:59 am    Post subject: Reply with quote

Interesting.

I've had a clearout so I'll reinstall the bits I need to get at the manifest.

In the main the AndroidManifest.xml is read only but APKLab via Visual Studio code does allow editing.
_________________
DashCam:
Viofo A119 V3
Back to top
View user's profile Send private message
Kremmen
Pocket GPS Verifier
Pocket GPS Verifier


Joined: Mar 03, 2006
Posts: 7137
Location: Reading

PostPosted: Tue Mar 16, 2021 6:33 am    Post subject: Reply with quote

Line inserted.

Still works on tablet under Android9 but won't run under Android10

Sad


The more I dig into the error:

java.lang.ClassNotFoundException
BaseDexClassLoader.java
dalvik.system.BaseDexClassLoader
findclass

Could this be the error line (3340), as pointed at by the crash dump:

invoke-interface (v0, v1, v2), Landroid/content/SharedPreferences;- getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

Some characters edited out due to posting issue

Double dutch to me

It's trying to invoke java lang and it's java lang that it can't find. Trying to find exactly where the link is to see what it's calling is baffling me.
_________________
DashCam:
Viofo A119 V3
Back to top
View user's profile Send private message
CAA_0818232231
Occasional Visitor


Joined: Aug 18, 2014
Posts: 8

PostPosted: Sat Mar 20, 2021 10:13 pm    Post subject: Samsung S20 + 5G - Android 11 Cameralert Not Working Reply with quote

I have a Samsung S20 + 5G running:

- Android 11
- One UI version 3.1

So it would seem the problem of cameralert has progressed to the latest version of android.
Back to top
View user's profile Send private message
MaFt
Pocket GPS Staff
Pocket GPS Staff


Joined: Aug 31, 2005
Posts: 15297
Location: Bradford, West Yorkshire

PostPosted: Thu Nov 28, 2024 12:51 pm    Post subject: Reply with quote

Hopefully this will trigger some email updates to everyone in the thread who couldn't run CamerAlert on Android 10 and newer:

You will be pleased to hear that the app has now been updated and can be downloaded here: https://play.google.com/store/apps/details?id=com.pocketgpsworld.cameralert

MaFt
Back to top
View user's profile Send private message Visit poster's website
FrequentFlyer
Lifetime Member


Joined: Jun 12, 2006
Posts: 964
Location: London

PostPosted: Thu Nov 28, 2024 1:59 pm    Post subject: Reply with quote

Thanks for your hardwork.
Back to top
View user's profile Send private message







Posted: Today    Post subject: Pocket GPS Advertising

Back to top
Display posts from previous:   
Post new topic   Reply to topic    Pocket GPS World Forum Index -> CamerAlert on Android All times are GMT + 1 Hour
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Make a Donation



CamerAlert Database

Click here for the PocketGPSWorld.com Speed Camera Database

Download Speed Camera Database
22.114 (27 Nov 24)



WORLDWIDE SPEED CAMERA SPOTTERS WANTED!

Click here to submit camera positions to the PocketGPSWorld.com Speed Camera Database


12mth Subscriber memberships awarded every week for verified new camera reports!

Submit Speed Camera Locations Now


CamerAlert Apps



iOS QR Code






Android QR Code







© Terms & Privacy


GPS Shopping