Friday, 15 August 2014

java - Android not recognizing string resource -



java - Android not recognizing string resource -

in android app, have string

<string name="action_upload">upload image</string>

in strings file. in menu file have

navigation_screen.xml

<menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" tools:context="android.arin.navigationscreen" > <item android:id="@+id/action_upload" android:orderincategory="100" android:showasaction="never" android:title="@string/action_upload"/> <item android:id="@+id/action_forward" android:icon="@drawable/ic_action_forward" android:title="@string/action_forward" android:showasaction="ifroom" /> </menu>

however when seek run it, error saying:

[2014-06-19 17:26:18 - arin] w/resourcetype( 9060): resxmltree_node size 0 smaller header size 0x100. [2014-06-19 17:20:26 - arin] c:\users\name\documents\name\name\arin\res\menu\navigation_screen.xml:5: error: error: no resource found matches given name (at 'title' value '@string/action_upload').

i tried project clean in eclipse, still problem persists.

does know how prepare it?

thanks

this may seem weird answer, did save xml file. nail ctrl-s , seek again.

if doesn't work: other strings declared in strings.xml file visible?

java android eclipse string adt

No comments:

Post a Comment