本文大部分参考自http://blog.csdn.net/mayingcai1987/article/details/6200909,对原文中的讲解FLAG_NEW_TASK地方加了一些自己的观点,用红色标记1. Task是包含一系列Activity的堆栈, 遵循先进后出原则.2. Task默认行为...
分类:
移动开发 时间:
2014-10-10 20:16:44
阅读次数:
198
package com.example.mynotification;
import android.os.Bundle;
import android.app.Activity;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
i...
分类:
移动开发 时间:
2014-10-10 18:21:14
阅读次数:
190
转载:http://www.cnblogs.com/bluestorm/p/3622444.html从事Android开发,免不了会在应用里嵌入一些广告SDK,在嵌入了众多SDK后,发现几乎每个要求在AndroidManifest.xml申明Activity的广告SDK都会要求加上注明这么一句属性:...
分类:
移动开发 时间:
2014-10-10 17:57:54
阅读次数:
190
只要在Activity中的onCreate方法中增加如下代码: ?if (VERSION.SDK_INT >= VERSION_CODES.KITKAT) { ???// 透明状态栏 ???getWindow().addFlags( ?????WindowManager.LayoutParams.FLAG_TRANSLUCENT...
分类:
移动开发 时间:
2014-10-10 12:12:44
阅读次数:
187
Android读取自定义View属性attrs.xml : activity_main.xml : MyView.java :public MyView(Context context, AttributeSet attrs) { super(c...
分类:
移动开发 时间:
2014-10-10 11:41:54
阅读次数:
168
一、Activity 生命周期
二、Fragment 生命周期
三、对比图
四、测试代码
[java] view
plaincopy
package com.goso.testapp;
import android.app.Activity;
import an...
分类:
移动开发 时间:
2014-10-10 11:27:44
阅读次数:
280
October 9, 2014 19:00~21:00 Feishang Cafe
This is my first time to join the club. There were three parts in today's activity. Guests' Sharing, Members' Speeches and Table Topics.
I...
分类:
其他好文 时间:
2014-10-10 03:07:53
阅读次数:
205
一、Handler 和 Thread package com.lstech.app; import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message...
分类:
移动开发 时间:
2014-10-09 22:37:47
阅读次数:
250
sar(System Activity Reporter系统活动情况报告)是目前Linux上最为全面的系统性能分析工具之一,可以从多个方面对系统的活动进行报告,包括:文件的读写情况、系统调用的使用情况、磁盘I/O、CPU效率、内存的使用情况、进行活动以及IPC有关的活动等。下面主要以Redhat.....
分类:
系统相关 时间:
2014-10-09 22:02:08
阅读次数:
336