Exemple #1
0
 @Override
 public void onSuccess(RequestResult result) {
   if (result.getRequestType() == RequestResult.WIFI) {
     // Toast.makeText(this, result.getResponse(), Toast.LENGTH_SHORT).show();
     ((TextView) findViewById(R.id.reply)).setText(result.getResponse());
     StringBuilder builder = new StringBuilder();
     builder.append("Android ID: ");
     builder.append(uuid);
     builder.append("\n");
     builder.append("Device: ");
     builder.append(device);
     builder.append("\n");
     builder.append("MAC: ");
     builder.append(macAddr);
     builder.append("\n");
     builder.append("OS: ");
     builder.append(os);
     builder.append("\n");
     text.setText(builder.toString());
     prefs.edit().putBoolean(IS_SENDED, true).commit();
   }
 }