hidden APIs in Android

by tomei.ninge...@gmail.com » Thu, 19 Nov 2009 09:49:45 GMT

Sponsored Links
 There are a bunch of APIs that are hidden using the @hide tag so they
are not exposed in the SDK. If I call these APIs anyway, does the VM
actually prevent me from doing that (in dexopt stage, etc)?

I am trying to do a demo so I just need a quick hack. This is not for
a product so please don't tell me to "do the right thing" :-)



hidden APIs in Android

by Fred Grott(Android Expert, http://mobilebytes.word » Thu, 19 Nov 2009 21:54:57 GMT

 Try it you  will not get a compile though..the are not in the
framework jar so it would be a pointless task on your part..

Fred Grott
Android Developer

On Nov 18, 7:49pm, "tomei.ninge...@gmail.com"


Sponsored Links

hidden APIs in Android

by tomei.ninge...@gmail.com » Fri, 20 Nov 2009 13:38:15 GMT

 I tried and it worked. You are right that if you use the SDK straight
you won't be able to compile such code. However, if you replace the
API jar file from the SDK, then you can build such apps with calls to
hidden APIs.

So it seems Android doesn't really try to prevent you from using
hidden APIs (not that this is recommended for production apps) so as
long as you could build the APK file you're good to go -- at least for
the specific version of Android on the specific handset that you're
targeting. For me that's good enough as I was just writing a demo.

On Nov 19, 5:54am, "Fred Grott(Android Expert, 
 http://mobilebytes.wordpress.com )"


hidden APIs in Android

by Amardeep Jaiman » Fri, 20 Nov 2009 14:42:24 GMT

 which api jar u needed to change ?


On Thu, Nov 19, 2009 at 9:38 PM, tomei.ninge...@gmail.com <


Other Threads

1. Cannot create avd

I followed the installation instructions and then started reading the

When I executed the line: android create avd --target 2 --name my_avd
I got the below error. I then listed the targets and saw that there
are none.

Did I not install something?

Thank You


Microsoft Windows [Version 6.0.6001]
Copyright (c) 2006 Microsoft Corporation.  All rights reserved.

C:\Users\Evan>android create avd --target 2 --name my_avd
Error: Target id is not valid. Use 'android.bat list targets' to get
the target

C:\Users\Evan>android list targets
Available Android targets:



2. Location Based Services

Hello Everyone,

I am trying to use Androids location based services and I was
wondering if there are code samples available that show how to plot
points from a .kml or .gpx file on a map.  I have found many examples
using m5 but nothing for m9 or release 1.0.  Can someone help me?


3. Google Maps API -> Automatically set the zoom level and center the map

4. problems with emulator

5. Browser geolocation API not working in emulator (v2.01)

6. Need help with determinate progress bar

7. Facing problem while playing video on emulator