I want to find the walking speed of a person using GPS. Is this possible? If so, how?
Are you looking for a way to code that in an android app, or just an app that will do that for you?
Ican't help with code, but if it's the second one, here's a link to one. There are dozens, though. Look through the health section of the Android market. Any run timer or cyclometer will generally do.
Be aware that android is less consistently compatible with user generated apps, that some other ap markets, so make sure that whatever you use will work with your device befre you download it.
Related
I'm trying to program an app using android studio that receives data (blood sugar levels) from the app tomato (which calculates blood sugar levels automatically every 5 mins or so). The tomato app already exists and is made by a company.
So I was wondering if doing this is possible. if so, how?
I saw this post: Is it possible for an Android app to use data from another app? which is very similar to what im trying to do but i didnt find an exact solution/answer to this.
Any opinions and help are very much needed and welcomed.
You would first need to know how the app is storing the data, you could check your phone's storage using the Device File Explorer in Android Studio. If they have exposed the data then you are able to check and read the files that the app has exposed. However, I have a feeling that they would not be leaving them in plain text for you to take.
Upon some further reading, it seems they read from a device called a MiaoMiao Transmitter. You could ask the producer of this product for a developer kit and see what they say. This would come with documentation as to how you can get data from the product. However, if they do not provide you with any help, you will need to do some investigation as to how the device functions.
Perhaps it sends android broadcasts when it is taking a reading? This is just speculation of course. This is very niche and I believe that is a reason there are only a few apps that use the device - they are trying to lock out "non-verified" developers. However, when there is a will, there is always a way! ;)
Best of luck!
I'm a beginner in android development. I need some idea about how can I make an app which can track a phone's live location. I want to use the same app on 2 devices and both of them should be able to track each other. Can someone please help?
the good starting point is https://developer.android.com/training/location where you can find examples and best practices. Depending on your application please consider a suitable strategy (background tracking, geofencing, and impact on the battery). The second thing you have to solve is how to exchange/share information between devices. There are ways how to deal with it. For example, google API, web socket or something else. Sorry for the general answer.
for a university project I have to track the screen time of an android smartphone. It's hard to find proper search results, because my search engines do only suggest apps, that already do this for you. I am interested in how these apps do this. I assume, there is a native API on android which supports you with this. Unfortunately, I can't find anything that already does this.
The app is supposed to run a little service which tracks the time of the screen activity and other stuff (like location). It would be great, if someone of you can help me out on where to look for examples and where to find information about the android API.
Edit:
To be a bit more precise: It's about the overall screen time, not about the screen time a specific app has.
Broadcast Actions might be a solution for this,
ACTION_SCREEN_ON
ACTION_SCREEN_OFF
https://developer.android.com/reference/android/content/Intent.html#ACTION_SCREEN_ON
https://developer.android.com/reference/android/content/Intent.html#ACTION_SCREEN_OFF
I am a long time lurker on Stack Overflow where generally the solutions I sought already existed on here. However, I am stumped trying to find information on tackling this problem.
Basically, I am looking at making an Android app - first time making such an app - and part of the functionality is to monitor what else the phone user is doing and then maybe create a log of what the person has done. For example, spent 27% of the time when the phone screen is on using Facebook.
As for my actual Android Studio experience, all I have created so far is a simple app that takes in text from an input field and alerts it back out to you. I am studying a video series to learn how to use and develop with Android Studio.
I am enthusiastic about the challenge, so if anyone has some good resources or information to help me achieve this I would be really grateful.
Yes it is possible to track applications usage, using google API.
Here is google resource link
What may interest you the most is the part concerning UsageStats
You can use this since api 5.0. You can then for example use method getTotalTimeInForeground() to get the total time this package spent in the foreground, measured in milliseconds, which seems to correspond to your needs.
Therefore, using your Facebook example. After you get the package name (com.facebook.katana) , you could get the application (Facebook) uptime on a daily/weekly/monthly base.
Also, you could use getLastTimeUsed() and make your application logs those timestamp then do some maths.
I have a game in the Google Play Store that has an option to change the scoring system from points to $'s. Apparently this is a simulation of gambling and illegal in South Korea. I got a official reprimand from Google and they took my app off of the Korean market and raised my maturity rating to "Mature". This extra feature is totally unnecessary for the game play though many users enjoy it. I would like to disable it only in Korea. However I need some way that is reliable.
I though about using locale but the user could change that.
context.getResources().getConfiguration().locale.getDisplayCountry(Locale locale);
I found this:
android.telephony.TelephonyManager.getNetworkCountryIso()
Would the country ISO be guaranteed to be correct? Is there a different method that I am overlooking?
Also, I don't have GPS permission for my app. I think it would be wrong to enable it just for this use case. In addition I have thought about multiple APKs. This would be a last resort. I believe that they would be treated as two separate apps. I would not have all my good ratings and downloads.
Hopefully if I get this working I can have Google reconsider their decision.
Edit: #Nobu Games brings up an excellent point. This does need to work for tablet also.
android.telephony.TelephonyManager.getNetworkCountryIso()
Absolutely
I think locale option is not good, as one can change locale manually, there is a app to do it.
I tried it once. for testing multiple language support for my app.
This answer can help you more.