- 浏览: 182286 次
- 性别:
- 来自: 上海
最新评论
-
夜曲6763:
还是不行啊
'mvc:annotation-driven' must have no character or element information item [chil -
jimmyteal:
表示向一个对象数组存放一错误类型的对象时的异常。
例如,下面代 ...
问题 set toArray -
の小飞べ:
你的问题是怎么解决的?我的程序也报了这个错,让人很头大
org.hibernate.NonUniqueObjectException: a different object with the same ide -
kfc_davy:
对了如果这样,就没有问题
public abstract ...
STRUTS2 使用泛型有点问题,HELP -
kfc_davy:
shinelgz 写道这样做是当你点击a标签时,
让a标签的默 ...
js修改onclick
文章列表
tabhost 按住的效果
- 博客分类:
- android
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 ...