Intent简介
Android基本的设计理念是鼓励减少组件间的耦合,因此Android提供了Intent (意图) ,Intent提供了一种通用的消息系统,它允许在你的应用程序与其它的应用程序间传递Intent来执行动作和产生事件。使用Intent可以激活Android应用的三个核心组件:活动、服务和广播接收器。
在一个Activity中可以使用系统提供的startActi...
分类:
其他好文 时间:
2014-06-05 12:35:54
阅读次数:
356
开放服务网关倡议(OSGi)定义了开发和部署模块应用程序和库的体系结构。作为介绍OSGi的第一篇文章,本文旨在让你了解OSGi开发的一些概念,并向你展示了如何使用Eclipse的OSGi容器(Equinox)实现建立一个简单的Hello World应用。此外还简要介绍了使用OSGi构建面向服务的应用程序以及OSGi的servicefactory和servicetracker类。
OSGI(Open Services Gateway Initiative),也叫JAVA动态模块系统,定义了一套模块应用开发的...
分类:
其他好文 时间:
2014-06-05 12:33:11
阅读次数:
379
MainActivity如下:
package cc.c;
import java.util.List;
import android.os.Bundle;
import android.os.Process;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Bu...
分类:
移动开发 时间:
2014-06-05 10:47:50
阅读次数:
299
一、Activity的使用:package com.example.activity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import androi...
分类:
移动开发 时间:
2014-06-05 09:36:01
阅读次数:
276
通过intent调用打电话,打开地图、打开浏览器,创建邮件,创建事件的操作
截图:
代码
package com.example.hellointent;
import java.util.Calendar;
import java.util.List;
import org.apache.http.protocol.HTTP;
import android.net.Uri;
...
分类:
其他好文 时间:
2014-06-05 08:01:16
阅读次数:
281
首先去mysql官网下载需要的linux版本的mysql,我下的是MySQL-5.6.17-1.linux_glibc2.5.x86_64.rpm-bundle.tar
下载网址为:http://dev.mysql.com/downloads/mysql/
接下来把下载下来的mysql拖到centOS中去,也可以直接在centOS中下载。
接下来解压下载好的文件
[root@localho...
分类:
数据库 时间:
2014-06-05 04:32:59
阅读次数:
296
前言——项目中需要用到对用户头像的裁剪和上传功能。关于裁剪,一开始是想自己来做,但是觉得这个东西应该谷歌有开发吧,于是一搜索官方文档,果然有。于是,就果断无耻地用了Android
自带有关于照片的自由裁剪。因为时间太紧,虽然不太华丽,但是胜在能用,节省时间嘛。
具体是通过 Intent
的action来实现的。
关键代码如下:
public void imageCut(Uri...
分类:
移动开发 时间:
2014-06-05 03:32:58
阅读次数:
240
??
IntentService is a base class for Services
that handle asynchronous requests (expressed as Intents)
on demand. Clients send requests through startService(Intent) calls;
the service is starte...
分类:
其他好文 时间:
2014-06-05 03:03:46
阅读次数:
262
腾讯微薄的分享与新浪的区别在于除了获取accessToken之外还需要获取openId
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.auth);
web = (WebView) findVi...
分类:
其他好文 时间:
2014-06-04 21:00:25
阅读次数:
354
本文章主要将通过意图触发内置的Camera应用程序来录制视频。
源代码:
布局文件:
activity_main:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:...
分类:
移动开发 时间:
2014-06-03 06:25:41
阅读次数:
249