Skip to main content
Samsung Developer Program

Manage RN action callbacks

Your Android™ app can set CallbackIntent to receive one of three types of callbacks after RN actions are processed:

  • ActivityCallback will perform context.startActivity() on the Android device with Intent.FLAG_ACTIVITY_NEW_TASK.
  • BroadcastCallback will perform context.sendBroadcast().
  • ServiceCallback will perform context.startService().

Your Android app can retrieve the information like user type when the action is RemoteInputAction and it has KeyboardInputMode. The passed intent has a string extra named extra_action_data.

To call a method when an activity is created:

public class MainActivity extends Activity {
    protected void onCreate(Bundle savedInstanceState) {
       String result = getIntent().getStringExtra("extra_action_data");
       if (result != null) {



To increase component security:

    android:permission=”” />


  • Was this article helpful?