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. Download Service in 1.5?

Hi!
For some reason, I got the impression that there was gonna be a new
API or Service in 1.5 to easily ask the system to download a file
(instead of having to do everything manually with HttpClient or
URL.openConnection, and so on).

But I can't find anything in the API docs to that matter.

Does anybody know if that was added somewhere (or i it is even
planned?).

Thanks a lot!

BoD
--~--~---------~--~----~------------~-------~--~----~

2. Android 1.5 performance profiling

One of the new features mentioned in the 1.5 SDK is "Easier
application performance profiling". Can somebody shed some light on
what new profiling features are available in the new SDK? Are those
enhancements to TraceView, DDMS, or new profiling APIs ?

Stefan
--~--~---------~--~----~------------~-------~--~----~

3. camCorder not working well in emulator

4. Good work Google - keep it up!

5. Is there a way to listen for the completion of AnimationDrawable animation?

6. Is there a way to listen for the completion of AnimationDrawable animation?

7. Where are the new Widgets in Android 1.5?