Android GPS Tracking application with online panel - android

hello i want to develop an GPS Tracking Application with an online panel.
i have been looking and learning this code found here:
http://code.google.com/p/open-gpstracker/source/
But they don't provide any online tracking information, i need to make a GPS application with admin to see online data of the track traces and record like WAY Android application.
And i don't want user to view tracking on mobile, the application only runs in background.
I just need guide, where to start and what stuffs i need to look at.
I know asking here without a source code is waste of time, still i hope you guys can provide me a startup guide to get started with my development.

I think I have exactly what you want:
https://github.com/tananaev/traccar-client-android
The server side code:
https://github.com/tananaev/traccar
and web interface is a separate project:
https://github.com/tananaev/traccar-web

A good start might be checking out this example app: https://github.com/cintric/cintric-android-demo
It uses a free Cintric SDK for battery efficient tracking. It also has a cool web panel which might provide good inspiration for your app.
The SDK provides callbacks for GPS updates which you can then use to send to your server, or you can let cintric manage sending the data and sync in batches via the api.

Related

Android app to perminantly monitor a database and alert on change

I am looking to create an app that monitors an online sql database and alerts the user if records change. In case you're interested, the database is being updated by a computer as to the state of some sensors the computer is monitoring. I have already got the database and monitoring computer working perfectly and have made an app to see the data in a list view. What I want is an app that opens on start up and runs in the background constantly and when changes occur can trigger an alarm and a toast telling me what's going on. I suppose it's similar to all the push notifications your phone gets from facebook and the like but I intend the app to be actively querying the database.
Anyone able to help or point me in the right direction? I've looked around but can't seem to find the info. I'm sure it's there, I must just not be using the right terms.
Thanks for your help.
So basically here is the systems approach to what you're trying to do. You're going to want to establish some sort of websocket on your backend and some sort of NoSQL like Redis to help manage the pub/sub part to your Android App in order to stream live updates from your web/database server. Then when you go to update the record in your database you also send information over the websocket to your Android App.
That's the gist of how that type of thing works.

Integrate Android Service on NativeScript App

I need to develop an app that should periodically check for available WiFi networks and trigger an action once an specific network is on range.
I plan to implement an Android service to handle the part on which it keeps checking for the available networks and make it broadcast a notification once the specific network is detected.
I'm wondering how to integrate that on a NativeScript App, what I mean is that I want to make the code on NativeScript subscribe to receive the notifications from the Android Service, and once it is received do something.
To be clear, I want the Service to be native (written on java) and somehow get it included on my NativeScript app, to make it interact with the GUI.
Thanks,
Well, it seems like there is quite a few resources regarding this subject:
mainly:
https://github.com/NativeScript/sample-android-background-services
https://www.nativescript.org/blog/using-android-background-services-in-nativescript
this might be useful (if you happen to have an error mentioning 'empty constructor'):
https://www.npmjs.com/package/nativescript-android-utils
you might be also interested in using web workers:
http://docs.nativescript.org/core-concepts/multithreading-model#multithreading-model
or extending an existing android app:
http://docs.nativescript.org/integration-with-existing-ios-and-android-apps/extend-existing-android-app

what data is sent or received from apps installed on my android?

I am trying to build an android application which will display the user what data was sent from all apps and what data was received on all apps installed on the device.
I have searched but nothing came which could give me a start. Is there any encryption/decryption techniques used(Since i have no idea about the same).
It would be a privilege if i get to know where to start with this project.
I think you are talking more about a background service running all the time, but that's really complicated if you don't have clear idea on how they works.
Start with this: http://developer.android.com/guide/components/services.html

Is there a way to remotely monitor a specific Android application?

There is an android application I am planning to write, that will be used as an "always on" application (kiosk-mode) used on Android tablets running restaurant menu. Today, I already have a rudimentary application, but it is not quite what might qualify as kiosk-mode, since sometimes users close the application.
I wanted to see if there is a way to monitor the application remotely (or on device itself) and automatically restart it, s.t. it comes the foreground application ?
Of course, I'd prefer to remotely monitor for some remote customer service. It is not exactly essential to view (in remote desktop / vnc sense), but gather information like application health (running in foreground or not), get it's logs etc. Now I understand that on an unrooted device an applications log is not visible to other applications. So I was wondering if I could design my application to create light logs or status information, in a non-standard way, that could be shared by my other monitoring application.
While I get a feel that I am reinventing the wheel, since requirements like these seem far-from-unique, but in my search haven't found much beyond the standard 'screen cast' / 'screen share' applications... most of which either don't work too well (especially without root), or need one to jump through hoops to get them working.
There are ways to monitor activities of your application. There are utilities available to help you keep logs of events carried out by the users of the application. Like getting statistical information. They are typically Mobile Analytics tools.
Check this for instance: https://mixpanel.com/
This for example can help to keep track of events fired by the application. You can even send mails and notification to the users. There are similar tools available. For instance Google Analytics for Mobile Apps
The other possibility is to use Google Cloud Messaging. I believe this is even more powerful, which may help us to control our application to some extent. You may find this of help: http://hmkcode.com/android-google-cloud-messaging-tutorial/

How to send data from an Android application to a server?

I'm developping an online Chess game in Android. The first player uses the app and the second a webpage in html.
What i want to do is to send the text with the information of every move each player makes in his turns. All the processing and validation parts of the game will be done in the Android application. The second player just receives the text, parses it into html code and then send a very similar text to the application in order to receive the authorisation of the move.
I'm really trying to spend the least possible of internet resources.
I've been searching what's my best option in order to send the messages with Android, but since I'm not very experienced with it, I don't know what to do.
I found these possibilities for sending the messages:
GCM
Android ServerSockets and Sockets
Making Push technology, like long-polling
I have never used any of those technologies, but I would like to know which one could be the best for starting to make a deeper research of.
As you can see a chess game doesn't need a great amount of messaging since I have to send and receive a single message per move and per the authorisation of it by the chess engine in the Android application.
If you know a better solution or links with an example of the technology I should use, I would be very grateful.
On your case it's just matter if the the Android player will need to be with the app running (real time play) or there will be the option to send the play, play turn off the app, and see the next move in a few hours?
If it's a real time just open the connection and use polling or sockets to keep the game running.
If it won't be a real time game, GCM is probably your best approach.
But remind that both options will mean you'll need your own web-server running stuff.

Categories

Resources