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. HTC Hero Stocks Widget Scrolling Ticker functionality

I have an HTC Hero from Sprint in the US and was curious about the how
the Stocks HTC widget scrolls text like a ticker. It is only the 4x1
sized widget that scrolls quotes. As far as I know, homescreen widgets
can only use RemoteViews for the layout, which is limited to the
following layouts and widgets (from
http://developer.android.com/guide/topics/appwidgets/index.html#CreatingLayout):

    * AbsoluteLayout
    * FrameLayout
    * LinearLayout
    * RelativeLayout
    * AnalogClock
    * Button
    * Chronometer
    * ImageButton
    * ImageView
    * ProgressBar
    * TextView
      Descendants of these classes are not supported.

I know that this could be done in an app with android.widget.scroller,
but that can't be used in a homescreen widget. Would this
functionality be specific to the Sense UI homescreen capabilities? I
guess, my main question is if this can be replicated for a standard
Android widget and if so how.

-- 

2. How to Convert 1.5 project to 2.0

Hi,


I created a Android Project in 1.5.
Now i want to convert itinto Android SDK2.0.
How can i convert this?....


I tried to convert by click the project properties & changed the Target from
Android1.5 to Android2.0...

But the R.java is delted automatically when i changed the target...

Any one know about this?.............

Thanks in advance.........

-- 
Thanks & Regards
Sasikumar.S

-- 

3. LayerBase::drawWithOpenGL()

4. From cupcake to Eclair?

5. Kernel panic after clicking on the browser button

6. eclair's libgcc.a

7. cupcake how to support multi-touch and linux kernel version?