Tell me more ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

I have a Sony Ericsson Arc S, running on Android 4.0.4

I rooted my cellphone and added android.hardware.wifi.direct.xml in /system/etc/permissions/.

I can see the WiFi Direct option in my Settings. When I enable WiFi Direct, it shows that WiFi Direct is opened, but the WiFi is disabled. If I enable WiFi, my WiFi Direct changes to disabled.

When I run WiFiDirectDemo, it fails when I enable WiFi Direct. Once it reaches discoverPeers, WifiP2pManager.ActionListener returns 'Discovery Failed : reason Code is 0'.

I don't know what happened. Does anybody know how to enable WiFi Direct for my phone? Or is it impossible? Why?

share|improve this question
Is this a programming question? If so, it should be in StackOverflow.com – geffchang Jan 10 at 14:28
@geff_chang it does not appear to be. It looks like Tony is trying to use Wifi Direct, after putting the Wifi Direct xml file in place. – ZnewmaN Jan 10 at 14:34
@Tony I think you can't use it due to any old hardware. From XDA dev you can try a tweak. – avirk Jan 10 at 14:37
@ZnewmaN Thanks. I was just curious about the WiFiDirectDemo, and the mention of ActionListener. – geffchang Jan 10 at 14:40
This is the behavior on a lot of devices. You can see that it turns off on the device in this post as well. The Wifi chip in the device has to support running in both "modes" at the same time. – Ryan Conrad Jan 10 at 14:44

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.