Google Play API Allows Background Location Updates? - java

Someone told me it was a good idea to use the Google Play API to handle location updates. I am needing to receive very frequent location updates in order to return the users distance.
If this is a good idea, does anyone know if it allows updates in the background? Meaning, when a user leaves the app? Is it even a good idea to use this API?
I couldn't find anything about this in its docs.

Related

How do I go about implementing a monitoring app

I am trying to build a monitoring app using LUA in corona labs. I was wondering how I would go about doing that.
Background: the app should notify the user when there is another app or outside third party accessing the camera/microphone.
I'm thinking trying to get access to the devices resource manager and it notify the app when the camera and microphone is being used.
I haven't come across anything like this before. Am I on the right path? Or am I way off? How would you go about doing this?
I'm not expecting a definite answer, just a nudge in the right direction :)
In general this kind of behavior is not what Corona is designed for. You would likely have to use native tools, or Corona native if you want to use corona for your UI, to access this kind of data.
There is an interesting discussion about how it can be done in Android here How to check whether microphone is used by any background app, hope it helps!

Android app to know the access point utilization

I am working on an android application and I want to make this app be able to tell me how many devices are connected to the current access point I am attached to. What is the best possible solution for this. I don't want the details of devices instead I just need the number of devices connected to a particular access point. I want to use this data for my web GUI which will show the utilization trend for each access point. Please suggest the way how to do this.

Posting messages for intended location Android application

I am new to android programming and I am trying to create an application that helps me to send a message/post (based on intended location) to those users using the same app in that particular location.
Can i get some resources on this?
Also currently i am trying to implement the feature wherein i post a message about a particular location on my wall and that same message has to seen by the users in that location. How can i implement this.
please post suggestions/open-srouce codes, examples etc.
thank you
You're probably looking for solutions related to the Geo-Fences concept.
There are plenty of applications that can use your mobile coordinates to interact and provide feedback. Notice that the accuracy of the mobile phone GPS is not THAT good, but people can play :-)
Take a look on this application -- https://www.onx.ms/#!landingPage
Official Android docs about geofencing here -- http://developer.android.com/intl/pt-br/training/location/geofencing.html

How to detect volume buttons when screen is off in energy-saving way

I would make an application that handle the volume buttons when screen is off. The goal would be to turn on or off the front LED.
I know that there many topics here that talk about it, but the recommended solutions (like PARTIAL_WAKE_LOCK) seem to be energy intensive and drain the battery very quickly!
What I want is a solution that is as energy efficient as possible. Is this possible? Maybe some kind of hooking?
Please note that the solutions based on scheduled tasks can not be envisaged for this project because I want detect keys in real time (or close to it)!
Take a look at this question.. if you already haven't ..
Just to make one thing clear. If something is not documented in API docs of android then any hack or workaround you find won't be reliable as Google may decide to change things in future releases, for example there is nothing documented about creating shortcuts after the app is installed ! But Since Android source code is available, developers took that piece of code as how was playstore creating shortcuts.. but its not documented so Google may change it in future !

Android Project - Required Tools

I'm in the process of starting a new Android project that will:
Display a Google map
Track and record users movements
Display the route on the map
Show local points on interest on the map
My question is what extra tools will I need to accomplish this? I can already get a basic Google Map working with zoom controls and place overlays etc. but my main concern is how I will track the users movements. I was thinking there maybe some sort of fleet management API but I really have no idea.
A link to some sort of tutorial would be great or even just to possible tools.
Use the class http://developer.android.com/reference/android/location/LocationManager.html to obtain the device geographical location
A Caltrans planning grant went towards creating an Android app called CycleTracks that does all of your bulleted items except the last one about points of interest.
You can download the source code here: http://www.sfcta.org/downloads/cycletracks/CycleTracks-android.zip
I haven't looked at the license to see how free you are to use it as a starting point, but I have to imagine it might be helpful just to be able to look at it even if the license is restrictive.
You can read more about it at http://www.sfcta.org/content/view/666/375.
You don't need any extra tools. Use the GPS or radio cells to get the location of the phone. This thread explains how you can get the location:
How do I get the current GPS location programmatically in Android?
If you want to Track the users movement you'll need to run a webservice on a server and have the app report the location of a user at regular intervals.
Be careful though, if you don't tell the user this is what you are doing, and provide an opt out, you could be pulled from the market pretty quickly.
Be sure you aren't recording any sensitive information as well. Usually position, phone type and OS type is allowed but much more could get you in trouble.

Categories