Created
August 24, 2012 17:00
-
-
Save benigumocom/3452904 to your computer and use it in GitHub Desktop.
GCM デモサーバーの登録・解除URL を埋め込む2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static boolean register(final Context context, final String regId) { | |
Log.i(TAG, "registering device (regId = " + regId + ")"); | |
String serverUrl = SERVER_URL + "/register.php"; // 拡張子追加 | |
/* 省略 */ | |
static void unregister(final Context context, final String regId) { | |
Log.i(TAG, "unregistering device (regId = " + regId + ")"); | |
String serverUrl = SERVER_URL + "/unregister.php"; // 拡張子追加 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment