Android and Java Reflection to call a higher API level function/abstract class

by fadden » Thu, 08 Jul 2010 06:36:51 GMT


Sponsored Links
 


Seems like you need to wrap it at a higher level.  Some thoughts on a
reflection alternative are here:

 
 http://android-developers.blogspot.com/2009/04/backward-compatibility-for-android.html 

--



Other Threads

1. How to set the width/height of a Spinner ArrayAdapter?

It seems like a simple thing to do but this is the cause of much
frustration. How do I set the size of the ArrayAdapter popup window
when you select a spinner? By default it's the full width, and most of
the height of the screen.

I have tried making the spinner's parent a ViewGroup of the desired
dimensions, but it ignores this and seems to use the root view as the
parent for the popup ArrayAdapter.

The docs say something vague about overriding ArrayAdapter.getView(),
but they don't go into any detail and I can't work out any way of
doing it from there.

I have already spent over a day trying different things but can't work
it out - please help..


--~--~---------~--~----~------------~-------~--~----~

2. How does FW upgrade work without erasing user data?

Hi,

I'm trying to understand what happens under the covers when *end-
users* upgrade their device firmware from Android ver. X to X+1
(regardless of whether they initiate the action, or their carrier
sends the update OTA).

I'm working on an Android based device, and I need to understand how
this is supposed to work. A new build of Android contains system.img
and userdata.img (among other files). The system.img file is read-
only, so replacing the user's existing copy shouldn't result in any
data loss. Not so with userdata.img; overwriting this file with a
newer version would destroy all of an end-users application data
(wouldn't it?). Could it be that userdata.img never contains any data
that needs to be updated during a FW upgrade, and so isn't
overwritten? Or is there some process that merges changes into /data?

Surely there is a procedure envisioned for upgrading FW for Android-
based devices without nuking users' address books, and other private
data. Unfortunately, Googling for this information yields only pages
containing specific hacker-level instructions (e.g. adb commands); I
can't find any mention of this topic online, or in the documentation.



Does anyone know how this is supposed to work, or where this is
documented?

Thanks very much in advance.

-Mr INTJ

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. Geocoder.getFromLocationName() ignores bounding box

4. One in a thousand (or is that million?) bug

5. Customizing Android UI behaviour

6. is there a way to put entire folder from "assets" to sdcard? not just individual files.

7. Android Market Rankings