Using contacts (again)

by Lieuwe » Tue, 13 Jul 2010 19:33:14 GMT


Sponsored Links
 Is it possible to create a generic android application that uses
contacts (though a contentResolver) that will run on all android
versions > 1.5 ?

I have backward compatibility issues where f.i. my HTC Hero which is
upgraded to Android 2.1 is not able to use the People.CONTENT_URI even
though this is meant to be deprecated - not unsupported!

If I include the new API style ContactsContract.Contacts.CONTENT_URI
(with or without a check on the Build.SDK_VERSION to alternatively
load the old style URI - similar to the Businesscard example -
 http://developer.android.com/resources/samples/BusinessCard/index.html )
I would still have to set up Eclipse to use the Android 2.1 libraries.
Would this application still run on an Android 1.5 device if I keep
the minsdkversion in the manifest at 3?

I would like to avoid having to branch my application, create 2
eclipse projects and release 2 different applications.

Any advice on this?

Lew

--



Using contacts (again)

by ionel » Mon, 19 Jul 2010 15:45:32 GMT


Other Threads

1. Button color - StateListDrawable question

I am allowing the user to change the color of the buttons. I want to
maintain the default drawables used for focused and onPressed state
and apply the color only when the button is neither  pressed nor
focused.

I am currently achieving this by checking the state of the view in
onDraw() on the button class and apply the color filter if it is
neither pressed or focused, else I am passing null to color filter.

Is there any easier way of doing this? Is there a way to get the
default StateListDrawable of the button and change only the desired
state drawable. I have too many views in my layout and I am trying to
reduce any work done in onDraw method as it is slows down the
layout.Thanks

-VK


-- 

2. testing NDK on HTC Magic

Hello everybody.

I'm trying to port an app using NDK in order to be capable of reusing
the C code of the application.

starting to work with the libs, i tested "bitmap-plasma" from the
sample projs and i'ts working OK
in the emulator (target 2.2), but when uploaded to the device (HTC
Magic. system. 1.5) the de{*filter*}
gives exception saying the native lib was not loaded.
I'm using Eclipse for the android proj. and compiling the native code
with cygwin make. the ndk-version is r4.

i also tried the "hellojni" projects and that one works fine on the
device, so i'm thinking maybe there is some parameter in
bitmap-plasma that is causing problems??

please any help on what is causing this and how can i fix it. Thank
you very much!.

-- 

3. Installation of GALAXY Tab add-on

4. [OOT] gabung yuk di sniper vs sniper online

5. setOverScrollMode ListView

6. Where and how is the "__initdata" used in nand driver?

7. double buffering OpenGL ES