I need to get device registration id and send it as a parameter in url to webview. I tried many blocks of code but i have no experience in android so it all seems to me as complicated and finaly have no result. all of my needs to get device id in variable and send it as a parameter in url to webview. please help me!! appreciate any help
I have tried this code:
gcm = GoogleCloudMessaging.getInstance(getApplicationContext());
regId = gcm.register(GCM_Config.SENDER_ID);
url="http://www.example.com/" + regId;
webView.loadUrl(url);