Mark, Yes, what I am doing is first and foremost for my own benefit and not a financial one... I've not decided whether to put this out as a free download in the app store yet. I have something working now and it's been a satisfying puzzle to crack. I gather that this approach might be used to provide tethering on 2.2 devices that don't have the capability enabled by the carrier.
Personally I'd rather Google bundle a widget if they're not yet willing to make the API public. I find myself frequently needing to turn the AP on for a few minutes before turning it off again on client premises. Phil. On Nov 11, 6:31 pm, Mark Murphy <mmur...@commonsware.com> wrote: > On Thu, Nov 11, 2010 at 7:53 AM, Phil <p...@surfsoftconsulting.com> 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/commonsguyhttp://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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en