[android-developers] Re: List Contact type SIM, Phone, Google

2009-12-15 Thread Nature Boy
I have run this code on a HTC Hero with Android 1.5 and compared the
list of contacts that I pull from the API. It includes the Phone and
Google contacts but not the SIM contacts. Is there anyway to pull
these as well?

I still have not found a way to detect the difference between a Phone
and a Google contact, I will post here if I do.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] List Contact type SIM, Phone, Google

2009-12-14 Thread Nature Boy
Hi there, I'm aiming to develop an application on Android 1.5 that is
required at one point to list all contacts and display the type of
contact ie SIM, Phone or Google. I can easily list all the contacts by
using

Cursor curAllContacts = getContentResolver().query(People.CONTENT_URI,
null, null, null, null);

And looping through the cursor and I can use code like the sample
below to get fields of data

int intNameIndex = curAllContacts.getColumnIndex(People.DISPLAY_NAME);
String strNameValue = cur.getString(intNameIndex);

My question is, is there any field in the people table or a related
table that holds a value to define where the contact came from (SIM,
Phone or Google)?

Many thanks

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: SDK installation

2009-11-28 Thread Nature Boy
I was having the same problem and disabling Norton Internet Security
solved it for me.

Message I was getting from the Android SDK and AVD Manager was ...A
folder failed to be renamed or moved. On Windows this typically means
that a program is using that folder (for example Windows Explorer.)
Please close all running programs that may be locking the directory...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Eclair install choked with errors about locks and died horribly leaving corrupted install

2009-11-28 Thread Nature Boy
A folder failed to be renamed or moved. On Windows this typically
means that a program is using that folder (for example Windows
Explorer.) Please close all running programs that may be locking the
directory

I was having the same problem and disabling Norton Internet Security
solved it for me.

See http://groups.google.co.uk/group/android-developers/browse_thread/
thread/f22059d0885db766



On 11月5日, 午前4:07, ekwang ekwa...@gmail.com wrote:
 When I try to upgrade Android SDK Tools, revision 3, by SDK Setup.exe
 I meet same problem.
 I think it has obvious problem.
 Because SDK Setup.exe running with some files on /tools. (maybe
 android.bat and some lib files)
 So When SDK Setup try to rename old tools folder name after download
 complete, this issue is happen.
 Actually I checked java process handling /tools folder when SDK Setup
 running.

 On Oct 28, 6:31 am, Jim Showalter jamesleeshowal...@gmail.com wrote:

  Followed the instructions 
  inhttp://developer.android.com/sdk/adding-components.htmlforadding 2.0 as
  components to an existing 1.6 SDK, from within Eclipse.

  It didn't work. Not by a long shot. Instead, it got partway through and then
  said that C:\android-sdk-windows-1.6_r1\
  temp\DocPackage.new01 couldn't be copied because of a lock, and similarly
  for PlatformPackage.new01.

  It said to shut down running programs, but the only program running was
  Eclipse, which was needed to do the upgrade.

  The cancel button was disabled, and the close box didn't work. Shutting down
  Eclipse killed it, but left C:\android-sdk-windows-1.6_r1 in a corrupted
  state. Restarting Eclipse showed the Android projects with errors, no SDK,
  and a disabled Android SDK and AVD Manager (which means no ability to rerun
  the install).

  Shutting down Eclipse, renaming the corrupted SDK directory, unzipping 1.6
  again into C:, and restarting Eclipse made it as if nothing had ever
  happened, which is good. But it is not possible to complete the install from
  Eclipse, which is bad.

  The dialog says:

  Failed to rename directory
  C:\android-sdk-windows-1.6_r1\temp\DocPackage.new01 to
  C:\android-sdk-windows-1.6_r1\docs
  -= Warning ! =-
  A folder failed to be renamed or moved. On Windows this typically means that
  a program is using that folder (for example Windows Explorer.) Please close
  all running programs that may be locking the directory
  'C:\android-sdk-windows-1.6_r1\temp\DocPackage.new01' and try again.

  Failed to rename directory
  C:\android-sdk-windows-1.6_r1\temp\DocPackage.new01 to
  C:\android-sdk-windows-1.6_r1\docs
  -= Warning ! =-
  A folder failed to be renamed or moved. On Windows this typically means that
  a program is using that folder (for example Windows Explorer.) Please close
  all running programs that may be locking the directory
  'C:\android-sdk-windows-1.6_r1\temp\DocPackage.new01' and try again.
  Installed: SDK Platform Android 2.0, API 5 (tools rev: 3)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en