I am working with a library as a JAR where i have added strings and sending the context of main Application to fetch string to register GCM.
This is my method in the JAR file:-
void registerGCM(Context context){
GCMLibrary.register(context, context.getString(R.string.c2dm_sender));
}
I have declared c2dm_sender in library and in my Application in Strings.
But i am getting this error:
android.content.res.Resources$NotFoundException
I have seen this Using R resources from an android jar file as a reference but not getting it resolved.
I am looking for the solution that R file of my Application is used and c2dm_sender to be used from there.