-
android listview 示例源码下载
android listview 示例源码下载
- 2014-04-08下载
- 积分: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
-
android txt阅读 例子源码
android txt阅读 例子源码
- 2015-04-06下载
- 积分:1
-
android 4.4 通过拍照、相册 设置头像实例源码下载(亲测通过)
该实例成功解决了 android 4.4 系统 选择照片后 截图失败问题,这是路径取值问题, 详细看代码吧
- 2015-02-13下载
- 积分:1
-
android 唐诗宋词 app 完整源码下载
android 唐诗宋词 app 完整源码下载
- 2015-05-16下载
- 积分:1
-
android 解析 Rss xml 例子
android 解析 Rss xml 例子
- 2013-07-05下载
- 积分:1
-
解析网络图片
解析网络图片
- 2020-11-10 20:39:46下载
- 积分:1
-
android 左右侧滑动菜单 效果实现 有图有源码
1、简介我们时常看到Android的一些菜单的设置 可以左右滑动,如下图。要实现下面的效果我们可以获得许多的实现在github 通过 收索 “SlidingMenu”。本实验是在http://www.github.com/TangKe/SlideMenu基础上该的。 本次实验的实验的效果 2、具体的实现。 本次实验的基础是在上面提供的资源和code,应用到我们实验上面。(1)、BaseSlideMenu public class BaseSlideMenu extends FragmentActivity{private SlideMenu slideMenu;@Overrideprotected void onCreate(Bundle arg0) { // TODO Auto-generated method stub super.onCreate(arg0); setContentView(R.layout.layout_slidemenu);}@Override public void onContentChanged() { // TODO Auto-generated method stub super.onContentChanged(); slideMenu=(SlideMenu) findViewById(R.id.slideMenu); }public void setSlideRole(int res){ if (null==slideMenu) { return; } getLayoutInflater().inflate(res, slideMenu,true);}public SlideMenu getSlideMenu(){ return slideMenu;}} (2)、MainActivity public class MainActivity extends BaseSlideMenu {@Overridepublic void onContentChanged() { // TODO Auto-generated method stub super.onContentChanged(); System.out.println(">>>>"); setSlideRole(R.layout.activity_main); setSlideRole(R.layout.layout_primary_menu); setSlideRole(R.layout.layout_secondary_menu);} }(3)activity_main 注意: 在MainActivity中的三个布局都要 在根结点上面都要有 主界面 slidemenudemo:layout_role="content" 左菜单 slidemenudemo:layout_role="primaryMenu" 右菜单 slidemenudemo:layout_role="secondaryMenu"注意:super.onContentChanged(); 一定要覆盖...
- 2013-07-16下载
- 积分:1
-
java 仓库管理系统源码(含sql server数据库)
Java,sql编写的仓库管理系统,附加数据库后 ,登录账号:wyt 密码:001 系统介绍三只松鼠超市管理系统是一款辅助超市管理员管理超市的实用性项目,根据超市的日常管理需要,超市管理系统应包括基本档案管理、采购订货管理、仓库入库管理、仓库出库管理、人员管理、部门管理6大功能。其中基本档案管理又分为供货商管理、销售商管理、货品档案管理、仓库管理,为管理员提供日常基本信息的功能,采购订货管理模块,用来对日常的采购订货信息进行管理,仓库入库管理,管理各种商品入库的信息,仓库出库管理,管理商品出库记录,人员管理,实现对员工的管理,部门管理实现对超市的各个独立部门进行管理。 操作流程(1)进入主窗体可通过主窗体中的功能导航菜单进入“基本档案”管理子模块,在基本档案管理模块中又包含“供货商管理”、“销售商管理”、“货品档案管理”、“仓库管理”功能。(2)当用户单击主窗体中功能导航菜单中的“采购订货”按钮,可进入采购订货子模块。(3)主窗体的功能导航菜单中还包含有“仓库入库”、“仓库出库”、“人员管理”、“部门管理”内容。(4)每一个模块都实现了其添加、删除、修改功能。便于进行管理。
- 2018-01-05下载
- 积分:1
-
android 创建桌面快捷方式源代码
android 创建桌面快捷方式源代码
- 2014-10-10下载
- 积分:1