Is there any way to detect user interaction/activity with the phone in flutter?
I want to know which app the user is using or if the user is using his phone or not. I just want to know if the user's phone is in active state or not.
Yes, I know I can use motion sensors like Gyroscope and all but is there any other way to detect phone activity in flutter?
The idea is my app will be running in the background and it will track user interaction with the phone.
If the user is using his phone like playing game, watching video or any other activity then it will show me that phone/user is active.
All I found on the internet is to track activity like walking, running motion activity.
Is there any other way to track phone activeness?
Related
I want to create a small HTML5 app that runs in a browser window. Its purpose is to track my geolocation and the heart rate with Javascript while cycling or running. The screen does not need to stay on (as I don't even want to show a map), the phone just needs to continue collecting location data and not stop the bluetooth connection to the heart rate sensor.
Is this possible with vanilla HTML5? Or do I need something native wrapped around the app? So basically I just want to press a button when I start my tour, and then hit the stop button when I come back. A simple data collector, no fancy GUI neccessary.
I don't have problems with the app itself (using the Generic Sensor and Geolocation API), just with the interruption issues when the phone goes to sleep.
Is it possible somehow to force launch my application in the background on Android when:
GPS is turned on
OR
another app is opened?
What I want to achieve with this:
I have an app in which you can buy parking ticket / highway ticket etc... I want to have the location of the user as soon as it starts any navigation app so when he parks or goes to the highway I can send a notification to purchase ticket.
The app already handles locations but only if it's open.
Now it's not possible to lunch application with forcely.
After Android 6.0+ if you want to tract user location, storage etc! user must have to provide permission. Without that you can't do this.
And now for high sequrity patch, your app wont start GPS is turned on OR another app is opened. It's not possible now.
Thanks.
I am creating an anti-theft app that will turn on mobile data and GPS service when the phone is lost. However, the best I have been able to achieve so far is the following...
But if the phone is lost, the user has no way of pressing the "Yes" button. Is there any way or workaround to enable location and mobile data programmatically?
The user can give the necessary permissions the first time he/she runs the app. But after that the app will automatically turn on mobile data and GPS on its own when it receives an sms from a trusted contact. Is there any way I can achieve that?
is there a sensor in android to detect a tap on the device? I have a service and I want to detect when the user touches the phone. He can touch(tap) the screen, back or any other part of the device and it will trigger a function within my service. Is that possible? For example, if I have the device in my pocket, and I want my service to call a certain function when the user tap the phone from outside his pocket. Thanks.
You can use the accelerometer. The accelerometer detects a force on the device, and a tap would cause a force. The trick would be filtering out other forces, such as bouncing when walking.
I am working on an application that monitors phone use (specifically, what time its being used). Presently, I log times of phone calls, SMSs, MMSs, Screen turning on, screen turning off, and keygaurd unlocking. Now I want to determine when the user does any interaction other than whats listed above. Like:
1) Application use (Detect when an application is launched by the user and/or when it is actively being used by the user)
For this I have been playing with the Activity Manager but there does not seem to be a good way to get the information I need. It has information about whats in the foreground, background and what services are running, but lacks information on the amount of use, time of use, time of application launch, ect.
2) General Screen Interaction (Detect when a user is interacting with the screen in any/all ways)
I have yet to find any way to detect any form of general screen or keyboard interaction while my activity is not in the foreground. Any help here would be appreciated.
3) Other (I am open to other 'events' that would represent a user interacting with their phone)
I am open to other ideas about what I could possible look for when detecting user activity.
Presently, I log times of phone calls, SMSs, MMSs, Screen turning on, screen turning off, and keygaurd unlocking.
Note that your SMS/MMS support is dependent upon an undocumented/unsupported API and may not work on all devices or in future versions of Android.
Detect when an application is launched
Fortunately, there are no broadcasts for this, to help limit the scope of spyware.
General Screen Interaction (Detect when a user is interacting with the screen in any/all ways)
Fortunately, there is no way to determine this, to help limit the scope of spyware.