How get Available mobile networks list - java

I need to know if the Android API , it possibile get a list of all the operators mobile available in the moment and the realite info.
The Android operating system allows us to select the mobile network manually , so this work should be in some API,but I have not yet figured out which may be useful to me.
can someone give me a help to get started ? Especially is this thing possible ?

Related

Need assistance designing a 'Find my IPhone'-esque app

I am unsure whether this is the place to be asking this kind of question but I need some help in determining if the project I am considering is even possible to accomplish.
See, I have been wanting to make an app on Android Studio that is similar in function to 'Find my IPhone' for IOS - I run a program on my computer, connect to my phone wherever it may be, and get its current location, ideally.
On Wi-Fi, I know this is possible, easily. However, my question is if it is possible to accomplish this while the phone is using mobile data? Is it possible to still connect to the phone, while it is disconnected from Wi-Fi and on mobile data, and get its current location from my PC at home?
I know Find my IPhone can do this so there must be some way. I am completely in the dark as to how mobile data works and how data could be transmitted from it to my PC.
If there is a way, I would love to know as this would open up tons of new possibilities for projects that communicate between my phone and my PC.
Thank you for reading!
i dont know if your app is ready , or you'r asking about how to do it , yes it's possible by getting location (GPS) , but the app is not too easy as you think . you'll need servers , IP , (Learn more about this if you wanna go far with your app) ... but directly from your phone to your home PC , its not possible .

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.

Adding app shortcut on lockscreen

I want to add my app's shortcut on phone's lock screen, is it possible in android ? Below screenshot (which is of iPhone) will make it clear.
Without Widget..
Any help will be appreciated, thanks :)
If you want to add a shortcut in the home-screen then that is obviously possible with the API Android provides.
But you are talking about adding a shortcut to the lock-screen, which only a few (very few) Android devices support officially. I have experience with a lot of different Android devices from a lot of different manufacturers but none of them supports adding an app shortcut on the lockscreen.
You might not be willing to accept my answer as may not provide the answer you were looking for, but still I would try to give you two possible solutions :-
1) You need to create your own lockscreen for this and then you obviously have the privilege of adding any shortcut you want there. See if that's a possible solution for you.
2) Or, if know of any Android device that does support this, then you need to contact the device manufacturer for knowing the API.
I am rest assured there is no official API available to put an app shortcut on the lockscreen.
Hope I could help you with my best.
Check out this article at: http://fieldguide.gizmodo.com/put-your-key-apps-on-the-android-lock-screen-for-easy-a-1621573474. Following these steps should get you what you are looking for.

Is it possible to set pin programmatically for bluetooth pairing?

I have an application (however I'm testing using the sample bluetooth chat from the SDK) where two android devices connects each other, and exchange data.
I already have part of the pairing process hardcoded using the BT address, problem is: the dialog it appears to confirm the pin. Is there a way to make that work programmatically? The only thing that "appeared" to solve my problem was in this question, but that API is completely abandoned, has no documentation and many issues.
As fair as I know the problem is that if the device is not the device database with paired devices, without root access the standard API is always going to prompt the user, but I'm still wondering if there's a way.
Bluetooth autopairing is defined only for some devices. To change this you should rewrite Android framework. So, from the application, it seems to me, this is impossible to do.

Discover mobile devices using wifi

I'm doing some work for my theses in networking, and have stumbled into a little problem. One of the first steps in the work I must do consists on having a computer working as an AP (I am using hostapd for this) and with it, detect all the devices in the room which currently have wifi turned on (do not need to be associated with any AP).
I have found a thread that pretty much asks the same ( discover mobil devices using wifi ), and I understand the answers that were given, but they don't give any hint as to how this can be done. The post ends saying that the person was able to do this using Kismet, however I can only seem to use Kismet to discover clients already associated with an AP.
Can someone point me in the right direction here please? If not using Kismet, then maybe suggest a different tool that works with Ubuntu.
Ps. I will need to run a continuous scan of the "room" to find any new devices and then send this information to an event manager written in Java.
I guess you could have a WiFi card, in monitor mode, scanning every channel for beacons. On Linux, aircrack-ng is the tool suite you are looking for. airodump-ng is the tool that shows you a list of devices present around your location. It is designed to display first the hotspots with the potentials clients, but also shows all the devices that are connected to an AP or trying to probe to an AP.
However, you won't be able to scan devices having their WiFi connection turned down. I'm not sure about devices not associated to an AP, my guess is you will be able to detect them if they send beacons one way or another (for example, to detect WiFi hotspots).
If you need this in Java, you can write a wrapper to airodump-ng, or you can launch airodump-ng as a service outputing to a file and read this file from a Java app.
No concrete answer I'm afraid, but I hope these will help you figure a way to solve your problem.

Categories