Intent inten = new Intent(
Intent.ACTION_PICK,MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
startActivityForResult(inte...
分类:
移动开发 时间:
2014-05-26 22:50:19
阅读次数:
369
/*代码一:DFS+Enum*///Memory Time //240K 344MS
//本题只要求输出翻转的次数,因此BFS或DFS都适用#includeusing namespace std;bool
chess[6][6]={false};//利用的只有中心的4x4bool flag;in.....
分类:
其他好文 时间:
2014-05-26 22:45:54
阅读次数:
323
1、Intent intent = new
Intent(Intent.ACTION_GET_CONTENT); intent.setType("image/*");
intent.putExtra("crop", true); in...
分类:
其他好文 时间:
2014-05-26 12:00:15
阅读次数:
230
#include //头文件调用,写程序时都要加上,#define uint unsigned int
//宏定义,为了后面定义变量书写简便#define uchar unsigned charuchar mm=0; //全局变量uchar flag_get=0;
//定义标志位,为1则灯亮/**....
分类:
其他好文 时间:
2014-05-26 08:42:09
阅读次数:
276
void selectsort(int a[],int n) //
选择排序的思路就是每次找到当前序列中最小的元素,然后交换{ // 就是选择最小的,然后交换 int i,j,flag; for(i = 0;i=0
&&ti;...
分类:
其他好文 时间:
2014-05-26 07:10:38
阅读次数:
200
1、申请权限:2、创建意图(Intent):Intentintent=newIntent();intent.setAction("android.intent.action.CALL");//操作系统会自动为Intent注册类别:android.intent.category.DEFAULT//i....
分类:
移动开发 时间:
2014-05-23 07:07:45
阅读次数:
282
Intent 是一个消息对象,你可以用它向另一个 app 组件发生动作请求。尽管 Intent 在促进组件间沟通的方式有多种,主要有个以下三种基本方式:...
分类:
其他好文 时间:
2014-05-22 23:01:27
阅读次数:
286
1.打电话 可以自己写界面,在button的单击事件中添加如下代码即可: Intent intent
= new Intent(); intent.setAction("android.intent.action.CALL");
intent.setData(Uri.parse("tel:"+ .....
分类:
移动开发 时间:
2014-05-22 16:41:15
阅读次数:
473
/* 播放录音文件 */private void playMusic(File
file){Intent intent = new
Intent();intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);intent.setAction(android.con...
分类:
其他好文 时间:
2014-05-22 15:18:27
阅读次数:
269
package com.ting.textcover;import
java.io.File;import android.app.Activity;import android.content.Intent;import
android.graphics.Bitmap;import android...
分类:
其他好文 时间:
2014-05-22 14:30:14
阅读次数:
321