wifi-direct

How to use InputMethodService in wifi p2p service discovery?

风流意气都作罢 提交于 2019-12-12 01:56:17
问题 I am new to android, please tell me if inputMethodService can work with wifi p2p service discovery? I want one phone to act as a keyboard for another phone. Please tell me if it is possible and which resources to refer in order to begin with it. Thank you. 回答1: I think what you need to do is not worry about the input-method in the first device, but create an application where you input text as normal from what ever you are using for input on the android device and then make that application

Creating P2P Connections with Wi-Fi on Android

放肆的年华 提交于 2019-12-11 22:36:57
问题 So I'm trying to create p2p connection work on android. And I am stuck on following part. code below is what's provided on API and it does not make sense to me. I feel like there must be a type for a mManager and the type is not given. How do I make this Work? Link to API: http://developer.android.com/training/connect-devices-wirelessly/wifi-direct.html @Override Channel mChannel; public void onCreate(Bundle savedInstanceState) { .... mManager = (WifiP2pManager) getSystemService(Context.WIFI

Transfer data from one device to another - android

给你一囗甜甜゛ 提交于 2019-12-11 17:25:21
问题 so I have created two separate apps, one acts as a client & the other acts as a server. Both devices are connected using hotspot: Connection between the devices is successful. For transferring data from the server to the client, I am using the below code: public static String downloadDataFromSender(String apiUrl) throws IOException { InputStream is = null; try { URL url = new URL(apiUrl); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setReadTimeout(10000 /*

Can wi fi direct work permanently?

我的梦境 提交于 2019-12-11 07:25:17
问题 wi fi direct switches off after some time on my Android 4.0.3. But I need it to work permanently for my program can send some data periodically on demand from client device. How to overcome this issue? Morover, ShareIt application works throught wi fi direct without switching it on manually in settings menu. Does anyone know how do they do it? 回答1: I found the answer. There is an extra option in settings: disable after X min idle. And there is "never" option over there. 来源: https:/

Does Hololens support Wifi Direct?

眉间皱痕 提交于 2019-12-11 07:01:24
问题 I am about to make a Hololens software that uses some wireless connection to interact with an Android mobile phone. Do you know does Hololens support Wifi Direct? If Hololens does not support Wifi Direct, can you tell what connection technologies can be alternatively used? 回答1: At this point HoloLens doesn't support WifiDirect. Soon HoloLens updated version is going to be released and hopefully that version will have this(not yet officially confirmed). However for now you can use BLE or use

Wi-Fi Direct technology

牧云@^-^@ 提交于 2019-12-11 03:27:04
问题 I'm thinking about create an app that transfers video streaming via Wi-Fi Direct. I've already googled (even in Stackoverflow) that, but I haven't found a list specifying the supported devices. My question is: Is it possible to code an application using Wi-Fi Direct on Samsung Galaxy Mini (GT-S5570B with Android 2.3.6 Gingerbread)? Is there a hardware limitation about this technology or just the code is enough? 回答1: In the Android platform, devices with Android 2.3 or Gingerbread and below

Can I use AllJoyn Framework for Wifi Direct in iOS?

元气小坏坏 提交于 2019-12-10 22:57:33
问题 I want to develop an iOS application through which I have to communicate with other devices(other than iOS devices) over WiFi direct. As per my knowledge there are no APIs provided in iOS for WiFi direct communication. I found a link regarding third party library AllJoyn. AllJoyn Framework Has anybody used this library for iOS? Is AllJoyn provide a good support if in future developer faces any issue with this library? 回答1: I am a past contributor to the iOS bindings of AllJoyn. AllJoyn does

Why do I always get BUSY when using WifiP2pManager?

百般思念 提交于 2019-12-10 19:08:17
问题 I am trying to connect two Android-Devices using Wi-Fi Direct. On my HTC-Phone (One SV) it seems to work, but with my second device a LG Optimus 4xhd it doesnt work. In my onResume() function I start the following thread: new Thread(){ private int count=0; public void run() { mManager.discoverPeers(mChannel, new WifiP2pManager.ActionListener() { @Override public void onSuccess() { Log.d(tag,"SUCCESS - started discovering peers"); } @Override public void onFailure(int reason) { count++; String

Android WiFi Direct device details

孤街浪徒 提交于 2019-12-10 17:23:18
问题 I'd like to know how I can change the device details of WiFi Direct interface of an Android device (for example the name of interface). I'm developing an application that uses Bluetooth or WiFi Direct technology for wireless communications and it connects only to devices named with a particular prefix to discriminate those devices that are running my app, respect to those that have only the interface on (I know that it is a naive solution... :)). Bluetooth permits to manipulate the name of

Forgetting old WiFi Direct connections

♀尐吖头ヾ 提交于 2019-12-09 12:46:36
问题 Is there a way to forget old WiFi Direct connections(in code)? I need this so as to change who becomes Group owner. I am setting groupOwnerIntent = 15 and yet not becoming Group owner. 回答1: If you want just to discinnect from existant WiFiP2p connection, than just call WiFiP2pManager#removeGroup . Doesnt matter is device GO or peer. If you are talking about forgeting persistant groups - u can also remove it. But it can only be achieved via reflection. And also no matter is device GO or peer.