本文章主要将通过意图触发内置的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
最近好多朋友说adb 不支持发送中文的短信,也不知道为啥要用adb 来发送短信,昨天想到这个问题,所以修改了一下自己的adb,支持发送中文的短信了。
adb shell am start -a android.intent.action.SENDTO -d sms:10086 --es sms_body 中文
下载地址:
http://bcs.duapp.com/myandroi...
分类:
数据库 时间:
2014-06-03 04:04:20
阅读次数:
488
1、错误描述
freemarker基本数据类型
张三丰
123,456
Error on line 20, column 8 in type.ftl
Expecting a string, date or number here, Expression flag is instead...
分类:
其他好文 时间:
2014-06-03 00:51:06
阅读次数:
400
关于C++字节对齐问题关于C/C++的字节对齐这两天写解析SWF文件的程序,在结构体指针和从文件里读出来的进行转换的时候遇到一些问题,就是有一个struct
A,比如:struct A{ char flag; int length; int id; ....};然后一个飘逸的...
分类:
编程语言 时间:
2014-06-02 21:23:39
阅读次数:
260
Intent intent = new Intent();
intent.setClass(School.this, Setting.class);
startActivity(intent);在纠结这个问题的时候也在考虑是不是 .setClass ...
分类:
其他好文 时间:
2014-06-02 17:34:52
阅读次数:
163
TextView 加下划线 、 中划线
下过如图:
// 中划线
textView.getPaint().setFlags(Paint.STRIKE_THRU_TEXT_FLAG | Paint.ANTI_ALIAS_FLAG); // 设置中划线并加清晰
// 下划线
textView.getPaint().setFlags(Paint.UNDERLINE_TEXT_FLA...
分类:
移动开发 时间:
2014-06-01 14:49:20
阅读次数:
283
题意:写出一个给定区间的每个数,求出一共写了多少个零。解法:数位DP,定义dp[len][flag][num]:len的定义为数位的长度,flag定义为前导0和没有前导0的两种状态,num定义为写的满足条件的0的个数。
1 #include 2 #include 3 #include 4 #incl...
分类:
其他好文 时间:
2014-06-01 11:48:35
阅读次数:
167
1、错误描述
五月 30, 2014 11:33:57 下午 freemarker.log.JDK14LoggerFactory$JDK14Logger error
严重: Template processing error: "Expected hash. flag evaluated instead to freemarker.template.TemplateBooleanModel$2...
分类:
其他好文 时间:
2014-06-01 11:21:47
阅读次数:
401
MainActivity如下:
package come.on;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.V...
分类:
移动开发 时间:
2014-06-01 10:36:36
阅读次数:
345
1.
格式:
父标签:
描述:
一个必须包含一或一个以上的.如果不包含则不会有Intent被拦截。
参数:
android:name
表示的是action的名称,一些标准的action已经在Intent类中定义了,可以查询Intent的api查看。可以通过 "android.intent.action.*"来进行赋值。比如对于 ACTION_M...
分类:
移动开发 时间:
2014-06-01 06:00:50
阅读次数:
339