From the Android developer web link: http://developer.android.com/reference/android/content/Intent.html, you can find that it says "It (Intent) is bas ...
分类:
移动开发 时间:
2017-09-19 11:07:10
阅读次数:
171
这是bundle是传输不了数据的,获取到 出现这种情况的原因是非activity类中不存在Context,而在活动中传输数据时需要Context。 我收集到了两种解决方法。 1. 在调用该Adapter的Activity中声明一个Activity(或者Context)。 public static ...
分类:
移动开发 时间:
2017-09-15 10:12:09
阅读次数:
213
Intro to Android.mk Simple example NDK Usage Defining Modules Simple APK APK Dependent on static .jar file APK signed with the platform key APK that s ...
分类:
移动开发 时间:
2017-09-13 22:05:55
阅读次数:
248
手机app打开的web在,打开chrome浏览器 <a href='intent://#Intent;action=android.intent.action.VIEW;scheme=googlechrome://navigate?url=https://www.baidu.com/?a=n&b=c ...
分类:
移动开发 时间:
2017-09-13 11:54:59
阅读次数:
527
一:Intent Intent可以理解为 意图。 我们可以通过创建intent实例来定义一个跳转意图,意图包括:要跳转到哪个页面、需要传递什么数据。 然后通过startActivity(intent)来启动跳转。 有两种方式定义Intent:显式Intent、隐式Intent。 二:显式Intent ...
分类:
移动开发 时间:
2017-09-13 09:50:13
阅读次数:
202
安卓的开发者指南上说: The system will deliver an implicit intent to your app component only if the intent can pass through one of your intent filters. filter 的一 ...
分类:
其他好文 时间:
2017-09-10 16:42:41
阅读次数:
157
本章需求:首先,让应用轮询新结果并在有所发现时及时通知用户,即使用户重启设备后还没有打开过应用。其次,保证用户在使用应用时不出现新结果通知。 1. 一般intent和broadcast intent 许多系统组件需要知道某些事件的发生(WIFI信号时有时无,电话的呼入等),为满足这样的需求,Ando ...
分类:
移动开发 时间:
2017-09-08 19:30:31
阅读次数:
234
自定义广播 自定义广播就是我们自己来写广播发送者,也自己来写广播接收者。 效果图: 分析: 1、自己写好广播发送者 设置广播的id,广播接收者监听的时候需要监听这个 intent.setAction("com.fry.receiver"); 这是给广播接收者带数据,没这个也行 intent.putE ...
分类:
其他好文 时间:
2017-09-08 00:12:53
阅读次数:
266
可以调用多个startActivityForResult(Intent, int requestCode)打开新的activity来处理业务 当这些新的activiy关闭后会调用onActivityResult处理返回结果,利用requestCode可以辨别 是什么业务请求所触发的 setResul ...
分类:
其他好文 时间:
2017-09-02 01:09:59
阅读次数:
242