android.app.Activity.onNewIntent()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(4.2k)|赞(0)|评价(0)|浏览(166)

本文整理了Java中android.app.Activity.onNewIntent()方法的一些代码示例,展示了Activity.onNewIntent()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Activity.onNewIntent()方法的具体详情如下:
包路径:android.app.Activity
类名称:Activity
方法名:onNewIntent

Activity.onNewIntent介绍

暂无

代码示例

代码示例来源:origin: hitherejoe/animate

@Override
protected void onNewIntent(Intent intent) {
  super.onNewIntent(intent);
}

代码示例来源:origin: commonsguy/cw-omnibus

@Override
protected void onNewIntent(Intent intent) {
 super.onNewIntent(intent);
 visit(intent);
}

代码示例来源:origin: commonsguy/cw-omnibus

@Override
protected void onNewIntent(Intent intent) {
 super.onNewIntent(intent);
 if (Intent.ACTION_EDIT.equals(intent.getAction())) {
  openEditor(intent.getData());
 }
}

代码示例来源:origin: Karumi/Dexter

@Override protected void onNewIntent(Intent intent) {
 super.onNewIntent(intent);
 Dexter.onActivityReady(this);
}

代码示例来源:origin: commonsguy/cw-omnibus

@Override
protected void onNewIntent(Intent intent) {
 super.onNewIntent(intent);
 if (!intent.getData().equals(current.getData())) {
  current=intent;
  play();
 }
}

代码示例来源:origin: facebook/facebook-android-sdk

@Override
protected void onNewIntent(Intent intent) {
  super.onNewIntent(intent);
  if (REFRESH_ACTION.equals(intent.getAction())) {
    // The custom tab is now destroyed so we can finish the redirect activity
    Intent broadcast = new Intent(CustomTabActivity.DESTROY_ACTION);
    LocalBroadcastManager.getInstance(this).sendBroadcast(broadcast);
    sendResult(RESULT_OK, intent);
  } else if (CustomTabActivity.CUSTOM_TAB_REDIRECT_ACTION.equals(intent.getAction())) {
    // We have successfully redirected back to this activity. Return the result and close.
    sendResult(RESULT_OK, intent);
  }
}

代码示例来源:origin: jaydenxiao2016/AndroidFire

@Override
protected void onNewIntent(Intent intent) {
  super.onNewIntent(intent);
  setIntent(intent);
  api.handleIntent(intent, this);
}

代码示例来源:origin: robolectric/robolectric

@Override
protected void onNewIntent(Intent intent) {
 super.onNewIntent(intent);
 transcribeWhilePaused("onNewIntent");
 transcript.add("finishedOnNewIntent");
}

代码示例来源:origin: jberkel/sms-backup-plus

@Override
protected void onNewIntent(Intent intent) {
  super.onNewIntent(intent);
  handleRedirectIntent(intent);
}

代码示例来源:origin: Countly/countly-sdk-android

@SuppressWarnings("EmptyMethod")
@Override
protected void onNewIntent (Intent intent) {
  super.onNewIntent(intent);
}

代码示例来源:origin: WangDaYeeeeee/Mysplash

@Override
protected void onNewIntent(Intent intent) {
  super.onNewIntent(intent);
  readIntent(intent);
}

代码示例来源:origin: THEONE10211024/ApiDemos

@Override
protected void onNewIntent(Intent intent) {
  super.onNewIntent(intent);
  final String notificationIndUrl = intent.getStringExtra(EXTRA_NOTIFICATION_URL);
  if (!TextUtils.isEmpty(notificationIndUrl)) {
    downloadMessage(notificationIndUrl);
  }
}

代码示例来源:origin: termux/termux-api

@Override
protected void onNewIntent(Intent intent) {
  super.onNewIntent(intent);
  setIntent(intent);
}

代码示例来源:origin: bilibili/BiliShare

@Override
protected void onNewIntent(Intent intent) {
  super.onNewIntent(intent);
  Log.d(TAG, "onNewIntent");
  setIntent(intent);
  if (mIWXAPI != null) {
    mIWXAPI.handleIntent(intent, this);
  }
}

代码示例来源:origin: 109021017/android-TopActivity

@Override
protected void onNewIntent(Intent intent) {
  super.onNewIntent(intent);
  if (getIntent().getBooleanExtra(EXTRA_FROM_QS_TILE, false)) {
    mWindowSwitch.setChecked(true);
  }
}

代码示例来源:origin: devinhu/androidone

@Override
protected void onNewIntent(Intent intent) {
  super.onNewIntent(intent);
  setIntent(intent);
  api.handleIntent(intent, this);
}

代码示例来源:origin: XunMengWinter/Now

@Override
protected void onNewIntent(Intent intent) {
  super.onNewIntent(intent);
  setIntent(intent);
  api.handleIntent(intent, this);
}

代码示例来源:origin: iqiyi/Neptune

@Override
protected void onNewIntent(Intent intent) {
  super.onNewIntent(intent);
  PluginDebugLog.runtimeLog(TAG, "InstrActivityProxy1 onNewIntent");
  if (getController() != null) {
    getController().callOnNewIntent(intent);
  }
}

代码示例来源:origin: tsy12321/PayAndroid

@Override
protected void onNewIntent(Intent intent) {
  super.onNewIntent(intent);
  setIntent(intent);
  if(WXPay.getInstance() != null) {
    WXPay.getInstance().getWXApi().handleIntent(intent, this);
  }
}

代码示例来源:origin: jinguangyue/Android-CustomCamera

@Override
protected void onNewIntent(Intent intent) {
  super.onNewIntent(intent);
  setIntent(intent);
  APPShare.getInstance().getWxapi().handleIntent(intent, this);
  APPShare.getInstance().getWeiboShareAPI().handleWeiboResponse(intent, this);
}

相关文章

Activity类方法