how to get contacts in SIM card?

by Burne Xu » Wed, 17 Dec 2008 02:34:41 GMT


Sponsored Links
 AS title
Thanks

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



Other Threads

1. Eclipse, ADT won't start android application

Android version: 2.1
ADT version 0.9.6
Java 1.6
Eclipse 3.5
OS: Linux, OpenSuSE 11.2

I have installed the ADT in eclipse and configured it to point to the
Android SDK location.  I have created a virtual android device with
default properties.  I can create an android project, and in fact
created the Hello, Android example.

According the Hello, Android tutorial, I should be able to go to Run >
Run and be presented with a list of applications to launch, including
one for 'Hello, Android'.  However, no such option exists.  So,
instead I select the project, right-click, and select 'Run as android
application'.  When I do this, I see a in the lower right corner
saying 'Launching HelloAndroid' and a percentage, but it rapidly
disappears.  However, the application never starts.  I've tried it be
either staring the virtual device ahead of time, or leaving it to be
started when the application is launched, but it doesn't start in
either case.  I also get nothing in the console window.

If I go to a Windows XP machine with the same versions of everything
(except OS), this works fine.

If I do a clean on the project, I get what I think is normal output:

[2010-04-05 17:28:37 - HelloAndroid] Removing generated java classes.
[2010-04-05 17:28:37 - HelloAndroid] Creating 'gen' source folder for
generated Java files
[2010-04-05 17:28:37 - HelloAndroid] Refreshing resource folders.
[2010-04-05 17:28:37 - HelloAndroid] Starting full Pre Compiler.
[2010-04-05 17:28:37 - HelloAndroid] Preparing generated java files
for update/creation.
[2010-04-05 17:28:37 - HelloAndroid] /home/lgraba/android-sdk-linux_86/
platforms/android-7/tools/aapt package -m -v -J /home/lgraba/workspace/
HelloAndroid/gen -M /home/lgraba/workspace/HelloAndroid/
AndroidManifest.xml -S /home/lgraba/workspace/HelloAndroid/res -I /
home/lgraba/android-sdk-linux_86/platforms/android-7/android.jar
[2010-04-05 17:28:37 - HelloAndroid] Locale/Vendor pairs:
[2010-04-05 17:28:37 - HelloAndroid]    /
[2010-04-05 17:28:37 - HelloAndroid]    /
[2010-04-05 17:28:37 - HelloAndroid]    /
[2010-04-05 17:28:37 - HelloAndroid]    /
[2010-04-05 17:28:37 - HelloAndroid]
[2010-04-05 17:28:37 - HelloAndroid] Files:
[2010-04-05 17:28:37 - HelloAndroid]   drawable-hdpi/icon.png
[2010-04-05 17:28:37 - HelloAndroid]       Src: /home/lgraba/workspace/
HelloAndroid/res/drawable-hdpi/icon.png
[2010-04-05 17:28:37 - HelloAndroid]   drawable-ldpi/icon.png
[2010-04-05 17:28:37 - HelloAndroid]       Src: /home/lgraba/workspace/
HelloAndroid/res/drawable-ldpi/icon.png
[2010-04-05 17:28:37 - HelloAndroid]   drawable-mdpi/icon.png
[2010-04-05 17:28:37 - HelloAndroid]       Src: /home/lgraba/workspace/
HelloAndroid/res/drawable-mdpi/icon.png
[2010-04-05 17:28:37 - HelloAndroid]   layout/main.xml
[2010-04-05 17:28:37 - HelloAndroid]       Src: /home/lgraba/workspace/
HelloAndroid/res/layout/main.xml
[2010-04-05 17:28:37 - HelloAndroid]   values/strings.xml
[2010-04-05 17:28:37 - HelloAndroid]       Src: /home/lgraba/workspace/
HelloAndroid/res/values/strings.xml
[2010-04-05 17:28:37 - HelloAndroid]   AndroidManifest.xml
[2010-04-05 17:28:37 - HelloAndroid]       Src: /home/lgraba/workspace/
HelloAndroid/AndroidManifest.xml
[2010-04-05 17:28:37 - HelloAndroid] Including resources from
package: /home/lgraba/android-sdk-linux_86/platforms/android-7/
android.jar
[2010-04-05 17:28:37 - HelloAndroid] applyFileOverlay for drawable
[2010-04-05 17:28:37 - HelloAndroid] applyFileOverlay for layout
[2010-04-05 17:28:37 - HelloAndroid] applyFileOverlay for anim
[2010-04-05 17:28:37 - HelloAndroid] applyFileOverlay for xml
[2010-04-05 17:28:37 - HelloAndroid] applyFileOverlay for raw
[2010-04-05 17:28:37 - HelloAndroid] applyFileOverlay for color
[2010-04-05 17:28:37 - HelloAndroid] applyFileOverlay for menu
[2010-04-05 17:28:37 - HelloAndroid]     (processed image /home/lgraba/
workspace/HelloAndroid/res/drawable-hdpi/icon.png: 95% size of source)
[2010-04-05 17:28:37 - HelloAndroid] Nothing to pre compile!
[2010-04-05 17:28:37 - HelloAndroid]     (processed image /home/lgraba/
workspace/HelloAndroid/res/drawable-ldpi/icon.png: 89% size of source)
[2010-04-05 17:28:37 - HelloAndroid]     (processed image /home/lgraba/
workspace/HelloAndroid/res/drawable-mdpi/icon.png: 85% size of source)
[2010-04-05 17:28:37 - HelloAndroid]     (new resource id icon from
drawable-hdpi/icon.png #generated)
[2010-04-05 17:28:37 - HelloAndroid]     (new resource id icon from
drawable-hdpi/icon.png #generated)
[2010-04-05 17:28:37 - HelloAndroid]     (new resource id icon from
drawable-hdpi/icon.png #generated)
[2010-04-05 17:28:37 - HelloAndroid]     (new resource id main from /
home/lgraba/workspace/HelloAndroid/res/layout/main.xml)
[2010-04-05 17:28:37 - HelloAndroid]   Writing symbols for class R.
[2010-04-05 17:28:37 - HelloAndroid] Starting full Package build.
[2010-04-05 17:28:37 - HelloAndroid] /home/lgraba/android-sdk-linux_86/
platforms/android-7/tools/aapt package -f -v -M /home/lgraba/workspace/
HelloAndroid/AndroidManifest.xml -S /home/lgraba/workspace/
HelloAndroid/res -A /home/lgraba/workspace/HelloAndroid/assets -I /
home/lgraba/android-sdk-linux_86/platforms/android-7/android.jar -F /
home/lgraba/workspace/HelloAndroid/bin/resources.ap_
[2010-04-05 17:28:37 - HelloAndroid] Found 0 custom asset files in /
home/lgraba/workspace/HelloAndroid/assets
[2010-04-05 17:28:37 - HelloAndroid] Locale/Vendor pairs:
[2010-04-05 17:28:37 - HelloAndroid]    /
[2010-04-05 17:28:37 - HelloAndroid]    /
[2010-04-05 17:28:37 - HelloAndroid]    /
[2010-04-05 17:28:37 - HelloAndroid]    /
[2010-04-05 17:28:37 - HelloAndroid]
[2010-04-05 17:28:37 - HelloAndroid] Files:
[2010-04-05 17:28:37 - HelloAndroid]   drawable-hdpi/icon.png
[2010-04-05 17:28:37 - HelloAndroid]       Src: /home/lgraba/workspace/
HelloAndroid/res/drawable-hdpi/icon.png
[2010-04-05 17:28:37 - HelloAndroid]   drawable-ldpi/icon.png
[2010-04-05 17:28:37 - HelloAndroid]       Src: /home/lgraba/workspace/
HelloAndroid/res/drawable-ldpi/icon.png
[2010-04-05 17:28:37 - HelloAndroid]   drawable-mdpi/icon.png
[2010-04-05 17:28:37 - HelloAndroid]       Src: /home/lgraba/workspace/
HelloAndroid/res/drawable-mdpi/icon.png
[2010-04-05 17:28:37 - HelloAndroid]   layout/main.xml
[2010-04-05 17:28:37 - HelloAndroid]       Src: /home/lgraba/workspace/
HelloAndroid/res/layout/main.xml
[2010-04-05 17:28:37 - HelloAndroid]   values/strings.xml
[2010-04-05 17:28:37 - HelloAndroid]       Src: /home/lgraba/workspace/
HelloAndroid/res/values/strings.xml
[2010-04-05 17:28:37 - HelloAndroid]   AndroidManifest.xml
[2010-04-05 17:28:37 - HelloAndroid]       Src: /home/lgraba/workspace/
HelloAndroid/AndroidManifest.xml
[2010-04-05 17:28:37 - HelloAndroid] Including resources from
package: /home/lgraba/android-sdk-linux_86/platforms/android-7/
android.jar
[2010-04-05 17:28:37 - HelloAndroid] applyFileOverlay for drawable
[2010-04-05 17:28:37 - HelloAndroid] applyFileOverlay for layout
[2010-04-05 17:28:37 - HelloAndroid] applyFileOverlay for anim
[2010-04-05 17:28:37 - HelloAndroid] applyFileOverlay for xml
[2010-04-05 17:28:37 - HelloAndroid] applyFileOverlay for raw
[2010-04-05 17:28:37 - HelloAndroid] applyFileOverlay for color
[2010-04-05 17:28:37 - HelloAndroid] applyFileOverlay for menu
[2010-04-05 17:28:37 - HelloAndroid]     (processed image /home/lgraba/
workspace/HelloAndroid/res/drawable-hdpi/icon.png: 95% size of source)
[2010-04-05 17:28:37 - HelloAndroid]     (processed image /home/lgraba/
workspace/HelloAndroid/res/drawable-ldpi/icon.png: 89% size of source)
[2010-04-05 17:28:37 - HelloAndroid]     (processed image /home/lgraba/
workspace/HelloAndroid/res/drawable-mdpi/icon.png: 85% size of source)
[2010-04-05 17:28:37 - HelloAndroid]     (new resource id icon from
drawable-hdpi/icon.png #generated)
[2010-04-05 17:28:37 - HelloAndroid]     (new resource id icon from
drawable-hdpi/icon.png #generated)
[2010-04-05 17:28:37 - HelloAndroid]     (new resource id icon from
drawable-hdpi/icon.png #generated)
[2010-04-05 17:28:37 - HelloAndroid]     (new resource id main from /
home/lgraba/workspace/HelloAndroid/res/layout/main.xml)
[2010-04-05 17:28:37 - HelloAndroid] Creating '/home/lgraba/workspace/
HelloAndroid/bin/resources.ap_'
[2010-04-05 17:28:37 - HelloAndroid] Writing all files...
[2010-04-05 17:28:37 - HelloAndroid]       'res/layout/
main.xml' (compressed 57%)
[2010-04-05 17:28:37 - HelloAndroid]
'AndroidManifest.xml' (compressed 62%)
[2010-04-05 17:28:37 - HelloAndroid]       'resources.arsc' (not
compressed)
[2010-04-05 17:28:37 - HelloAndroid]       'res/drawable-hdpi/
icon.png' (not compressed)
[2010-04-05 17:28:37 - HelloAndroid]       'res/drawable-ldpi/
icon.png' (not compressed)
[2010-04-05 17:28:37 - HelloAndroid]       'res/drawable-mdpi/
icon.png' (not compressed)
[2010-04-05 17:28:37 - HelloAndroid] Generated 6 files
[2010-04-05 17:28:37 - HelloAndroid] Included 0 files from jar/zip
files.
[2010-04-05 17:28:37 - HelloAndroid] Checking for deleted files
[2010-04-05 17:28:37 - HelloAndroid] Done!
[2010-04-05 17:28:37 - HelloAndroid] processing /home/lgraba/workspace/
HelloAndroid/bin/./com/example/helloandroid/R$layout.class...
[2010-04-05 17:28:37 - HelloAndroid] processing /home/lgraba/workspace/
HelloAndroid/bin/./com/example/helloandroid/R.class...
[2010-04-05 17:28:38 - HelloAndroid] processing /home/lgraba/workspace/
HelloAndroid/bin/./com/example/helloandroid/R$drawable.class...
[2010-04-05 17:28:38 - HelloAndroid] processing /home/lgraba/workspace/
HelloAndroid/bin/./com/example/helloandroid/
HelloAndroidActivity.class...
[2010-04-05 17:28:38 - HelloAndroid] processing /home/lgraba/workspace/
HelloAndroid/bin/./com/example/helloandroid/R$string.class...
[2010-04-05 17:28:38 - HelloAndroid] processing /home/lgraba/workspace/
HelloAndroid/bin/./com/example/helloandroid/R$attr.class...
[2010-04-05 17:28:38 - HelloAndroid] ignored resource /home/lgraba/
workspace/HelloAndroid/bin/./resources.ap_
[2010-04-05 17:28:38 - HelloAndroid] Using default debug key to sign
package
[2010-04-05 17:28:38 - HelloAndroid] Packaging /home/lgraba/workspace/
HelloAndroid/bin/resources.ap_
[2010-04-05 17:28:38 - HelloAndroid] Packaging classes.dex
[2010-04-05 17:28:38 - HelloAndroid] Build Success!
[2010-04-05 17:28:38 - HelloAndroid] Refreshing resource folders.
[2010-04-05 17:28:38 - HelloAndroid] Starting incremental Pre
Compiler: Checking resource changes.
[2010-04-05 17:28:38 - HelloAndroid] Nothing to pre compile!

I'm a little concerned about the 'Nothing to pre compile' message at
the end, but I don't know if that is normal or not.

Any ideas what is going wrong here?

-- 

2. Android and read email

Hi All

programmatically

Thanks
Davud

-- 

3. using camcorder app

4. Customizing ExpandableListView

5. WSDL2Java for Android

6. Checking for font support at runtime?

7. intensive writing to internal memory