var main = plus.android.runtimeMainActivity();
console.log(main);
nwv = plus.android.currentWebview();
console.log(nwv);
// plus.android.importClass("android.support.v7.app.AppCompatActivity");
plus.android.importClass("android.app.Activity");
var Bundle = plus.android.importClass("android.os.Bundle");
var Intent = plus.android.importClass("android.content.Intent");
var intent = new Intent(main.getIntent());
var bundle = new Bundle();
bundle.putString("TYPE", "MpsVid");
bundle.putString("MediaId", MediaId);
bundle.putString("AccessKeyId", AccessKeyId);
bundle.putString("AccessKeySecret", AccessKeySecret);
bundle.putString("SecurityToken", SecurityToken);
bundle.putString("Expiration", Expiration);
intent.putExtras(bundle);
intent.setClassName(main,"com.live.live.LoginActivity2");
var re = main.startActivity(intent);
console.log(re);
2 个回复
y***@163.com
遇到同样问题,有解决方法了没?
y***@163.com
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
加了这句解决了问题
逞英雄 (作者)
对的,
2019-12-31 17:12