Query on committing changes to content providers

by Kowsh » Tue, 12 Jan 2010 02:35:38 GMT

Sponsored Links
 Here is my manifest file for your reference :

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android=" http://schemas.android.com/apk/res/android" ;
        package="com.golf" android:versionCode="1" android:versionName="1.0">

    <application android:icon="@drawable/icon" android:label="@string/
        <activity android:name=".GolfScore"
                <action android:name="android.intent.action.MAIN" />
android:name="android.intent.category.LAUNCHER" />

    <uses-sdk android:minSdkVersion="4" />

<uses-permission android:name="android.permission.READ_CONTACTS"></
<uses-permission android:name="android.permission.WRITE_CONTACTS"></


> Kowshik

Query on committing changes to content providers

by SREEHARI » Thu, 14 Jan 2010 01:30:47 GMT

I think ur code will work for SDK 1.0 only. For higher version it will
work by applying some small changes in your code.



Instead of

ContentResolver contRes= getContentResolver();
                 contRes.insert(People.CONTENT_URI, values);

Hope this will work.


> Kowshik

Sponsored Links

Query on committing changes to content providers

by Kowshik Prakasam » Mon, 18 Jan 2010 15:53:11 GMT

 Thanks Sreehari.
Hi Sreehari,

Actually that piece of code doesnt work for SDK 1.0 as well.

I sorted out the issue. I had to simply follow the steps explained here :
My bad. I didnt read the doc thoroughly before posting this query.


On Tue, Jan 12, 2010 at 11:05 AM, SREEHARI <sreehari.madhusooda...@wipro.com


Other Threads

1. Feature Request: Virtual Contacts Content Provider

The problem with Contacts in mobile devices is that there are two
types of Contacts. One is what I call Personal Contacts (family and
friends) and the other is Virtual Contacts (social app friends/
multiplayer games). The Virtual Contacts don't go in the same place as
Personal Contacts. So where do Virtual Contacts go?

Some apps will have Virtual Contacts in the browser (on the web) and
others within the mobile app on the device. So speaking of those that
are part of a mobile app on the device, where should virtual contacts
go? If you put virtual and personal contacts together, separating
virtual contacts with a column/field value, what happens when an app
simply requests all contacts considering them all personal contacts?
So I don't see how a group field would work.

So I think one has to set up a totally new Content Provider for
Virtual Contacts. Either from scratch for each application or unified
and having that group field so new apps can just use the 'Virtual
Contacts Content Provider'.

So can we have that? A  'Virtual Contacts Content Provider'?

- Juan T.

2. Linux on the iPhone

I havnt been following the group yet, but a g*search came up with a
post about linux on the iphone and how it was unlikely.

In case people here have not seen it:

I assume that if you can get Linux running on an iPhone, you can get
Android on an iPhone.

- Brill Pappin


3. question about service and thread

4. How to install system fonts?

5. problem Porting to 0.9 sdk, anyone please guide me... thanks...

6. Building phone on Android - India market

7. Generic ADT problem?