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.
Related
I need to develop an app for windows for data transfers to android devices via mtp. That is when android is connected to windows via USB cable and android offers mtp menu as protocol for USB.
Can someone tell from which android version onwards can I assume that the device definitely has mtp support. Can this assumption be even made ?
Secondly is it android feature or does the mtp support depends on manufacturer regardless of android version ?
If you check the Android Compatibility Definition Document for Lollipop/Android 5.0 section 7.6.2 states that:
Device implementations MAY use USB mass storage, but SHOULD use Media Transfer Protocol
As it doesn't read 'MUST', I'm afraid there are no guarantees that devices which would have Google Play would have MTP, but I would be surprised if the major manufacturers didn't follow it and have an MTP implementation.
You can check the documents for older version of Android here:
http://source.android.com/compatibility/downloads.html
The [MTP] was added since Android API 12,
which Platform Version is [Android 3.1.x].
so, the [above a certain api] may be android 3.1
and ,this is the android feature,and I think the manufactur has no reason to unenable it.
Android API : developer.android.com
Android developer documentation states (for example here: http://developer.android.com/guide/topics/connectivity/wifip2p.html) that Wi-Fi P2P is available since API level 14, i.e. on Android 4.x devices.
However, a few days ago I found a device, Samsung P6800 Galaxy Tab, which runs on Android 3.2 and has full support (in the system options, i.e. not via a custom app) for Wi-Fi Direct! (as seen for example here: http://www.gsmarena.com/samsung_p6800_galaxy_tab_7_7-4136.php but I did check it personally, too)
So I'm wondering how is this possible, is there a way how to use this API/functionality even in earlier versions?
I am involved in a Android Project that connects the sensor using Bluetooth 4.0. AFAIK android didn't support Bluetooth 4.0. I tried with my laptop bluetooth 4.0. I tried with Broadcom using this. Later i came to know my Laptop Bluetooth 4.0 is Atheros Bluetooth 4.0 and later i searched for Atheros Bluetooth 4.0 API using android mobiles and tablets. I saw Qualcomm having Bluetooth 4.0 tablet. I want to know, is Atheros giving API for Bluetooth 4.0 for Android SDK.
Finally, long way of search, i found that up to today(23/12/12), Atheros not giving Bluetooth API for developers. But they are providing other API's for Audio, Camera, Device Info and Sensor(mobile shake). So, can't try on laptop also. Dgel comment and link helped me a lot and made me, come to the conclusion.
Android Bluetooth (and other) API's are not specific to the hardware (or software stack).
They are generic and fairly high-level, and Yes they include Bluetooth 4.0.
The actually support for BT 4 depends on the device. Recent Nexus devices support BT4 (both in hardware and in software) as long as they have the Android 4.2 update.
If you root your device you can get to the 'raw' vendor API's, but I don't know what that looks like for BT4, or wheteher any of that is published. In most cases that is Broadcom based, not Atheros.
EDIT:
I just saw this:
http://code.google.com/p/broadcom-ble/
I'm not familiar with this, but I suspect that it was just a stop gap measure before BT4 was added to the official Android API in 4.1.
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.
I am a beginner to the Android Platform
I am using the USB Enabled Wi-Fi CHip from Marvell; Marvell is providing support in the HAL Layer to support the Wi-Fi Direct.
Is there any other dependency on the Andoird Source that has to be taken care to support the Wi-FI Direct(I see the Wi-Fi Direct feature to be supported on android 4.0)
Can we port the frameworks and Application from Android ICS on to the Android Froyo.
Please let me know your views and suggestion and concern which i have to for see before Porting the Wi-Fi Direct on the Froyo.
Thanks
Wifi direct is implemented in driver/chip and wpa_supplicant. So if Marvell provides this for you your only addition to froyo should be modifications to gui/framework.