traccar / traccar-client-android

Traccar Client for Android
https://www.traccar.org/client
Apache License 2.0
638 stars 709 forks source link

Compile for Android 6.0 error #209

Open zonlee181 opened 7 years ago

zonlee181 commented 7 years ago

i download traccar-client-android-master.zip to github import in to android studio. compile and run it to android 6 when first run i can see traccar client running. second run it come out this error message in android studio i cannot call up the traccar application using code 8722227

Error while executing: am start -n "org.traccar.client.hidden/org.traccar.client.Launcher" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=org.traccar.client.hidden/org.traccar.client.Launcher }
Error type 3
Error: Activity class {org.traccar.client.hidden/org.traccar.client.Launcher} does not exist.

Error while Launching activity
tananaev commented 7 years ago

You are building Hidden flavor. It's expected behavior for hidden version.

If you want to build a regular flavor, you need to switch type in Build Variants.

zonlee181 commented 7 years ago

Yes, i found how to resolve it

it is permission issue,

go to Apps> "Your app name" > Permissions switch on all value.

it need user interactive to switch on , default value off

reference: https://developer.android.com/training/permissions/index.html

tananaev commented 7 years ago

Traccar Client should request location permissions when you start service. Are there any other missing permissions?

zonlee181 commented 7 years ago

i add some code to get mac address.

:)

tananaev commented 7 years ago

OK, so the problem is not with original Traccar Client code? It would be nice if you mention next time that you have changed the code. Because your original comment implies that you didn't change anything.

zonlee181 commented 7 years ago

sorry about that i'll mention next time. you did a great job