`
文章列表
android:configChanges="orientation|keyboardHidden|screenSize" 后面多个参数 screenSize

fastboot

Replace boot.img In directory out\target\product\project_name\ Execute: fastboot erase boot fastboot flash boot boot.img
<activity             android:name=".UnisVideoPlayer"             android:excludeFromRecents="true"            android:configChanges="orientation|keyboardHidden"             android:label="@string/app_name"             android:screenOrientation="landsca ...
05-24 15:14:19.569: E/JavaBinder(194): Transact on 0x4897e0 in Java object 0x408b1888 with code 1 failed 05-24 15:14:19.569: E/JavaBinder(194): !!! FAILED BINDER TRANSACTION !!! 05-24 15:14:19.569: E/BinderProxy(194):       android.os.BinderProxy.callback(Binder.java:369)] 05-24 15:14:19.569: E/Binde ...
///////////////////////////////////////////////////桌面快捷方式///////////////////////////////////////// private void addShortcut(){ Intent shortcut = new Intent("com.android.launcher.action.INSTALL_SHORTCUT"); //快捷方式的名称 shortcut.putExtra(Intent.EXTRA_SHORTCUT_NAME, getString(R.string.app_nam ...

android tcpdump

1、adb remount 2、adb push tcpdump /data/local/ 3、adb shell chmod 6755 /data/local/tcpdump (root) 4、adb shell tcpdump -p -vv -s 0 -w /sdcard/capture.pcap

android logcat

save logcat 1. adb logcat -c // 2. adb logcat>log.txt operation logs will output to log.txt command detail Option Description -b <buffer> 加载一个可使用的日志缓冲区供查看,比如event 和radio . 默认值是main 。具体查看Viewing Alternative Log Buffers. -c 清楚屏幕上的日志. -d 输出日志到屏幕上. -f <filename> 指定输出日志信息的<filenam ...

use source insight

1. Open source insight 2. Select project and "add all" source code. 3. Synchronize all methods
                        PackageManager pManager = MessageSendActivity.this.getPackageManager();                                       /*********************查询手机内所有支持分享的应用*********************/                    List<ResolveInfo> resolveList  = Utils.getShareApps(MessageSendActivity.th ...
Initial Environment: 1. Installing the JDK $ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner" $ sudo apt-get update $ sudo apt-get install sun-java6-jdk 2.Installing required packages on unbuntu 10.10 $ sudo ln -s /usr/lib32/mesa/libGL.so.1 /usr/lib32/mesa/libGL.so ...
1.初始化OnAudioFocusChangeListener private OnAudioFocusChangeListener mAudioFocusChangeListener = new OnAudioFocusChangeListener() { public void onAudioFocusChange(int focusChange) { mPlayerControl.pause(); } }; 2.当播放时发出请求 public void start() { mAudioManager.requestAudioFocus(mAudio ...
1、Drawable → Bitmap 的简单方法 ((BitmapDrawable)res.getDrawable(R.drawable.youricon)).getBitmap(); 2、Drawable → Bitmap Java代码 public static Bitmap drawableToBitmap(Drawable drawable) {                    Bitmap bitmap = Bitmap                          .createBitmap(                               ...
Rect bounds = new Rect(); Paint textPaint = textView.getPaint(); textPaint.getTextBounds(text,0,text.length(),bounds); int height = bounds.height(); int width = bounds.width();
eclipse->help->Eclipse MarketPlace-> input "uml" and search
1.\packages\apps\Launcher3以此为例,当编译多次时系统会不再重新编译,是本人在实际操作中遇到的,想了很多办法, 用过mm -W,把所以文件认为最新,但基本不起作用,后来发现在manifest中做点改动是可以的,比如改下app_name
Global site tag (gtag.js) - Google Analytics