摘要:
并不是所有的Android真机中都带有Google Map add-on,要想内置Google Map add-on是需要和google商谈的。在<uses-library>标签中还包含了一个没有公布的属性"android:required",你可以将com.google.android.maps库的这个属性设置为false,即:<!-- The "android:required" attribute was added in API level 5 (Android 2.0) --><uses-library andro 阅读全文
摘要:
package com.qing;import android.content.Context;import android.graphics.Bitmap;import android.graphics.BitmapFactory;import android.graphics.Canvas;import android.graphics.Matrix;import android.graphics.Paint;import android.graphics.Rect;import android.util.AttributeSet;import android.view.MotionEve 阅读全文
摘要:
/** * 屏蔽返回键 */@Overridepublic boolean onKeyDown(int keyCode, KeyEvent event) {switch (keyCode) {case KeyEvent.KEYCODE_HOME:return true;case KeyEvent.KEYCODE_BACK:return true;}return super.onKeyDown(keyCode, event);}/*** 屏蔽Home键*/@Overridepublic void onAttachedToWindow() {getWindow().setType(WindowMa 阅读全文