On Thu, Nov 11, 2010 at 7:53 AM, Phil <[email protected]> wrote: > Interestingly there must be another way to do this than through the > official hidden API as there is at least one hot spot widget in the > marketplace already.
Oh, well, there are known tricks for dealing with hidden APIs. Those tricks are highly unreliable over time, as there is no guarantee they will work on any given Android release or device, which is why I generally don't talk about them. > I tried writing a spoof version of android.net.wifi.WifiManager which > allowed me to compile and deploy the code, but this results in a > noSuchMethod error at runtime I'll be somewhat surprised if your spoof trick will work. > although the Reflection API shows that these methods are present. Which means that you already know a trick for dealing with hidden APIs. I VERY SERIOUSLY DISCOURAGE THE USE OF TRICKS LIKE THIS BY COMPANIES SMALLER THAN $1 BILLION IN MARKET CAP. (figuring that anybody who's that big can afford to field the team required to test, support, and maintain their hack over time) Any solo developer or tiny firm playing games like this is simply begging for crap Market ratings, and too many users posting too many crap Market ratings spells trouble for Android in the long term. While I am sure what you have in mind is very very cool, please don't distribute it. If all you're doing, though, is writing something for yourself, have at it. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

