Hi!!
So far I initialize the device setup in the first activity of my app as:
ParticleDeviceSetupLibrary.initWithSetupOnly(this.getApplicationContext());
Then, in the same activity where I launch the setup, I set the receiver as:
_receiver = new ParticleDeviceSetupLibrary.DeviceSetupCompleteReceiver() {
@Override
public void onSetupSuccess(@NonNull String configuredDeviceId) {
//Something
_receiver.unregister(MainActivity.this);
}
@Override
public void onSetupFailure() {
//Something
_receiver.unregister(MainActivity.this);
}
};
And I launch the setup as:
ParticleDeviceSetupLibrary.startDeviceSetup(MainActivity.this,MainActivity.class);
Is there any way to come back to the same activity instead of starting a new one?
Thanks in advance!!
Ignacio