Android中LocationManager的提供了一系列方法来地理位置相关的问题,包括查询上一个已知位置;注册/注销来自某个 LocationProvider的周期性的位置更新;以及注册/注销接近某个坐标时对一个已定义Intent的触发等。今天我们就来看看Android 中LocatinMana...
分类:
移动开发 时间:
2014-11-10 13:26:32
阅读次数:
159
I : 利用隐式Intent实现分享 1、应用实现分享的功能 1 /* 实现分享功能 */ 2 3 Intent intent = new Intent(); 4 intent.setAction(Intent.ACTION_SEND); 5 ...
分类:
移动开发 时间:
2014-11-09 16:26:59
阅读次数:
271
Intent的中文意思是“意图,目的”的意思,可以理解为不同组件之间通信的“媒介”或者“信使”。目标组件一般要通过Intent来声明自己的条件,一般通过组件中的元素来过滤。Intent在由以下几个部分组成:动作(action),数据(data),分类(Category),类型(Type),组件(Co...
分类:
其他好文 时间:
2014-11-09 15:10:16
阅读次数:
175
AndroidManifest.xml配置文件对于Android应用开发来说是比较细但又很重要的基础知识,本文旨在总结该配置文件中常用到的几个属性,以便日后查阅,至于那些比较细的属性,主要是平时开发比较少用便不列举,如果自己有需要直接在eclipse中直接“alt+/”就好了……下面是一个比较通用的...
分类:
移动开发 时间:
2014-11-08 16:29:47
阅读次数:
237
在任何程序开发中,都会遇到页面之间跳转的情况,Android开发也不例外.这一节,我们来认识下Android项目中怎样进行页面跳转.页面跳转分为有参数和无参数页面跳转,已经接受另一个页面的返回值等。Android中页面跳转常用到的是Intent ,但是Intent不仅用做页面跳转,还可以做其他事情,例如拨打电话,发送短信,调用其他程序等。这节我们主要认识下怎样通过Intent进行页面跳转.
...
分类:
移动开发 时间:
2014-11-08 15:16:57
阅读次数:
181
MainActivity例如以下:package come.on;import android.app.Activity;import android.content.Context;import android.content.Intent;import android.os.Bundle;imp...
分类:
移动开发 时间:
2014-11-08 13:38:31
阅读次数:
304
============问题描述============ 再做一个闹铃服务,我在A类里面通过PendingIntentpi_1=PendingIntent .getBroadcast(context,re_1.getAlarm_id(),intent_1,0);aManager.set(AlarmM...
分类:
移动开发 时间:
2014-11-08 13:34:58
阅读次数:
255
ComponentName是用来打开其它应用程序中的Activity或服务的。使用方法:Intent i=new Intent();i.setComponent(new ComponentName(String packageName,String activityName ));startActi...
分类:
其他好文 时间:
2014-11-07 20:33:05
阅读次数:
175
Here is what i encountered: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=me.waye.intentdemo.intent.action.WAYE_ACTION cat=[me.waye.intentdemo.intent.category....
分类:
移动开发 时间:
2014-11-07 13:17:23
阅读次数:
238
普通广播
创建一个广播接收器
class broadcast extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
Log.i("Ma", "广播");
}}
新建一个广播发送器
Intent intent = new Intent...
分类:
其他好文 时间:
2014-11-06 22:04:13
阅读次数:
231