Android-Activity配置改变
一 常见的配置改变
1 横屏竖屏转换
2 语言的改变
3 输入法的有效性切换
二 调用的重要的方法
1 @Override
public void onConfigurationChanged(Configuration newConfig)
{
// TODO Auto-generated method st...
分类:
移动开发 时间:
2015-05-31 23:19:46
阅读次数:
264
The sequence of triangle numbers is generated by adding the natural numbers. So the 7th triangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28. The first ten terms would be:
1, 3, 6, 10, 15, 21, 28,...
分类:
其他好文 时间:
2015-05-31 09:31:48
阅读次数:
165
public class ComputeSourceLine {
public static void main(String[] args) throws FileNotFoundException {
// TODO Auto-generated method stub
// 定义相关变量
int totalLine = 0;
int emptyLine = 0;
...
分类:
编程语言 时间:
2015-05-29 23:18:43
阅读次数:
158
private var beginY:Number;private function touchEventHandler(e:TouchEvent):void{ // TODO Auto Generated method stub var touch:Touch = e.getTouch(e....
分类:
其他好文 时间:
2015-05-29 17:26:30
阅读次数:
107
由于功能需要,我需要每间隔四秒去更新下TextView的数据,实现方式用的Timer。先贴代码:
Timer timer = new Timer();
TimerTask timerTask = new TimerTask() {
@Override
public void run() {
// TODO Auto-generated method stub
runOn...
分类:
移动开发 时间:
2015-05-28 18:15:23
阅读次数:
178
设置 STATISTICS_LEVEL = BASIC 会禁用一下oracle 的功能特性
Automatic Workload Repository (AWR) Snapshots
Automatic Database Diagnostic Monitor (ADDM)
All server-generated alerts
Automatic SGA Memory ...
分类:
数据库 时间:
2015-05-28 12:42:50
阅读次数:
226
SimpleDateFormat设置自己想要的日期时间显示方式:import java.text.SimpleDateFormat;
import java.util.Date;public class FormatDemo {
public static void main(String[] args) {
// TODO Auto-generated method stu...
分类:
编程语言 时间:
2015-05-28 09:45:18
阅读次数:
228
Eclipse在debug调试的时候,经常遇到无法设置断点的情况,会弹出如下对话框:解决方法:Window--->Properties---->java Compiler---->classfile Generation勾选“Add line unmber attributes to generated class files (used by the debugger)”复选框,然后“OK”。如...
分类:
系统相关 时间:
2015-05-28 00:48:56
阅读次数:
222
本章博客,记录的是跨应用启动Service。
我们需要创建一个应用service1,其中包含一个MyService,部分代码如下: @Override
public void onCreate() {
// TODO Auto-generated method stub
System.out.println("onCreate");
s...
分类:
移动开发 时间:
2015-05-27 17:27:08
阅读次数:
131
1、图形界面下录制脚本如下:#-------------------------------------------------------------------------------# Do not change the following system generated value. #-...
分类:
数据库 时间:
2015-05-23 12:47:44
阅读次数:
215