preload
Jul 23

閬鋆 ADW Launcher 唳芋砍其憭望

adb install ~/ADWLauncher_cm508_mdpi_1.0.1.apk
1347 KB/s (788730 bytes in 0.571s)
pkg: /data/local/tmp/ADWLauncher_cm508_mdpi_1.0.1.apk
Failure [INSTALL_FAILED_ALREADY_EXISTS]

adb install -r

撠勗臭誑對嚗

adb install -r /Users/justin/Downloads/ADWLauncher_cm508_mdpi_1.0.1.apk
1309 KB/s (788730 bytes in 0.588s)
 pkg: /data/local/tmp/ADWLauncher_cm508_mdpi_1.0.1.apk
Success
Tagged with:
Jun 30

AndroidManifest.xml

<intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.HOME" />
    <category android:name="android.intent.category.DEFAULT" />
</intent-filter>
Tagged with:
Jun 29

android getVersionName
————

public String getVersionName(Context context, Class cls)	{	try {	 ComponentName comp = new ComponentName(context, cls);	 PackageInfo pinfo = context.getPackageManager().getPackageInfo(comp.getPackageName(), 0);	 return pinfo.versionName;	} catch (android.content.pm.PackageManager.NameNotFoundException e) {	 return null;	}}
Tagged with:
Jun 25
<TextView android:text="蝚砌銵\n蝚砌銵\n蝚砌銵"
		android:id="@+id/newline"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:textSize="16sp"
		android:textColor="#FFF" />

嚗瘜冽瘀汞clipse鋆∠layout閬賣臭憿舐內箸嚗閬曉蚩mulator銝箔

Tagged with:
Jun 24

瘨斗憿

requestWindowFeature(Window.FEATURE_NO_TITLE);

瘨斤

getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);

getWindow() 踹 Window object
setFlag() 蝯虫 Window 撅祆
WindowManager.LayoutParams.FLAG_FULLSCREEN銵函內箄身摰刻W

蝔撘蝣潭曉矣nCreate敺嚗setContentView
蝭靘蝣潘

public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
 
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
 
    setContentView(R.layout.info);
}

ref1: 望孵憸刻: Android 函撘刻W雿瘜
ref2: Android hidden title bar comes back – Stack Overflow

Tagged with:
Jun 24

寞銝嚗

Intent piIntent = new Intent();
piIntent.setClass(this, ProgramInfoActivity.class);
startActivity(piIntent);

寞鈭嚗

startActivity(new Intent(this, ProgramInfoActivity.class));
Tagged with:
Jun 07

[蝑閮]Android emulator撣貊冽隞方撌 竄 游
[敹]Android璅⊥砍災db賭誘隞蝝 @ 銝剔憯怎貊版 :: 摰a PIXNET ::

暹獢脫芋砍函SDCard

adb push canon.mp3 sdcard/