在前面的文章中提到了remote service 的创建过程,现在我们要让它开机自动启动1.在前面代码的基础上添加 RemoteServiceBootReceiver.java ,实现一个intent的receiver[java] view plaincopyprint?packagecom.fly...
分类:
移动开发 时间:
2014-06-28 19:30:27
阅读次数:
229
打开系统相册获取图片并截取,代码相对简单 1 Intent intent = new Intent(Intent.ACTION_GET_CONTENT,null); 2 intent.setType("image/*"); 3 intent.putExtra("cro...
分类:
移动开发 时间:
2014-06-24 09:45:53
阅读次数:
360
我们有时候需要将文本、图片等分享到微博、微信、qq好友等,网上有好多代码,实现复杂,对于初学者来说,读起来很困难,其实,分享这一功能是很容易实现的。实现代码如下(经过了测试):1、分享文本:Intent intent = new Intent(Intent.ACTION_SEND); //启动分享发...
分类:
微信 时间:
2014-06-24 09:41:47
阅读次数:
427
//ASP.NET后台页面跳转Page.ClientScript.RegisterStartupScript(Page.GetType(), "", "");//后台弹出确定框ClientScript.RegisterStartupScript(GetType(), "message", "");/...
分类:
Web程序 时间:
2014-06-24 09:22:40
阅读次数:
6310
转自:http://www.jb51.net/article/37227.htm本篇文章是对activity之间数据传递的方法进行了详细的分析介绍,需要的朋友参考下1 基于消息的通信机制 Intent--------boudle,extra用这种简单的形式,一般而言传递一些简单的类型是比较容易的,如...
分类:
其他好文 时间:
2014-06-21 10:32:58
阅读次数:
309
1.页面传值: this.NavigationService.Navigate(new Uri("/SecondPage.xaml?CustomerId=1234&Product=555", UriKind.Relative)); protected override void OnNavigate...
分类:
其他好文 时间:
2014-06-21 06:30:22
阅读次数:
142
Java -> .NET安卓 -> winform/WPF类继承Activity -> 类继承 Form①安卓的如果android中你有2个Activity,可以从一个Activity跳到另一个Activity怎么搞Intent t=new Intent(MainA...
分类:
移动开发 时间:
2014-06-20 19:55:50
阅读次数:
417
package com.qianhua.ui;
002
003
import android.app.Activity;
004
import android.content.Intent;
005
import and...
分类:
其他好文 时间:
2014-06-17 23:02:36
阅读次数:
350
android.permission.ACCESS_CHECKIN_PROPERTIES 允许读写访问"properties"表在checkin数据库中,改值可以修改上传( Allows read/write access to the "properties" table in the checkin database, to change values that get uploaded)
...
分类:
移动开发 时间:
2014-06-17 21:58:57
阅读次数:
437
和HandlerThread一样,IntentService也是Android替我们封装的一个Helper类,用来简化开发流程的。接下来分析源码的时候
你就明白是怎么回事了。IntentService是一个按需处理用Intent表示的异步请求的基础Service类,本质上还是Android Service。
客户端通过Context#startService(Intent);这样的代码来发起一...
分类:
其他好文 时间:
2014-06-17 18:56:21
阅读次数:
307