diff options
-rw-r--r-- | TODO | 25 |
1 files changed, 23 insertions, 2 deletions
@@ -4,8 +4,8 @@ BUGS: TODO: - Animations - selected Hex - - battle description - - dice roll + - infantry move sound + - infantry shot - tutorial - moves - HQ moves @@ -19,3 +19,24 @@ NEXT: - inverted even/odd row scheme - automatic overlays to show unit stack depth +device unique ID: + final TelephonyManager tm = (TelephonyManager) getBaseContext().getSystemService(Context.TELEPHONY_SERVICE); + + final String tmDevice, tmSerial, androidId; + tmDevice = "" + tm.getDeviceId(); + tmSerial = "" + tm.getSimSerialNumber(); + androidId = "" + android.provider.Settings.Secure.getString(getContentResolver(), android.provider.Settings.Secure.ANDROID_ID); + + UUID deviceUuid = new UUID(androidId.hashCode(), ((long)tmDevice.hashCode() << 32) | tmSerial.hashCode()); + String deviceId = deviceUuid.toString(); + +better to track installation: + http://android-developers.blogspot.ch/2011/03/identifying-app-installations.html + + +integrate native android stuff in libgdx: + https://code.google.com/p/libgdx-users/wiki/IntegratingAndroidNativeUiElements + + +crypt: + https://code.google.com/p/gwt-crypto/ |