@OverrIDepublic voID startActivity(Intent intent) { boolean handled = false; if (TextUtils.equals(intent.getAction(),Intent.ACTION_VIEW)) { String app_ID = intent.getStringExtra(browser.EXTRA_APPliCATION_ID); if ( TextUtils.equals(getApplicationContext().getPackagename(),app_ID) ) { // This intent is a vIEw coming from linkify; handle internally // << do something smart here >> handled = true; } } if (!handled) super.startActivity(intent);}总结
以上是内存溢出为你收集整理的android – 处理具有自己意图的链接onClick事件全部内容,希望文章能够帮你解决android – 处理具有自己意图的链接onClick事件所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)