示例#1
0
 public void addCustomDeviceData(@SuppressWarnings("unused") View view) {
   EditText keyText = (EditText) findViewById(R.id.add_custom_device_data_key);
   EditText valueText = (EditText) findViewById(R.id.add_custom_device_data_value);
   String key = (keyText).getText().toString().trim();
   String value = (valueText).getText().toString().trim();
   keyText.setText(null);
   valueText.setText(null);
   Apptentive.addCustomDeviceData(this, key, value);
 }
示例#2
0
 public static void addCustomDeviceData(
     final ForgeTask task,
     @ForgeParam("key") final String key,
     @ForgeParam("value") final String value) {
   Apptentive.addCustomDeviceData(ForgeApp.getActivity(), key, value);
 }