Yang
Yang

Reputation: 6892

android: resource not found

I just updated from android 2.1 to 3.0 and found many default andorid resources missing, such as:

android:icon="@android:drawable/ic_menu_preferences"
android:icon="@android:drawable/ic_menu_help"

What happened to then and any idea how to fix them?

Upvotes: 2

Views: 2481

Answers (2)

Dan
Dan

Reputation: 1002

They do not exist anymore, most likely. The Android folks advise against using their resources because of changes in the API -- now you know why :) I would keep a local copy from previous releases so that you can access them, were I you. (something they also suggest)

Upvotes: 3

Uno Engborg
Uno Engborg

Reputation: 21

Use:

android:icon="@android:drawable/android:ic_menu_help"

Upvotes: 2

Related Questions