本文章主要将通过意图触发内置的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
Pausing and Resuming an Activity
暂停和恢复活动
PreviousNextGet
started
This lesson teaches you to
Pause Your Activity 暂停活动Resume Your Activity 恢复活动
You s...
分类:
其他好文 时间:
2014-06-03 01:08:34
阅读次数:
366
MainActivity如下:
package cc.c;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.List;
import android.app.Activity;
import android.app.ActivityMan...
分类:
移动开发 时间:
2014-06-02 23:53:57
阅读次数:
503
今天,首先对Activity的生命周期进行复习:...
分类:
移动开发 时间:
2014-06-02 23:27:00
阅读次数:
381
在使用 SU01 维护用户时,在登录数据选项卡中会要求选择用户类型,一般我们都选择第一项
Dialog,但是其他几个选项有什么作用呢?下面我们就一一解释。对话用户顾名思义,就是需要通过 SAP GUI 与 SAP
系统进行交互的用户。在对话用户登录时,系统会检查用户的有效期和初始密码,并且要求修改密...
分类:
其他好文 时间:
2014-06-02 09:16:58
阅读次数:
1709
There are a few scenarios in which your activity is destroyed due to normal app behavior, such as when the user presses theBack button or your activity signals its own destruction
by calling finish(...
分类:
其他好文 时间:
2014-06-01 18:18:52
阅读次数:
550
格式:
<activity android:allowTaskReparenting=["true" | "false"]
android:alwaysRetainTaskState=["true" | "false"]
android:clearTaskOnLaunch=["true" | "false"]
android:confi...
分类:
移动开发 时间:
2014-06-01 15:41:02
阅读次数:
321
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
一、利用SharedPreferences来实现数据的保存和读取:
1、Mainactivity:
package com.example.sharedpreferencesdemo;
import com.example.sharedpreferencesdemo.util.SharedPreferencesUtil;
import android.app.Activity;
imp...
分类:
移动开发 时间:
2014-06-01 09:51:36
阅读次数:
331
布局文件:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="...
分类:
移动开发 时间:
2014-06-01 04:04:04
阅读次数:
490