This new restriction on Android 6.0. If the wifi you are connected to doesn't have internet access, it alerts you to choose whether you want to keep connected, and if you select no, or you don't make a selection, the phone will be disconnected, and get connected back to your 3G/4G or another wifi. For real world users, a lot of them won't even pay attention to that alert message. Is there a workaround to override this restriction? I need the wifi with no internet connection, and i do not want the users to have to deal with selecting whether they have to keep connected. Any help will be appreciated.
Related
I want to connect to a specific network (according to the network's name) from the app.
This is so the user doesn't need to open the system's networks-list.
If this is not possible, how to open the system's networks list from the app.
You don't need to ask the user to select a network from within the app. Simply allow your app to use the network to which the phone is connected already. To do this, you need to add network permissions.
Here you have everything you need :
https://developer.android.com/training/basics/network-ops/connecting.html
I'm working on a project that can help optimize multicast. More precisely an implementation of Network Coding.
I have a great deal of it done in simulators, but now that I want to implement it on actual mobile phones, I'm facing this problem: How can I send data between them phones without the need for access points between them?
Can I open sockets programmatically and listen to them? Or is there something like an AdHoc network (those are no longer supported in android) that I can use?
EDIT: If needed I can rely on a server/access point for DHCP and such (for the phones to know of each other) . But the data needs to flow between the phones independently of the access point.
An access point is just a 1st-level ISO/OSI device that permits to one or more WiFi compliant devices to communicate wirelessly. Unless you can use Bluetooth or IR as a fallback, there's no way you could make it without an AP.
Have one of your phones act as a "mobile hotspot" (a wifi access point) for the other phones. Share the name of the access point and passphrase with the other phones and they will all be connected on the same network (and the internet through the "hotspot" phone's cellular data connection.
In this way, you have all the normal networking capabilities and security available to you without requiring an additional/external access point.
However, this will not result in direct connectivity between the many phones that are not the access point; all (non-multicast) network communication will bounce through the phone that is acting as an access point for your network.
I'm just looking at the WiFiP2PManager in Android. It appears that if I host a service and a user connects, then the host has to approve the connection. However, I do not want this as in my application the host will acknowledge this when they start hosting.
Is there anyway to do that, and if I can't do that in anyway at all, is there a way of telling the system that the user tapped 'Yes'?
Thanks
There is currently no way to do this though from Android 4.2.2 it is possible to remember previous groups.
Look at this issue(it deals with this exact problem):https://code.google.com/p/android/issues/detail?id=30880
I need a suggestion to implement a bluetooth application:
it scan for devices and have to check if the discovered devices has the same application installed.
There's a way to do that?
From http://developer.android.com/guide/topics/connectivity/bluetooth.html
"a Bluetooth device within the local area will respond to a discovery request only if it is currently enabled to be discoverable. If a device is discoverable, it will respond to the discovery request by sharing some information, such as the device name, *class,* and its unique MAC address. Using this information, the device performing discovery can then choose to initiate a connection to the discovered device.
So i guess the device need to accept the connection to get more information about installed apps and other.
I am trying, without success, to pair a bluetooth device with a Android phone without asking to the user the PIN.
My idea is to fetch the desired PIN from a web service because the bluetooth device I want pair needs to be used from more people (and so for more android phones) without knowing and enter the PIN.
Do you have any idea for do it? I tried to see Bluetooth classes, but always, during device connection, I need to enter the PIN.
Thank you in advance!
You can use "just works" feature of Bluetooth pairing. This works only with SSP(secure simple pairing), from Bluetooth 2.1 onwards.
You have to set the IO capabilities of device for this to work.