Android MainActivity Changing it

jaimzj4 years ago

Dear Anton,

The current code in Github for Android Client, I have downloaded to try one thing.

That is, Currently when the App is installed and run the .MainActivity is launched

I know its probably not specific to Traccar (The question).

But say for Instance, I want to display another Activity/Menu on launch to the user, and Keep The MainActivity (Preferecne settings tab) elsewhere.

What is the best way to achieve it, without affecting the (service from not running etc.)

jaimzj4 years ago

Anton the edit button on the forum stops showing sometimes.

Anyway, I thought of re-phrasing the question so that other's can also benefit from it.

  1. What is the best way to use Traccar Android Client code, When someone wants to develop an APP and only use traccar as a component/library to update locations of the devices.

  2. Where the primary Android APP is one and Traccar Client codes /library is used only for location update (behind the scenes.)

Anton Tananaev4 years ago

You can easily add more Activities if you want and change launcher activity as well. It's a standard Android project.

  1. I guess the easiest way to extend the app is to fork the project and add your UI to it. That way if there are any changes and bug fixes in the main repository, you can easily merge them into your version.

  2. Not sure if I understand the question correctly. The only thing Traccar Client does it reporting location to the server.

jaimzj4 years ago

Yes, you understood my question right. Thanks for the Input it did help :)