刷新 報錯 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 不一定執行