-
android 五子棋的程序,写着玩,可能有bug,所以就这样了
android 五子棋的程序,写着玩,可能有bug,所以就这样了-android Gobang
- 2023-02-20 18:55:04下载
- 积分:1
-
android
android开发相关文档,android学习基础文档、界面切换效果总结(the book of android)
- 2013-09-09 08:37:24下载
- 积分:1
-
Layout_01
Android布局详解介绍linerlayout(android Layout)
- 2011-10-01 00:47:03下载
- 积分:1
-
Android 串口调试 APK
应用背景自动识别所有的串口,多串口收发。包含JNI。关键技术Android访问低层文件
Android串口数据收发
- 2023-03-08 02:45:03下载
- 积分: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 屏幕旋转(改变屏幕方向)
Android 屏幕旋转实例,改变屏幕方向,这个和平时的锁定屏幕方向有关联,其基本的实现思路如下:
public void onConfigurationChanged(Configuration newConfig) {
Toast.makeText(this, "系统的屏幕方向发生改变", Toast.LENGTH_LONG).show();
updateEditText();//更新EditText显示的内容
super.onConfigurationChanged(newConfig);
}
public void updateEditText(){
int o = getRequestedOrientation();//获取屏幕朝向
switch(o){ //判断屏幕当前朝向
case ActivityInfo.SCREEN_ORIENTATION_PORTRAIT:
et.setText("当前屏幕朝向为:PORTRAIT");
break;
case ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE:
et.setText("当前屏幕朝向为:LANDSCAPE");
break;
}
}
- 2023-09-06 06:05:03下载
- 积分:1
-
android progressBar 进度条实例下载
android progressBar 进度条实例,适合入门级朋友学习
- 2013-03-23下载
- 积分:1
-
Android 自动更新
这是Android自动更新代码,没有使用系统的DownloadManager,而是自己写的下载更新,可以满足很多APP的更新需求,
- 2022-03-24 23:57:15下载
- 积分:1
-
引导页和日历及GridView的拖动、仿qq侧滑菜单
模仿微信引导页,日历查看,GridView的拖动
- 2015-06-12下载
- 积分:1
-
PiedPiper类飞鸽局域网文件传输
类似于飞鸽的局域网及时聊天工具可传输文件
- 2022-12-06 16:25:03下载
- 积分:1