Git Product home page Git Product logo

traccar-client-android's Introduction

Get it on Google Play Get it on F-Droid

Overview

Traccar Client is an Android GPS tracking application. It can work with Traccar open source server software.

Team

License

Apache License, Version 2.0

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

traccar-client-android's People

Contributors

aguerraapplaudo avatar alpha200 avatar anton-v-k avatar armagetron avatar bubu avatar garyvdm avatar gnurenga avatar mantas0726 avatar maxzzznz avatar mwild1 avatar oliv3 avatar plokta avatar poussinou avatar redge76 avatar scfarley avatar tananaev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

traccar-client-android's Issues

Ammount of traffic required

Hi.

I'm interested in get one european SIM roaming, and the question is:

Is possible know the ammount of daily traffic in megabytes, if the configuration sent the possition every 15 mins or aprox?

Is possible implement one traffic reduction for this "roamers" when the android device is stoped or in the night time?

Regards.

Battery drain

2013-01-15 12 13 52

There is a big battery drain with the new version 2.1 compared to 1.5

First location packet

if high interval is choosen, like 10 minute, app starts and will send first data after ten minutes, it would be more practical to send data after first connection after startup and then wait 10 minutes

Android protocol extensions

Hi there,

do you plan to include some more data fields in the data protocol of the app?

  • battery state
  • external charging state
  • csq data
  • cell data

And by the way, do you plan or do you consider to include something like two way communication? Maybe server sends "Hi user" and app shows that message on screen. Something like that.

Best regards from germany
Boris

my-GPS.org

Power saving feature

Add option to check accelerometer sensor, and if there is no motion stop sending GPS data.

Requirement on share hosting

Hi,

Can I run the Traccar on the shared hosting server?

What requirement is needed to run the Traccar Server on shared hosting?

How to use

I was wondering how to use the traccar server. I have already created an account. I added the imeii # where it says unique identifier. How do I get the tracker to send information to the server?
Device: TK103
Thanks

Check for empty number

java.lang.NumberFormatException: Invalid int: ""
at java.lang.Integer.invalidInt(Integer.java:138)
at java.lang.Integer.parseInt(Integer.java:359)
at java.lang.Integer.parseInt(Integer.java:332)
at java.lang.Integer.valueOf(Integer.java:490)
at org.traccar.client.TraccarService$2.onSharedPreferenceChanged(TraccarService.java:120)
at android.app.SharedPreferencesImpl$EditorImpl.notifyListeners(SharedPreferencesImpl.java:455)
at android.app.SharedPreferencesImpl$EditorImpl.apply(SharedPreferencesImpl.java:365)
at android.preference.Preference.tryCommit(Preference.java:1339)
at android.preference.Preference.persistString(Preference.java:1372)
at android.preference.EditTextPreference.setText(EditTextPreference.java:88)
at android.preference.EditTextPreference.onDialogClosed(EditTextPreference.java:142)
at android.preference.DialogPreference.onDismiss(DialogPreference.java:381)
at android.app.Dialog$ListenersHandler.handleMessage(Dialog.java:1228)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4441)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:823)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:590)
at dalvik.system.NativeStart.main(Native Method)

Stop service exception

03-25 14:37:23.742 E/AndroidRuntime(21115): FATAL EXCEPTION: main
03-25 14:37:23.742 E/AndroidRuntime(21115): java.lang.RuntimeException: Unable to stop service org.traccar.client.TraccarService@4051b788: java.lang.NullPointerException
03-25 14:37:23.742 E/AndroidRuntime(21115):     at android.app.ActivityThread.handleStopService(ActivityThread.java:2086)
03-25 14:37:23.742 E/AndroidRuntime(21115):     at android.app.ActivityThread.access$2900(ActivityThread.java:117)
03-25 14:37:23.742 E/AndroidRuntime(21115):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1001)
03-25 14:37:23.742 E/AndroidRuntime(21115):     at android.os.Handler.dispatchMessage(Handler.java:99)
03-25 14:37:23.742 E/AndroidRuntime(21115):     at android.os.Looper.loop(Looper.java:130)
03-25 14:37:23.742 E/AndroidRuntime(21115):     at android.app.ActivityThread.main(ActivityThread.java:3687)
03-25 14:37:23.742 E/AndroidRuntime(21115):     at java.lang.reflect.Method.invokeNative(Native Method)
03-25 14:37:23.742 E/AndroidRuntime(21115):     at java.lang.reflect.Method.invoke(Method.java:507)
03-25 14:37:23.742 E/AndroidRuntime(21115):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
03-25 14:37:23.742 E/AndroidRuntime(21115):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
03-25 14:37:23.742 E/AndroidRuntime(21115):     at dalvik.system.NativeStart.main(Native Method)
03-25 14:37:23.742 E/AndroidRuntime(21115): Caused by: java.lang.NullPointerException
03-25 14:37:23.742 E/AndroidRuntime(21115):     at org.traccar.client.TraccarService.onDestroy(TraccarService.java:83)
03-25 14:37:23.742 E/AndroidRuntime(21115):     at android.app.ActivityThread.handleStopService(ActivityThread.java:2069)
03-25 14:37:23.742 E/AndroidRuntime(21115):     ... 10 more

The format for sending data to Traccar server from android client.

Hi Anton,

I am developing my own Android Client for Traccar. Right now i have the current location latitude and longitude values which i derived using my own algorithm.

now i want to know the format for sending these values to the traccar server and also please tell me about the format for sending the login message (IMEI number) and connection(address,port).

Thank you very much...

Accuracy fault

Hi anton, I was testing your program and it seems to have a coordinates issue, we test the client on several devices using your client and google maps, when in google maps was displayed a location, it was really close to the real location but at the same time when we check the location given by your client, it was really far away from the real location.
So, maybe something is wrong with the coordinates.
thanks

Presentation and Translation

Hello, I'm a spanish, follower of Traccar. I think that you do a great job.

I attach a translation to spanish of the messages of the client.

If you think that it is good, please considerate incluiding it in the next version.

I want to use Traccar as a 'Personal Tracker' and I will focus in this path.

Thank's very much.

buffer coordinates when there is no network connectivity

Would be nice if the client can save its coordinates locally when there is no network connectivity and send them all at once when the connectivity is re-established. Most (or may be all of) the phones nowadays doesn't provide network connectivity when phone call is in progress. This feature would be very handy for people who often make long hands-free call while driving and/or there is no cellular coverage in the area.
This feature can be also extended to provide fully offline tracking capabilities.

Empty provider error

java.lang.RuntimeException: Unable to start service org.traccar.client.TraccarService@46311d10 with Intent { cmp=org.traccar.client/.TraccarService }: java.lang.IllegalArgumentException: provider==null
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3063)
at android.app.ActivityThread.access$3600(ActivityThread.java:125)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2096)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4627)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:878)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IllegalArgumentException: provider==null
at android.location.LocationManager.requestLocationUpdates(LocationManager.java:625)
at org.traccar.client.TraccarService.onStartCommand(TraccarService.java:66)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3053)
... 10 more

Unable to Locate Device on MAP.

I have tried on different devices but not all the devices are located by the server.

A simple example I tried to setup a local sever on wi-fi and tried to locate device
Devices establish the connection with server but Position are not sent to the server, Position table is empty.

Android version is 2.3.8

Frequency set for 5sec

Log:

2013-06-24 14:24:40 org.traccar.BasePipelineFactory$StandardLoggingHandler.log FINE: [5005 <- 10.0.1.97] - (HEX: 24504749442c3335343435373035303738343038352a30310d0a), after this there is no log.

Please let me know what would be the reason for this.

Andrioid Clients not being recognized by server when using traccar with OpenGTS

First of all-AWESOME!- work on this suite of applications. I am having an issue with the Android clients. When I was using the traccar web server the traccar Android client was working and reporting a location. When I changed the configuration to work with OpenGTS I now get the following errors in the log:

2013-01-25 22:32:21 org.traccar.GenericPipelineFactory$StandardLoggingHandler.log FINE: [5005 - 186.178.237.147] - (HEX: 24504749442c3031323836313030303234323339372a30330d0a)
2013-01-25 22:32:21 org.traccar.protocol.T55ProtocolDecoder.decode WARNING: Unknown device - 012861000242397

I have the device added in OpenGTS but no events are ever added. After the initial error this is what shows up in the log:

2013-01-25 22:32:43 org.traccar.GenericPipelineFactory$StandardLoggingHandler.log FINE: [5005 - 186.178.237.147] - (HEX: 244750524d432c3232333234332e3030302c412c303230382e353433352c532c30373935352e393535302c572c302e30302c302e30302c3235303131332c2c2a30340d0a)

Check intent in onStartCommand

Probably null intent caused this:

java.lang.RuntimeException: Unable to start service org.traccar.client.TraccarService@4a54d0e8 with null: java.lang.NullPointerException
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3069)
at android.app.ActivityThread.access$3600(ActivityThread.java:126)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2101)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4633)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at org.traccar.client.TraccarService.onStartCommand(TraccarService.java:106)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3059)
... 10 more

block update position with autoanswer app in Android 4

Great Application Thank you very match

at 08:00 we start the traccar on android

Log of traccar server

2013-05-13 09:26:02 org.traccar.TrackerEventHandler.processSinglePosition INFO: id: null, deviceId: 5, valid: true, time: Mon May 13 09:24:33
CEST 2013, latitude: 47.34183, longitude: 8.574311666666667, altitude: 0.0, speed: 0.0, course: 0.0, power: null

after i call to mobile phone it become short unblocking

2013-05-13 09:39:34 org.traccar.BasePipelineFactory$StandardLoggingHandler.log FINE: [5005 <- IPPHONE] - (HEX: 24504749442c38363632373
93031303033373937392a30300d0a)

and so on..

Message Interval is 15 sec

Hi ... I am using demo.traccar.org as the collection server. My user ID is sibarhm and my IMEI is 358490047475380. I set the interval every 15 secs in the client, however when I see the data in web it is recorded ever sec. I read the previous close issue and it mentioned something related to next version of client. I do not see version number in the client (under About). Any clue?

Show last successful updated time in traccar Android client

I wuold like to request to add a feature/enhancement in the Traccar Android client main page so that I will know whether the last upload of the GPS device to the server is successful:

Show last successful updated(upload) time in Traccar Android client.

Unfortunately, Traccar Client has stopped.

This is just a copy from Traccar issue:

Hello,
I'm using traccar client on Samsung Galaxy Nexus. The client is crashing every time when another app which is using GPS is being launched. (iGo, Google Maps Navigation, Sygic, Facebook etc, sometimes even Skype affect it).
When the app crash, a message "Unfortunately, Traccar Client has stopped." is being displayed.When opening the app again, its "Service status" remains "Running" and "Connection status" is Connected, however no messages are sent to the server.

Tested under Android 4.1.1, 4.1.2 and 4.2 - stock firmware from Google and 4.1.1 - stock firmware from Samsung.

PS: can i somehow make the app to start automatically when the OS is rebooted without using external app for this?

Speed

Do not send coordinates if speed is lower than N km/h.

zygote doesn't always re-start the service

With the previous versions (prior v2), when I kill the app using android's built-in task manager, it actually stops until I start it again, which is bad of course.
This was fixed with version 2.1, zygote is re-starting the service as long as the service button is ON. However this doesn't work every time. Sometimes the service is being restarted in about 5 seconds, sometime longer up to a minute, but sometimes it is not being restarted at all.
I couldn't find any reason for this, it looks completely random to me.
Thanks.

Incorrect speed

Hello,
I'm using traccar client with traccar server. The speed shown at the web interface is not correct. While driving at about 50-60km/h, speed shown at the web interface is about 15knots (~28km/h).
The server is showing the exact speed in knots received from the client, this is why I suspect client bug.

From log file:
2012-10-25 01:17:55 FINE: [5005 - 82.137.72.35] - (HEX: 244750524D432C3133313735342E3030302C412C343233392E343036302C4E2C30323332342E383832342C452C31352E30372C3138362E30302C3235313031322C2C2A33300D0A)
2012-10-25 01:17:55 FINE: [5005 - 82.137.72.35] - (HEX: 4F4B310D0A)
2012-10-25 01:17:55 INFO: id: null, deviceId: 1, valid: true, time: Thu Oct 25 16:17:54 EEST 2012, latitude: 42.65676666666667, longitude: 23.414706666666667, altitude: 0.0, speed: 15.07, course: 186.0, power: null

HEX2ASCII:
$GPRMC,131754.000,A,4239.4060,N,02324.8824,E,15.07,186.00,251012,,*30??

I found a place where I always drive with 80km/h (speed limit with cameras) and the speed shown on the server was 19.58knots (36km/h)

Tested on Galaxy Nexus, Android 4.11, 4.1.2 and 4..2;
Traccar client 1.5
Traccar server v1.3 (mySQL as DB)

Traccar Client downloaded

Hi,

I have downloaded the Traccar CLient into a tablet device.
Had run the app and enter relevant info into the http://localhost:8082/
But nothing seems happen. I only see a map with the device info on the left of the screen.

I use the port 5005 as mentioned in http://www.traccar.org/client/

and looked at the STATUS page of the client app.. It always shows Connection Failed.

Checks in onDestroy

connection.close() probably crashed

java.lang.RuntimeException: Unable to stop service org.traccar.client.TraccarService@40519898: java.lang.NullPointerException
at android.app.ActivityThread.handleStopService(ActivityThread.java:2086)
at android.app.ActivityThread.access$2900(ActivityThread.java:117)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1001)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3687)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at org.traccar.client.TraccarService.onDestroy(TraccarService.java:127)
at android.app.ActivityThread.handleStopService(ActivityThread.java:2069)

Distance

Do not send coordinates if distance between last and current position is shorter than N meters.

Create and send messages using AsyncTask

freeze

"main" prio=5 tid=1 SUSPENDED
  | group="main" sCount=1 dsCount=0 obj=0x40021198 self=0xcec8
  | sysTid=21252 nice=0 sched=0/0 cgrp=[fopen-error:2] handle=-1345006400
  at java.util.Formatter$FormatSpecifierParser.parseArgumentIndexAndFlags(Formatter.java:~2384)
  at java.util.Formatter$FormatSpecifierParser.parseFormatToken(Formatter.java:2321)
  at java.util.Formatter.doFormat(Formatter.java:1091)
  at java.util.Formatter.format(Formatter.java:1062)
  at java.util.Formatter.format(Formatter.java:1031)
  at org.traccar.client.Protocol.createNmea(Protocol.java:56)
  at org.traccar.client.TraccarService.onLocationChanged(TraccarService.java:44)
  at android.location.LocationManager$ListenerTransport._handleMessage(LocationManager.java:227)
  at android.location.LocationManager$ListenerTransport.access$000(LocationManager.java:160)
  at android.location.LocationManager$ListenerTransport$1.handleMessage(LocationManager.java:176)
  at android.os.Handler.dispatchMessage(Handler.java:99)
  at android.os.Looper.loop(Looper.java:130)
  at android.app.ActivityThread.main(ActivityThread.java:3687)
  at java.lang.reflect.Method.invokeNative(Native Method)
  at java.lang.reflect.Method.invoke(Method.java:507)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
  at dalvik.system.NativeStart.main(Native Method)

GPS blocked when lost signal for a long time

The client is installed in a Sony Xperia U device.
Where the device lost the GPS signal it search for a long time the signal and passed an indeterminate time, it blocks.

The conection with server is working but never ask to the GPS again for the location

For restablish the conection with the GPS, I have to stop the service, stop the Android GPS conection, and start them again.

This error may avoid if :

a) disconnect automatically the GPS when the device is no-moving
or
b) switch to the 'Network provider' when the device is no-moving or not have GPS coverage

In the other hand, you may implement a 'system' to check if service need to be restarted.

Thank's a lot.

Accuracy

Do not send coordinates if accuracy is above N meters.

Autostart

Autostart service at boot time feature.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.