Retrieve GPS data from Android Phone - android

To start this off, I do not have an android and have not in years. But, I have been asked by my SO's mother if there is a way to retrieve the location data (e.g. When the phone was at a specific location or locations) and export that into some sort of usable file.
I looked online and was not having much luck, everything I was finding mentioned installing apps to track future data, but I'm looking for past data.
The phone is a Galaxy S4...does anyone have any ideas on what can be done to retrieve this information?
Thanks!

Sign in to their google account using a browser.
Locate their user settings.
Somewhere in there will be a Location History.
If it has not been disabled it should show the location history of the device.
It'll show a calendar and you can click on the calendar to see what location data is available for each date.

Related

How to "flag" users in firebase?

I have developed an android "Group Chat" app. Me and 20 of my friends are using this app to group chat with each other. When I look at the firebase database, I obviously see 21 users (including myself). However, I can't know whether all of them actually have the app installed on their phones, or some of them have uninstalled it. Is there any way I can differentiate among my uses? Generally speaking, can I "flag" my users as, say, active, inactive, and the like?
What is if you add a timestamp every time a use log in. With this timestamp you can see how long the user not log in and so if he is in active for a long time or not. It's not say if the user have delete the app. It's only a prognosis.
If i understand correctly your question, it can be split in two parts.
First part is whether you want to know if your users are online or offline this could be achieved by an online presence system as described here
The second part is whether or not users have installed or uninstalled your app.
In my opinion easiest way to do this is by using the Firebase Analytics SDK. This way you can check the app_remove stats and whenever a user uninstalls an app, it gets updated in the console under events section.
This will give you how many devices uninstalled the app and some info on country, gender and age of the user but you could couple this with a "last login" timestamp to pinpoint the exact user.
More details along with how to include analytics SDK to your app can be found here
Or you can use the .info/connected to have this functionality in your client code. You can read more info about this here and the sample presence app at the bottom of the page will help you get a grip on how to do it.
One possible solution is to add a flag in the database as the child of the user. This flag will have an initial value of active.
And instead of uninstalling the app directly, you can have a delete account functionality in the app, and whenever someone wants to delete his/her account, it simply updates the flag to inactive in firebase database.
Now you will know actually who is active / inactive.

On Demand Android User last location and not storing it

Can someone give a suggestion on how I can accomplish this? Basically my company would like to track all of its drivers route last location without having to store it. What I means is as follow.
driver A suppose to deliver 5 items to 5 different locations. So I have android mapped the driving route and off he/she goes. Location 4 called and said, its address has changed and would like someone to reroute the package to new location. So main dispatch, will need to check where Driver A is, so that he/she can be contacted and given the information.
I want the dispatch to be able to see driver A route and last location like this.
How can I accomplish this task without requiring Driver A android device to continuously broadcasting its last location and our server having to store all the devices information in our server. Basically I'd like to be able to find the last location of Driver A on demand and initiated by our server.
Hope I have explained what I wanted clearly. Please advise?
You can try the Google Cloud Messaging (GCM) or android-push-notifications.
What we decided to do at the end is, to store the historical location directly in our server every 5 minutes and write a code in the app to massage the information according to what we need. A reverse of what we didn't want to do before but we find no other way to accomplish what we want via google directly. Unless I'm mistaken. I'm open to comment. Many thanks.

Awaiting comments on my idea on android application

My idea of android application is :
This application would be activated by a calendar
entry, showing that the phone user has an appointment
somewhere (i.e. meeting friends in a town 2 hours away).
The application would track the phones position and register that
the user is on his way to the appointment (by checking if the
user is following the route of Google maps to the destination).
The phone would keep a status of whether the phone owner
will arrive on time or be late
I am quite good at webdesign, but on android platform I am just a rookie
any expert good at android please suggest me good place to start with,
my biggest doubt is
Can i use google maps API to compare mock locations i use in simulator to locations and landmarks in google maps from source point to destination point?
I await some thing useful for me to start my work...
Take a look at glympse.com - they do this almost all of this already. It's also against the T&C of google maps to do routing, so I would very carefully read them and determine if your idea defies the T&C.

Android - getLocation()

I have developed an application for my company to track the work done by our agency people and also their location to capture the work places. As we don't want the agency people to browse other website, with the help of network providers we have restricted other websites and allowed only two URL where we run the webservice to store the information captured to the database. But since Android talks to google to get the location we also need map the maps.googleapis.com but when we tried it's not working. Can anyone tell me which URL we should map/whitelist to allow my application to access the google. Thanks
i would think u would get coordinates regardless of internet connectivity. of course i could be wrong. are you sure you added permissions for location services in the manifest. i know i have tested gps apps without internet enabled (emulator though). of course the map wont load but coords should be able to be read from the gps receiver.
If you're talking about getting your current location, then you should use LocationManager(search on SO or google, there are lots of posts about it). Otherweise you can take a look at the Developer Guide for Google Maps, but I'm not sure if Android even uses the same API, though.
Or you can only retrieve the coordinates from the devices to your database/server and you'll have the map and with the coordinates you'll know where are they. That would not need a map in the application, and no need for whitelisting the urls. This is another idea, though.

Is it possible to get infomation such as how long your application has been installed and user demographic

I am implementing Google analytic into my android app and I have got all the page views, click event analytic's I want.
I am now wanting to know how long the user has had my app installed for and if possible their demographic such as age and sex (note, my application dosnt ask the user for this information so I assume its not possible).
Also is there any other useful information I can collect which is generic between all apps and how do I do this?
Like you said, if you are not asking for this information then it is difficult to obtain.
Here's a post that talks about recognizing when the app is installed for the first time. So when this happens, you could make a call to GA or save the time/date to a remote database.
Is there on install event in android?

Categories

Resources