Search in sources :

Example 1 with SettingsActivity

use of com.nightscout.android.settings.SettingsActivity in project android-uploader by nightscout.

the class AndroidBarcodeTest method fakeActivityResult.

private void fakeActivityResult() {
    Intent intent = createFakeScanIntent(jsonConfig);
    SettingsActivity activity = Robolectric.buildActivity(SettingsActivity.class).create().start().resume().get();
    activity.onActivityResult(IntentIntegrator.REQUEST_CODE, Activity.RESULT_OK, intent);
}
Also used : Intent(android.content.Intent) SettingsActivity(com.nightscout.android.settings.SettingsActivity)

Aggregations

Intent (android.content.Intent)1 SettingsActivity (com.nightscout.android.settings.SettingsActivity)1