Ok, this question is for all the java experts, i'm trying to wrap a small library to make use of the Google Cloud Messaging api, Yes i know there is already a way to do this, This library actually would make things much easier and cut down the code by maybe 50% to 80%. With that said, i have everything else ready but i always have trouble figuring out how to replace the famous:
My library won't compile until i fix this R issue, the specific line that I need to figure out how to pass that string from an xml file is the following:
My question is how can I in Java using the B4A core library replace that code so that i can read the "gcm_defaultSenderId" from the "config.xml" file and pass it to the line of code above.
Please if anyone knows how to do this, and maybe explain to me in a little more detail how to do this i would really appreciate it, so far this is the only part I always get stuck when wrapping libraries.
Thanks all i hope what i described makes sense.
Thanks,
Walter
B4X:
R.string
B4X:
String token = instanceID.getToken(getString(R.string.gcm_defaultSenderId), GoogleCloudMessaging.INSTANCE_ID_SCOPE, null);
My question is how can I in Java using the B4A core library replace that code so that i can read the "gcm_defaultSenderId" from the "config.xml" file and pass it to the line of code above.
Please if anyone knows how to do this, and maybe explain to me in a little more detail how to do this i would really appreciate it, so far this is the only part I always get stuck when wrapping libraries.
Thanks all i hope what i described makes sense.
Thanks,
Walter