To my knowledge android (studio) currently only supports wifi detection and GPS detection with a timer that runs, for example, once a minute and checks the location and currently available wifi signals.
I was wondering of there are any more efficient methods to implement this as the app needs to run in the background, for example if I happened to get to a shopping mall and my phone detects/loses a familiar signal it, or when im 50m away from my home.
I'm still rather new to android development so there's much I dont know about it but attempting to search for this information mainly provides examples of detecting wifi state changes rather than detecting new wifi signals without connecting to them
Related
We're trying to develop an app that's going to mark students presence. In order to do this we're using bluecove to detect the students phone but the phones are only discoverable for 120s.
We've developed an Android app that keeps it going forever, which works but uses too much resources. Does anyone know a better way to do this? Currently we're trying to detect phones that have once being paired and are not discoverable, Bluetooth is on. Our last option is to just mark the presence at the beginning and end of class.
I don't think its possible to detect a Bluetooth device which is not discover-able. Therefore, you can have an app that detects the phone IDs and bind each ID to a pupil upon discovery and from your register from that. This wont work unless their phone is set to discover-able. So either ask them to turn it on or just record manually.
Is it somehow possible in Android to get a count of all the nearby devices which are in active state(i.e. connected to any cellular network)? By that I mean any cellular device which is powered on and installed with a working sim.
The reason why I ask this is because whatever answers I have found so far suggest making use of bluetooth, wifi, nearby or some other custom app. My intention is to just look for devices which are actively connected to a cellular network. Each time I see a device emitting/receiving cellular signals the counter gets incremented.
I tried looking into the Android API as well but could not find something which provides this functionality. NeighboringCellInfo gives information about the device(and its network) on which the app is installed. And this is the closest I could get.
I was thinking that if I can get information about nearby cellular carriers then getting information about nearby cellular device should also be possible. End of the day it's about catching radio waves coming out of something.
Thank you so much for your valuable time. Really appreciate your help!
P.S. : I'm not very not sure if my question makes sense to you all. Please let me know if additional information is needed. I actually come from a totally different background and this is the first time i'm trying to develop a mobile app. Please feel free to correct me if my understanding is wrong.
As all users of Windows Phone 10 know, the Bluetooth connectivity on this system is cutted to the simplest for end-user, which ends for programmers as a horror to create anything. When connecting to a device, system automatically looks for a "functions" that device has, for ex. audio. The questions are as following:1. How to define a function like that on external Android device? The main goal is, to control all types of music playback from it (ex. Groove music playing)2. Where can i find a list of things like this, for future app functions?
And to get ahead of answers, I already tried the easier ways, which came to nothing due to UWP limits of controlling other apps playback.
Main target of project is to make a xamarin c# (or java, I can "translate" from one to another with ease) android app for a smartwatch and in c# uwp for windows phone to do most common tasks, like - as mentioned before - music playback control and notifications reciever.
Based on your description, you want to develop an Android app to send Bluetooth command to control the music player of a windows phone device, then it depends on your Bluetooth of your android device.
But control music player by Bluetooth need the profile Avrcp I have check the google Bluetooth API I did not find the profile of Avrcp, I think it is may be hard to send the Avrcp command at the android application level.
And Android is source opened, many device factories prefer to customize their own Android system, it is possible that the device uses a Bluetooth module as a serial device, then the official Bluetooth APIs are not suitable for this scenario, the develop protocol of this Bluetooth module is in need.
I have an app I'm currently working on based on the HTC Open Sense SDK for android. However my biggest problem is keeping up with the device checker through the Google Play dev console to only allow certain devices to download the app. My biggest reason is that people will rate my app so low on the scale and say it sucks, but the problem is that they don't read the requirements - if you use an Lg G2 to try and launch an app made for an HTC ONE that requires Sense, it's going to crash.
So, how would i go about building a helper class that would check the device's model via build.prop (without needing root privileges) before opening/starting the main activity, and give the user a notification if the device was incapable of launching the app, and with devices that are capable of launching it, just continue the process of opening the app?
I did not find answer for my question in the Internet that why want ask here. Theoretical question preparing for creating new Android app:
1) Purpose: create app thats logs events on device and saves it or on device or on server(optional). Logs like: application runs, errors, or traffic rate etc...
Also app can be used for monitoring if some one used your device.
2) Requirements: running in background like service but invisible for user or with minimum visibility.
Question: how to make app with minimum visibility? How set app to be invisible in app list or services list?