-
android camera 摄像头拍照例子源码
android camera 摄像头拍照例子源码
- 2014-11-10下载
- 积分:1
-
Android 蓝牙连接,解决数据报文分段 实例源码
Android 蓝牙连接,解决数据报文分段 实例源码
- 2014-08-29下载
- 积分:1
-
android 异步post发送请求获取json
异步post发送请求获取json,有完整的demo,完整的jar包
- 2014-10-21下载
- 积分:1
-
android联系人带字母检索源码
android联系人带字母检索源码/** * 联系人列表适配器。 * * @author guolin */public class ContactAdapter extends ArrayAdapter { /** * 需要渲染的item布局文件 */ private int resource; /** * 字母表分组工具 */ private SectionIndexer mIndexer; public ContactAdapter(Context context, int textViewResourceId, List objects) { super(context, textViewResourceId, objects); resource = textViewResourceId; } @Override public View getView(int position, View convertView, ViewGroup parent) { Contact contact = getItem(position); LinearLayout layout = null; if (convertView == null) { layout = (LinearLayout) LayoutInflater.from(getContext()).inflate(resource, null); } else { layout = (LinearLayout) convertView; } TextView name = (TextView) layout.findViewById(R.id.name); LinearLayout sortKeyLayout = (LinearLayout) layout.findViewById(R.id.sort_key_layout); TextView sortKey = (TextView) layout.findViewById(R.id.sort_key); name.setText(contact.getName()); int section = mIndexer.getSectionForPosition(position); if (position == mIndexer.getPositionForSection(section)) { sortKey.setText(contact.getSortKey()); sortKeyLayout.setVisibility(View.VISIBLE); } else { sortKeyLayout.setVisibility(View.GONE); } return layout; } /** * 给当前适配器传入一个分组工具。 * * @param indexer */ public void setIndexer(SectionIndexer indexer) { mIndexer = indexer; }}
- 2014-04-13下载
- 积分:1
-
android 仿新浪源代码下载(SlidingMenu)
fragment viewpage
- 2015-04-30下载
- 积分:1
-
android音乐播放器 源码下载
[实例简介]android音乐播放器 实现了 播放音乐 扫描本地音乐 音乐列表 收藏等功能 ,扫描本地歌曲的时候 出现乱码现象,其它的参考还不错,有参考价值 [实例截图] [核心代码]
- 2015-04-10下载
- 积分:1
-
android 异步 执行 任务 例子 附讲解
Rules::The AsyncTask instance must be created in UI thread. .execute must be invoked on the UI thread.Never call objMyTask.onPreExecute(), objMyTask.doInBackground(), objMyTask.onProgressUpdate(), objMyTask.onPostExecute manually.The AsyncTask can be executed only once (an exception will be thrown if a second execution is attempted.)AsyncTask have Four Main Method... onPreExecute() doInBackground() onProgressUpdate() onPostExecute() onPreExecute-This method is called first when you start AsyncTask using objAsync.execute().And mostly this method is use for initializing dialog(ProgressDialog,CustomDialog) and showing. doInBackground-The main purpose of AsyncTask is accomplished by this method.Any non-UI thread process is running in this method.Such as Rss Feed Reader,Image and video Uploading and Downloading.You cant handle your View in this method.Because this method is non-UI thread.While any background process is running if you want to handle UI therea are onProgressUpdate method. after completion of process this method send result to OnPostExecute. onProgressUpdate-While backgrounding task is running ,you can handle your UI using this method .Such as status of downloading or uploading task.and this method is called from doInBackground.Using publishProgress() you can call onProgressUpdate method to update UI while process is running. onPostExecute -This method is called after the background computation finishes.The result of background process in passed in this method as parameters.And now you can dismiss progress dialog ,to indicate that background task is completed. You can cancel AsyncTask using objAsyncTask.cancel().then you just check in doInBackground, if (isCancelled()) { break; } else { //continue... } See this Image For more Clear.
- 2013-07-05下载
- 积分:1
-
listview 滑动分页示例源码
android 滑动分页
- 2014-04-13下载
- 积分:1
-
android 省市区三级联动效果
android 省市区三级联动效果
- 2014-05-30下载
- 积分:1
-
薛定宇-《控制数学问题的 MATLAB求解》第二版 源代码
薛定宇-《控制数学问题的 MATLAB求解》第二版 全书配套源代码
- 2019-04-15下载
- 积分:1