can we have wifi direct api working in 2.3 version - android

hi i am developing a app which will use proximity to pair other persons.
I can either use Bluetooth or Wifi Direct.
After some research i found out that Android ICS has API's for Wifi direct but if my application needs to work on older phones i need some API which can help me, please guide me.
Does Google provide any API to be included to the sdk to be used for older android versions or I am wondering if it is possible ??
I am reluctant to use Bluetooth because of it's slow connectivity.
thanks

I think that API was added on Ice Cream Sandwich (14). So you have no chance to use this API in older Android versions.

Related

Is there a framework or something else I have to download for android development to make connecting a bluetooth low energy device possible?

Im working on a simple Android application and need it to have the ability to connect to a Bluetooth low energy device. Im relatively new to Android development and was wondering if there were any frameworks or SDKs that I had to download to make this possible.
You should look in to Bluetooth Studio
Nope, you should not need anything special to work with Bluetooth low energy on Android at long as you are targeting a platform that is API 18 or higher. An excellent place to start as mentioned in the comment above is the Developer Documentation. The other place I would look at for an example are the samples provided by Google. The BLE one can be found here. Be warned though that devices with API 18 devices do support BLE, they had a lot of bugs, and you might be better of just supporting a minimum level of 19 (KitKat).

Wi-Fi Direct and Android Support

I am wanting to use Wi-Fi Direct in a solution but am unsure which platforms will support it.
Is Wi-Fi Direct dependent on phone type or Android version?
I need to know if I can develop an App with Wi-Fi direct features on a Xiaomi running MIUI version of Android 4.2.2
Android Developer site Wifi-Direct tutorial
Wifi Direct support was added in API level 14, i.e. ICS, so the phone you specify is likely supporting the feature.

Can I develop an app with the Lollipop SDK for a 4.3 or 4.4 phone?

I recently received an invite to use Inbox and it is using the new material design feature from 5.0. So this got me wondering if I can develop an app with the new SDK to enable BLE peripheral, but for a Jellybean or KitKat device. Does anyone know if this is possible?
Here is the list of updates: http://android-developers.blogspot.ca/2014/10/whats-new-in-android-50-lollipop.html
No.
There are support libraries released to help backport apps running on older versions of Android. Here's a list of all of the support libraries and what they allow you to do.
Perihiperal profile has only just been introduced, but hasn't made it's way in to the support libraries. My guess would be because it's rooted much further down in the OS and isn't something that an app can bring in. This suggests that it won't ever be possible (unless perhaps the user is running a custom ROM).
4.3+ already supports lots of Bluetooth LE features, it just doesn't support peripheral profiles. I have personally been waiting for this for a project of mine, so very excited that it's now available in Lollipop.
Hope that helps.

WiFi Direct for Android Version 2.3+

I have noticed on the official Android blog that WiFi Direct APIs are supported on google phone which are having versions 4.0 or later. Also I have seen the code to access WiFi Direct API.
But I have doubt that on some blogs people have written that some 2.3 version android devices also support WiFi Direct. So same code we are writing for 4.0 or later , will work on the 2.3 version android devices which support WiFi Direct?. I have failed to find the code which is compatible to android version 2.3
Again I have noticed ,Alternate solution for this is "AllJoyn" (https://www.alljoyn.org/) , but don't know that is it the right way to use WiFi Direct ?
Can anybody please help me ?
The fact that a device supports WiFi Direct (eg: version 2.3) doesn't necessarily mean that you have access to the WiFi Direct API (available from 4.0)
On the version 2.3 examples, consider that the feature is there but the app developer can't
directly interact with it.
I think that on the blogs you are talking about, the guys have just enabled the WiFi Direct on 2.3 but don't do anything by code.
If you want to do something by code with WiFi Direct, you need a device WD enabled and which runs on 4.0 at least so you have access to the API.
AllJoyn won't solve your problem. AllJoyn provides a layer on top of the transport APIs so the developer doesn't have to care if the data will be transferred via Bluetooth, WIFi legacy or WiFi Direct.

Why does the native SIP stack included in Android 2.3 does not work over 3g?

I was wondering why does the native SIP stack included in the Android framework(since 2.3) does not work over 3g?
Could it have something to do with any laws or restrictions google may have with his partners?
And furthermore, does anybody know if there is any plans to remove that restriction ?
Thx
In GingerBread, SipManager is set to work only on wifi.
`<bool name="config_sip_wifi_only">true</bool>`
But from 4.0 onwards, this config has been changed to false
So Ideally native sip stack should work on 3G from Ice Cream Sandwich onwards.
But again if the phone is sold by a service provider, then this might have been disabled. So phones sold unlocked may have this intact.
To check whether Sip over 3G is supported you can use the api
SipManager.isSipWifiOnly(mContext);

Categories

Resources