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" :-)

Thanks

--



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
 http://mobilebytes.wordpress.com 



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 ?


UNTOUCHABILITY IS SIN SO KEEP IN TOUCH


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





>



Other Threads

1. Ubale to add artist to media provider

I have succesfully added an audio file to the media provider. However,
I can't see it neither from "artists", "Albums" or "Songs from the
audio player". I can see and play it from the "recently added"
playlist. The album and artist tags are correct there.

To solve it I tryed to add a corresponding artist to the media
provider:

---------------------------------------------------------------------------------------------
...
import android.provider.MediaStore.Audio.Artists;
...
ContentResolver contentResolver = mContext.getContentResolver();
ContentValues values = new ContentValues(1);
values.put(Artists.ARTIST, "test");
Uri urialbum = contentResolver.insert(Artists.INTERNAL_CONTENT_URI,
values);
-----------------------------------------------------------------------------------------------

Unfortunatly it result in "java.lang.UnsupportedOperationException:
Invalid URI content://media/internal/audio/artists".

What is wrong here? Is it the correct way to solve my problem?
Thanks
Jrme

-- 

2. Raw file system access.

HI all,

I am doing a feasibility study. I just need to know is there any way
(API) to get physical address of a file in the file system (memory
block) of the phone and write that memory block with different bytes?
Should I concern about YAFFS here? I also need to get the physical
address of db files. Please help me. Thanks in advance.

-- 

3. Android/Java Developers Wanted - Portland, OR

4. how to debug the sync contact in the emulator

5. How to select multi phone number from phone book?

6. Moving to the next ImageView in HorizontalScrollview?

7. Force Close when running AccountManager.get(this).getAccounts()