`
kfc_davy
  • 浏览: 182286 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表
m_tabHost.getTabWidget().getChildAt(i) .setBackgroundResource(R.drawable.selector_tab_background); <?xml version="1.0" encoding="utf-8"?> <selector   xmlns:android="http://schemas.android.com/apk/res/android">              <item         android:st ...

多线程下载

http://blog.csdn.net/wanglong0537/article/details/6411565 url connection con.setRequestProperty("Range", "bytes=" + startPosition + "-" + endPosition); file fos = new RandomAccessFile(file, "rw"); fos.seek(startPosition);
root权限下面 使用命令 mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
getWindow().setFormat(PixelFormat.RGBA_8888); see http://longshuai2007.blog.163.com/blog/static/14209441420117221117508/
deb http://cz.archive.Ubuntu.com/ubuntu hardy-updates main multiverse add in /etc/apt/sources.list
If you meet this error when trying the build your android code: make: Entering directory `/bsp/Project_Name' build/core/main.mk:7: You are not using bash - builds will fail build/core/main.mk:8: *** Stop.  Stop. make: Leaving directory `/bsp/Project_Name' Previous version of Android seems ...
在/etc/udev/rules.d/目录下创建51-android.rules SUBSYSTEM=="usb", SYSFS{idVendor}=="19D2", MODE="0666" 就可以读出来设备
WindowManager.LayoutParams localLayoutParams = getWindow().getAttributes(); System.out.println(localLayoutParams.screenBrightness); localLayoutParams.screenBrightness = new Random(System.currentTimeMillis()).nextInt(10)*1F/10F; getWindow().setAttributes(localLayoutP ...
PendingIntent.FLAG_UPDATE_CURRENT 遇到过的人都懂的!
void android.content.Context.startActivity(Intent intent) Launch a new activity. You will not receive any information about when the activity exits. Note that if this method is being called from outside of an android.app.Activity Context, then the Intent must include the Intent.FLAG_ACTIVITY_NEW_TA ...
拉不动,一拉就抖三抖 getview里面最好inflate一个view,抖动接解决了貌似
BitmapDrawable localBitmapDrawable = new BitmapDrawable(paramBitmap); 原本的density 引用paramBitmap240 变成了 引用localBitmapDrawable 160 lookit /** * Create drawable from a bitmap, setting initial target density based on * the display metrics of the resources. */ public BitmapD ...
不要用staticfields 说不定什么时候被回收了 - -b
    对于能够显示文字的控件(如TextView EditText RadioButton Button CheckBox Chronometer等等),你有时需要控制字体的大小。Android平台定义了三种字体大小。 java代码: "?android:attr/textAppearanceLarge" "?android:attr/textAppearanceMedium" "?android:attr/textAppearanceSmall"        使用方法为: java代码: android:textAppea ...
见 SectionIndexer
Global site tag (gtag.js) - Google Analytics