setContentView(R.layout.activity_earthquake_maps); | setContentView(R.layout.activity_earthquake_maps); | ||||
//Database Init | //Database Init | ||||
db.setMyWaveSpeed(2000); | |||||
db.setMyWaveSpeed(500); | |||||
db.setMyAndroidID(Settings.Secure.getString(this.getContentResolver(), Settings.Secure.ANDROID_ID)); | db.setMyAndroidID(Settings.Secure.getString(this.getContentResolver(), Settings.Secure.ANDROID_ID)); | ||||
WifiManager wm = (WifiManager) getApplicationContext().getSystemService(WIFI_SERVICE); | WifiManager wm = (WifiManager) getApplicationContext().getSystemService(WIFI_SERVICE); | ||||
int ip = wm.getConnectionInfo().getIpAddress(); | int ip = wm.getConnectionInfo().getIpAddress(); |
if (isServiceOK()){ | if (isServiceOK()){ | ||||
//Für Dantenbank | //Für Dantenbank | ||||
db.setMyWaveSpeed(2000); | |||||
db.setMyWaveSpeed(500); | |||||
db.setMyAndroidID(Settings.Secure.getString(this.getContentResolver(), Settings.Secure.ANDROID_ID)); | db.setMyAndroidID(Settings.Secure.getString(this.getContentResolver(), Settings.Secure.ANDROID_ID)); | ||||
WifiManager wm = (WifiManager) getApplicationContext().getSystemService(WIFI_SERVICE); | WifiManager wm = (WifiManager) getApplicationContext().getSystemService(WIFI_SERVICE); |
//Database Init | //Database Init | ||||
db.setMyWaveSpeed(2000); | |||||
db.setMyWaveSpeed(500); | |||||
db.setMyAndroidID(Settings.Secure.getString(this.getContentResolver(), Settings.Secure.ANDROID_ID)); | db.setMyAndroidID(Settings.Secure.getString(this.getContentResolver(), Settings.Secure.ANDROID_ID)); | ||||
WifiManager wm = (WifiManager) getApplicationContext().getSystemService(WIFI_SERVICE); | WifiManager wm = (WifiManager) getApplicationContext().getSystemService(WIFI_SERVICE); | ||||
int ip = wm.getConnectionInfo().getIpAddress(); | int ip = wm.getConnectionInfo().getIpAddress(); |