android - What does this expression mean : "R.string.gcm_registered"? -


i trying enable push notifications on application.

i have client sample code , trying of code implement on application. of have implemented push notifications on apps sure familiar class gcmintentservice.

so copying class on project , configure manifest correctly(or think do) errors in file.

the errors in expressions r.string."something"

for example errors in :

r.string.gcm_registered  r.string.gcm_message  r.string.gcm_deleted  r.string.gcm_error  r.string.gcm_recoverable_error  r.drawable.ic_stat_gcm 

the error gcm cannot resolved or not field.

but expression?! class or something?

is on manifest havent configured correctly?

it strings, in example app you're using, in /res/values/strings.xml

you put strings in there have localized place put user visible strings in, have 1. 1 place find strings, if ever want change and/or re-use 2. easy access translation putting translations in per example /res/values-de/strings.xml

look file in whatever example you're using, you'll find xml defined strings. copy them own project, in same place.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -