ERROR... No package identifier when getting value for resource number

by Dean-O » Wed, 04 Aug 2010 02:48:21 GMT


Sponsored Links
 Both activities are in the same package

Second activity uses second layout file

setContentView(R.layout.main2);

Errors on this line in the second activity

EditText text1 = (EditText) findViewById(R.id.EditText03);

Here is the layout file for the second activity

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android=" http://schemas.android.com/apk/res/ 
android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >

<LinearLayout
        android:id="@+id/LinearLayout01"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content">

        <TextView
                android:id="@+id/TextView01"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
android:text="Answer Is : ">
        </TextView>

        <EditText
                android:id="@+id/EditText03"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content">
        </EditText>

</LinearLayout>

<Button
        android:id="@+id/Button01"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:onClick="onClick"
        android:text="Calling an intent">
</Button>

</LinearLayout>

Here are the errors in the LogCat window

08-01 19:32:20.340: WARN/ResourceType(8875): No package identifier
when getting value for resource number 0x00000005

08-01 19:32:20.390: ERROR/AndroidRuntime(8875): Caused by:
android.content.res.Resources$NotFoundException: String resource ID
#0x5

--



Other Threads

1. Camera Preview 90 degree rotated

Hi All,

I am really bugged up with this issue. Please help.When camera is launched
in portrait mode, the viewfinder screen is 90 degrees rotated and stretched
out. I read couple of places that this is a known bug with sdk1 but i am
still finding this problem with cupcake. Has anyone having any idea is this
issue is fixed in cupcake or in donut? any clues how to move ahead.
setOrientation and changing the preview size didn't help. Even I read
somewhere Surface flinger class needs change:

2. Unable to play youtube videos on SDK 1.5 emulator, but playing well on SDK 1.0 emulator

Can you update the source....

Thank You
Nihtin N V

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

3. About how to modify the frameworks/base/Android.mk

4. Cannot find provider package when using ProviderTestCase2 to test

5. How can I start an Intent to launch the IM applicaiotn

6. Aftek Limited successfully ports Android bsp on PXA270 mobile platform with STB (set-top box) application

7. External modem with zoom2 board