Force Close when running AccountManager.get(this).getAccounts()

by PP » Thu, 10 Jun 2010 00:55:52 GMT

Sponsored Links
 Yes you DO need to add
        android:name="android.permission.GET_ACCOUNTS" />
in your manifest.
otherwise your application will die with an exception that you can
track in the DDMS perspective of Eclipse



Other Threads

1. NFC Dispatch


i have a question about NFC and Android, some general points. I have
an Android-Application and now this Application gets some new
Extension(NFC). For this, my first step was to declare the manifest
elements and all standard methods ( described here

Currently i have some Tags and a Reader (TouchATag). After i apply
some URL's to the Tags, the Nexus S can read these Tags and starts the
default Tag-App.

For now, i've defined all necessary elements in the manifest:

- Use-Permission for NFC
- MinSdkVersion = 10
- Uses-Feature
And Tech_Discovered:
 <action android:name="android.nfc.action.TECH_DISCOVERED">
<meta-data android:name="android.nfc.action.TECH_DISCOVERED"
android:resource="@xml/nfc_tech_filter" />

My first question is: Are this definitions enough to get the App shown
in the TechListOverView? Because if get a Tag in the near of the nexus
s, it starts the Tags-App automatically without any question about my

In the XML-File i declare every TagTechnology.

At the DDMS i saw this information:

"05-12 14:18:36.613: INFO/ActivityManager(107): Starting: Intent
{ act=android.nfc.action.NDEF_DISCOVERED dat=
048A8FBA342380 flg=0x10000000 (has extras) } from pid 9513
05-12 14:18:36.632: INFO/ActivityManager(107): Starting: Intent
{ flg=0x10000000 (has
extras) } from pid 9513 "

Furthermore i have the foreground dispatch paradigm implemented in the

Is there anything i need to add? At this point i want to "register" my
application to get it at the TechList...



2. [OOT] Introduce

Hi all, perkenalkan, saya member baru di sini, terimakasih saya ucapkan
kepada moderator atas approvementnya membership saya, salam android share,
sebelumnya saya menggunakan linux dan open source untuk komputasi
sehari-hari saya, jadi begitu android, langsung kesemsem :D

Best Regards


3. Developing image processing project ny interfacing matlab and android phone

4. Fragments - crash on restoring spinner state

5. Delete all rows from a table throws nullpointer

6. Trade my Android Open Accessory Developer Kit (ADK) trade for your new Sprint Nexus S 4G?

7. [WTS] HTC G2 2nd dan HTC Desire S like new