Crash-Test-Buddies / WiFi-Buddy

Wi-Fi Buddy - Library to handle Android Wi-Fi Direct
https://groups.google.com/forum/#!forum/wi-fi-direct
MIT License
48 stars 12 forks source link

Remove persistent groups #117

Closed brendankirby closed 8 years ago

brendankirby commented 8 years ago

Uses Java reflection to remove persistent/remembered groups.

It was pretty simple, just copy and pasted this method and it worked.

https://stackoverflow.com/questions/15152817/can-i-change-the-group-owner-in-a-persistent-group-in-wi-fi-direct/26242221#26242221

I still want to figure out why they don't let you call the method.

cghiee commented 8 years ago

Hi Brendan,

Just curious, when you find a solution like this, do you put the information and example into a separate document that supports/describes your new library or is there another way in which you keep track of this descriptive background information?

Clark

[ECTET_RIT_Small] Dr. Clark Hochgraf Paul & Francena Miller Chair in International Education Associate Professor of Electrical, Computer, and Telecommunications Engineering Technology Rochester Institute of Technology 78 Lomb Memorial Drive ENT 82-2136 Rochester, NY 14623 USA (585) 475-3167 (V) (585) 475-2178 (F) E-mail: cghiee@rit.edumailto:mgeiee@rit.edu

MIT Master Trainer in Educational Mobile Computing Past President, Fingerlakes Chapter of the International Council on Systems Engineering Standards Technical Panel Member UL 1778, UL 1741 Member SAE J2836/3™ - Use Cases for Communication between Plug-in Vehicles and the Utility Grid for Reverse Power Flow

CONFIDENTIALITY NOTE: The information transmitted, including attachments, is intended only for the person(s) or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and destroy any copies of this information.

From: Brendan Kirby notifications@github.com<mailto:notifications@github.com> Reply-To: brendankirby/WiFi-Buddy reply@reply.github.com<mailto:reply@reply.github.com> Date: Wednesday, June 8, 2016 at 10:00 AM To: brendankirby/WiFi-Buddy WiFi-Buddy@noreply.github.com<mailto:WiFi-Buddy@noreply.github.com> Subject: [brendankirby/WiFi-Buddy] Remove persistent groups (#117)

Uses Java reflection to remove persistent/remembered groups.

It was pretty simple, just copy and pasted this method and it worked.

https://stackoverflow.com/questions/15152817/can-i-change-the-group-owner-in-a-persistent-group-in-wi-fi-direct/26242221#26242221


You can view, comment on, or merge this pull request online at:

https://github.com/brendankirby/WiFi-Buddy/pull/117

Commit Summary

File Changes

Patch Links:

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/brendankirby/WiFi-Buddy/pull/117, or mute the threadhttps://github.com/notifications/unsubscribe/AGcM2A0kdMkN887lJiV8LOeXAi3kxxImks5qJsrygaJpZM4Iw_U0.

brendankirby commented 8 years ago

@cghiee Hi Clark, that's a good point. I thought I would be able to figure out how to call the real method eventually, but I got an answer in the Google Group and it doesn't seem like there's much I can do besides reflection. So I'll cite this in the code and discuss it in our FAQ's doc.

brendankirby commented 8 years ago

"That API is not in the SDK.

This is a general Android paradigm .. it often exposes a subset of APIs in SDK than what the OS natively implements. There are various reasons for it .. including system stability, security etc. The most prominent reason for hidden APIs is that Android reserves right to change it and break your apps.

That said, there are some APIs here that need to be added or improved or exposed - as you are correct to point out. Short of changing Android, it is hard to do. Till then, we are limited to using what the system provides."