Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I get a functional Wi-Fi Direct demo Android Application Project for ADT?

I've seen references to a Wi-Fi Direct demo app on developer.android.com but I don't know how to locate and/or import it. Most of the Android tutorials are straight-forward and I can download and add the project as existing code (for example Network Service Discovery), but I'm not having any luck with Wi-Fi Direct.

This doesn't necessarily have to be the stock Wi-Fi Direct demo (assuming one exists). I just want something I can pull into ADT so I have some example source code. (I'm aware there are code snippets on the Wi-Fi Direct page I linked but I'm looking for a known-functional project, not pieces.)

For reference I'm running Android Developer Tools Build: v21.1.0-569685 and I have two phones running Android version 4.2.x.

like image 835
Andrew Cottrell Avatar asked Nov 28 '22 08:11

Andrew Cottrell


2 Answers

Just for the sake of up to date information, for API level 19 and 20, these demos have been moved to the legacy directory :

installationPath\samples\android-19\legacy\WiFiDirectDemo

like image 198
Sephy Avatar answered Dec 04 '22 14:12

Sephy


use sdk manager to download samples for any api above 14 . In that you shall find a wifidirectdemo sample app which shall help you get aquainted with the basic of wifi direct in android

like image 22
user2458228 Avatar answered Dec 04 '22 14:12

user2458228