刷新 报错 HeaderViewListAdapter java.lang.IndexOutOfBoundsException:
why need select first row
ListView
center_vertical 当心搞反
一个 view 时好调,几个view 时候,不能定位,需要套layout
why margin is invalid
http://eggie5.com/8-hook-share-picture-via-menu-android
Customize "share picture via" menu on Android
new File(new URI(androidURI.toString()));
但是对 gallery 旋转的图片是content: schema,需要通过provider 查询
反过来可以
Uri.fromFile(new File("/sdcard/cats.jpg")
Uri.parse(new File("/sdcard/cats.jpg").toString())
http://www.pocketmagic.net/?p=1707
getImage.setType("image/*");
getImage.setAction(Intent.ACTION_PICK);
AddBlogActivity.this.startActivityForResult(getImage, FROM_FILE);
7b571d
123 87 29
颜色问题 ,误差
小尺寸误差 格式RGB
refresh gallery
center_vertical ,常见错误
http://eggie5.com/8-hook-share-picture-via-menu-android
Customize "share picture via" menu on Android
http://www.higherpass.com/Android/Tutorials/Accessing-Data-With-Android-Cursors/3/
String[] projection = new String[] {
Browser.BookmarkColumns.TITLE
, Browser.BookmarkColumns.URL
};
Cursor mCur = managedQuery(android.provider.Browser.BOOKMARKS_URI,
projection, null, null, null
);
mCur.moveToFirst();
int titleIdx = mCur.getColumnIndex(Browser.BookmarkColumns.TITLE);
int urlIdx = mCur.getColumnIndex(Browser.BookmarkColumns.URL);
while (mCur.isAfterLast() == false) {
view.append("n" + mCur.getString(titleIdx));
view.append("n" + mCur.getString(urlIdx));
mCur.moveToNext();
}
resolve svn confict ,only need resolve it .
创建patch
refactor code
1 login manager
2 netResponse
起名,起通用的名字,便于copy ,
包含 XML ,可引起 root ,frameParent,listParent
1 why do not use response object first ,does not know its object . use net message
drawable color
we can use color resource directly .
we also can define drawable in color xml
android:cacheColorHint = "@color/listBg"
but ,why listView show error UI, then we use shape ,but its width is too wide
TypedValue.COMPLEX_UNIT_SP ,常量
常见常量 ,Gravity ,View ,LayoutParams
http://www.androiddiscuss.com/
调用activity
android.widget.HeaderViewListAdapter.isEnabled(HeaderViewListAdapter.java:164)
it throw error when 14 ,so it is cause by current index 。
setSelecttion(0) then refersh
05-16 09:01:34.090: INFO/ActivityManager(61): Starting activity: Intent { act=com.android.camera.action.CROP dat=content://media/external/images/media/1 cmp=com.android.gallery/com.android.camera.CropImage }
http://www.apkbus.com/forum.php?mod=viewthread&tid=379
pt: point,是一个标准的长度单位,1pt=1/72英寸
在 Android 中, 1pt 大概等于 2.22sp/dp/px ,72*2.22 = 160 dpi
sp(与刻度无关的像素):与dp类似,但是可以根据用户的字体大小首选项进行缩放。
time display error ,because emulator use GMT timezone and when format time string .
list data
draw image
LinkMovementMethod ,clickspan ,html 多路拦截 ,it should add a click listerer
span TextPain draw object ,only insert object .replace or draw first
MetricAffectingSpan android.text.style.ReplacementSpan
fill parent ,图片
ListView 中 fillparent ?
加了weight 反而小 ,理解概念
分行 ,多行eclipse 问题
jav schema 大小写 ,或关系
ID 问题
aaaaa 没有blank ,但还是在:后分词 why ?
custorm dialog why not wrap ,single line is no ,fill is no
might padding affect centerinParent work
padding 太大了,导致 错误,最后居中,所以无论如何改,都居中 ,
padding affect layout_gravity .but not affect relative center .
注意太大的错误
为什么又不能居中了,应该居中的啊,以后再调吧
ome_edittext.setOnEditorActionListener(new OnEditorActionListener() {
public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
if (actionId == EditorInfo.IME_ACTION_SEND) {
some_button.performClick();
}
return true;
SlidingDrawer类) 滑动抽屉(ti)
http://www.5look.net/blog/archives/120
组件,覆盖在上面,所以一般是 framelayout and relative layout ,warpcontent
浮动按钮
http://www.zhuotx.com/index.php/archives/385
mCameraParameters = mCamera.getParameters();
...
//下面这句乱设置参数可能出错。。不出错的还有(640, 480)、(320, 240)
mCameraParameters.setPictureSize(1280, 960);//拍照得到的照片尺寸
mCameraParameters.setPreviewSize(320, 240);//手持设备屏幕分辨率
...
mCamera.setParameters(mCameraParameters);
这是缺省设置。还是
http://rssbook.blogbus.com/logs/125684759.html
05-19 11:01:58.801: INFO/ActivityManager(61): Starting activity: Intent { act=com.android.camera.action.CROP dat=file:///mnt/sdcard/3.jpg typ=image/* cmp=com.android.gallery/com.android.camera.CropImage (has extras) }
标准的Activity Actions
http://www.cnblogs.com/mite/archive/2010/09/14/1825640.html
why
CropImg mBitmap was null, retreive frm URIfile:///mnt/sdcard/dcim/Camera/2011-05-20_15-48-57_424.jpg
clientID a0000020a538b1 test
why can not debug mobile ,
install . show log
can see sd card
1296 768 ,why not compress size
Jerry2
Jerry3
Jerry4
改成好友数量 需求改变
评论 可以一直更多 reply adapter ,应该继承more 方法,避免重复copy
android icon design
Modern, minimal, matte 不光滑的, tactile, and textured 有质感的
seamless
qifeng
空闲时
progress dialog
face 间隔
search 全部 内容
http://www.javaask.com/mobile/android/2011/0318/4046.html
Ogg 文件
/sdcard gyou/taojindao/pic_cache
why does not return
心跳保持在线 ,不发就掉线。 不用sesstion timeout ,是要支持 用户长时间等待
如果心跳发不出去 ,表示网络断开。 继续发 ,如果连上表示 可以使用 。
调用游戏 ,是否自己控制
log
接口必须加blog ,
重要的接口,共用的,要加
循环的 不要加
相同形式的参数 ,最好定义个input 和 output 对象 ,便于统一修改
sendrequest 修改 baseactivity 参数,很不好
Http client
SchemeRegistry schemeRegistry = new SchemeRegistry();
schemeRegistry.register(new Scheme("http", PlainSocketFactory.getSocketFactory(), 80));
HttpParams params = new BasicHttpParams();
// ConnManagerParams.setMaxConnectionsPerRoute(params, 10000);
ConnManagerParams.setMaxTotalConnections(params, 5);
ConnManagerParams.setTimeout(params, timeoutConnection);
ThreadSafeClientConnManager cm = new ThreadSafeClientConnManager(params, schemeRegistry);
// Set the timeout in milliseconds until a connection is established.
HttpConnectionParams.setConnectionTimeout(params, timeoutConnection);
// Set the default socket timeout (SO_TIMEOUT) // in milliseconds which is the timeout for waiting for data.
HttpConnectionParams.setSoTimeout(params, timeoutSocket);
HttpClient httpClient = new DefaultHttpClient(cm, params);
return httpClient;
Bitmap bitMap = BitmapFactory.decodeResource(context.getResources(), R.drawable.progress) ;
why bitmap size is longer
scale length
Bitmap option
PendingIntent notification
Clearing the stack
task
全局 变量 ,static 变量 ,
destory
service 启动 activy ,
启动 ,
复合 activiy finishFromChild (Activity child)
finishActivity(int requestCode)
会不会连锁关掉?
堆栈中的Activity永远不会重排,只会压入或弹出。
整个任务使用的值是在根activity中设置的
应该可以自己自由维护task 堆栈,
indent set , why can not set in Activiy ?
不可知
onPause() 来将所有持久性数据(比如用户的编辑结果)写入存储之中。ondestroy 不一定执行