原创 ActionBar 下拉菜單
自定義的Fragment: public class StudentInfo extends Fragment{ // Fragment對應的標籤,當Fragment依附於Activity時得到 private String
原创 Activity intent經常使用的 FLAG 集合(
http://blog.sina.com.cn/s/blog_5f599e1d01011tyn.html 首先簡單說下Task和Activity的關係。 Task就像一個容器,而Activity就相當與填充這個容器的東西,第一個東
原创 疑難字符輸出--adb使用過的命令
&:“&”別漏了“;” @:\@ 1、 ---> adb shell ---> ps (該命令會列出所有正在跑的進程) 選擇你Service所在的進程Id(比如爲 9275) ----> kill 該i
原创 漢諾塔
public class TowerOfHanoi { void hanoi(int n,char origin,char assist,char destination) { if (n == 1) { move(
原创 RawResTest--訪問assets下的資源
package org.crazyit.res; import java.io.IOException; import android.app.Activity; import android.content.res.AssetFil
原创 Compass-指南針(主要用到RotateAnimation和SensorEventListener)
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" andr
原创 XmlResTest--解析XML
package org.crazyit.res; import java.io.IOException; import org.xmlpull.v1.XmlPullParserException; import android.a
原创 SearchView
平板中 myView = getLayoutInflater().inflate(R.layout.search_view, null); mSearchView = (SearchView) myView.findViewById(