I am trying to create a way for a user to create an account on the phone that ultimately synchronizes with contacts through the application. I am currently working in an emulator, so I go to Menu-Dev Tools-AccountsTester to check what I have. When I click on AccountsTester, I get the following error code in LogCat:
03-08 18:58:31.996: ERROR/AndroidRuntime(403): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.development/com.android.development.AccountsTester}: android.content.res.Resources$NotFoundException: String resource ID
As you can see, there is no @ line showing where the error occurs in my code. I google searched for some of the prominent lines, but could not find anything in relation to my problem. Does anyone have an idea of ββwhat is going on here? Please let me know if there is any information that you could use to help answer, which I did not include ... thanks!
Layout that will call AccountsTester:
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical"> <ScrollView android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1"> <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" android:orientation="vertical" android:paddingTop="5dip" android:paddingLeft="20dip" android:paddingRight="20dip" android:paddingBottom="13dip"> <TextView android:id="@+id/account_login_message" android:textAppearance="?android:attr/textAppearanceSmall" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="5dip"/> <TextView android:textAppearance="?android:attr/textAppearanceSmall" android:textStyle="bold" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Username"/> <EditText android:id="@+id/account_login_username_edittext" android:singleLine="true" android:layout_width="fill_parent" android:layout_height="wrap_content" android:minWidth="250dip" android:scrollHorizontally="true" android:capitalize="none" android:autoText="false" android:inputType="text"/> <TextView android:id="@+id/account_login_username_fixed" android:textAppearance="?android:attr/textAppearanceSmall" android:singleLine="true" android:layout_marginTop="2dip" android:layout_width="wrap_content" android:layout_height="wrap_content"/> <TextView android:textAppearance="?android:attr/textAppearanceSmall" android:textStyle="bold" android:singleLine="true" android:layout_marginTop="2dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Password"/> <EditText android:id="@+id/account_login_password_edittext" android:singleLine="true" android:layout_width="fill_parent" android:layout_height="wrap_content" android:minWidth="250dip" android:scrollHorizontally="true" android:capitalize="none" android:autoText="false" android:inputType="textPassword"/> <TextView android:id="@+id/account_login_message_bottom" android:textAppearance="?android:attr/textAppearanceSmall" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="5dip"/> </LinearLayout> </ScrollView> <FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" android:background="#c6c3c6" android:minHeight="54dip" android:paddingLeft="2dip" android:paddingTop="4dip" android:paddingRight="2dip"> <Button android:id="@+id/account_login_ok_button" android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_gravity="center_horizontal" android:minWidth="100dip" android:text="Sign In" android:onClick="handleLogin"/> </FrameLayout> </LinearLayout>
I donβt name one line there ... My activity refers to lines several times, but there are certainly lines that it refers to, I see them when I print this, and I get an error message in Eclipse anyway.
source share