`
文章列表

获得联系人

 
String contactId ; private List<PeopleInfo> getContactsInfo(){ List<PeopleInfo> list = new ArrayList<PeopleInfo>(); //得到ContentResolver对象 ContentResolver cr = getContentResolver(); //取得电话本中开始一项的光标 Cursor cursor = cr.query(ContactsContract ...

旋转对话框

<ProgressBar android:layout_width="wrap_content" android:interpolator="@android:anim/linear_interpolator" style="@style/ProgressBar" android:layout_height="wrap_content" />   style:   <?xml version="1.0&quo ...

学习网站

http://www.cyqdata.com/android/article-detail-25069

Animation

http://gundumw100.iteye.com/category/156622   http://stars.blog.51cto.com/1966388/1073372(收藏动画)     帧动画,xml文件:animation_left      animation-list:   <?xml version="1.0" encoding="utf-8"?> <animation-list xmlns:android="http://schemas.android.com/apk/ ...

Calendar

private static final SimpleDateFormat formatTimeAA = new SimpleDateFormat(" hh:mm aa MM/dd",Locale.ENGLISH); public Date getDate(String time,int hour) { String AA = " AM"; if(hour>11){ AA = " PM"; if(hour>12) ...
得到当前大小:   String size = Formatter.formatFileSize(Demo.this,123); Log.d("test", "size"+ size );

定时器

定时器:   http://www.cnblogs.com/jqyp/archive/2011/06/14/2080543.html

android疑难问题

android疑难问题   http://blog.csdn.net/pilou5400/article/category/744659

软键盘的问题

显示软键盘: InputMethodManager imm = (InputMethodManager)this.getSystemService(Context.INPUT_METHOD_SERVICE); imm.toggleSoftInput(0, InputMethodManager.HIDE_NOT_ALWAYS); imm.showSoftInput(myview, InputMethodManager.SHOW_IMPLICIT);     隐藏软键盘: imm.hideSoftInputFromWindow(view. ...
dialog 的 textview 弹出软键盘     InputMethodManager imm = (InputMethodManager)getSystemService(INPUT_METHOD_SERVICE);         imm.showSoftInputFromInputMethod(editTextView.getWindowToken(), 0);
客户端显示服务器端的特殊字符: 比如:< & >登时,客户端解析到的是&lt;  &amp; &gt; 显示时可以使用:Html.fromHtml()就行。

android 加载模式

android 加载模式: http://marshal.easymorse.com/archives/2950   http://dev.10086.cn/cmdn/bbs/thread-36313-1-1.html   1、standard模式,也就是默认模式,不需要配置launchMode               intent将发送给新的实例。 2、singleTop:               singleTop和standard模式,都会将intent发送新的实例;                singleTop要求如果创建intent的时候栈顶已经有要创 ...

多方向 抽屉

多方向 抽屉 http://www.oschina.net/question/54100_28627
使用TextWatcher 的时候, class MonthlyQuotaTextWatcher implements TextWatcher{   @Override  public void afterTextChanged(Editable s) {   String str = quotaEditText.getText().toString().trim();   int length = str.length();   if(length > 1){    String st = str.substring(0, 1);    if( length > 1 & ...

nfc 开发

Android NFC开发实战 学习: http://www.android123.com.cn/androidkaifa/1002.html     http://my.oschina.net/mr81/blog/32674
Global site tag (gtag.js) - Google Analytics