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.
Related
I would like to find an API that allows me to pull a client's current location. I know Google Places and FourSquare have API's available. Basically, I want it to run at all times, as I am eventually going to create a dating app that allows you to see who is at a current bar/restaurant/social setting at any given time.
The fetch for the current location will obviously have to be running at all times, and there are considerations of using too many client resources. With that being said, what are some of my options?
Yes, you can use the Google Places API for this: PlaceDetectionApi.getCurrentPlace(). See https://developers.google.com/places/android-api/current-place (and the Getting Started guide).
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.
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.
Any tips on how to implement a trialware model for Android apps? I plan to release my app as a free app that expires after 30 days unless the user buys the license via an in-app purchase.
I can use the Android Market API to tell if they bought the license, so my main question is how to prevent the user from un-installing and re-installing my app every 30 days? Can I save something to their phone in a permanent and reliable way that will remain on the phone even if they uninstall? I know nothing will stop a determined hacker, I just want to stop the average user.
I am also open to different approaches to going trialware on Android.
Thanks in advance,
Barry
Have you read the documentation on Application Licensing? Specifically, have a look at Implementing a Policy
I also have found this resource very helpful in determining the best way to get a unique ID for any one device. Android - Identifying App Installations -- They discuss pros/cons to the different approaches -- Straight from the developer's mouths!
I would avoid leaving unwanted remains of the application on their phone.
Instead, you can take some unique identifier of the device, and send it to your server, if this ID was not registered before, send it activation code, if it was, don't send it.
Store this activation code in some shared preferences etc. and when the application starts, check if the activation code is there and if it is valid.
They don't even have to uninstall, just clean app data. You can save something to an obscure location on the SD card, but that's also fairly easy to circumvent, even easier if they read this forum :) Your best bet is to have the app call home to your server and check if licensed periodically. That of course comes with it's own problems: do you allow it to run if network connection is never available, etc.
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.