-
android在WiFi下手机与电脑的socket通信
在wifi局域网下,手机可以和电脑通过socket通信。手机做服务端,电脑做客户端;也可以反过来,电脑做服务端,手机做客户端。下面介绍的是手机作为服务端,电脑使用MFC编程作为客户端,原理是,手机建立一个ServerSocket,并获取自己的ip地址和端口port;然后电脑通过socket连接手机的ip:port。
- 2014-07-02下载
- 积分:1
-
闹钟实现
闹钟实现
- 2021-02-20 10:39:43下载
- 积分:1
-
BaiduMapApi_All_Android_1.3.5
百度地图Android开发1.3.5版本的所有Api ,可以很方便的帮助大家学习开发百度地图Android版,BaiduMapApi_All_Android_1.3.5
- 2022-06-27 18:54:42下载
- 积分:1
-
滑动效果
滑动效果
- 2015-01-18下载
- 积分:1
-
android 声波通讯例子源码下载
android 声波通讯例子源码下载
- 2014-09-25下载
- 积分:1
-
android高仿微信源码
Android高仿微信源码,可以从该份代码中学习安卓App开发技术,喜欢的可以下载来玩。
有问题的话可以一起探讨。
- 2022-06-28 16:22:11下载
- 积分:1
-
Android-Total(5)
关于android开发技巧总汇系系列5,内容总结的不错,值得参考(Department on android development skills confluence Series 5, the content summary of good, valuable reference)
- 2013-07-12 12:56:58下载
- 积分: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
-
高仿京东商城
高仿京东商城
- 2015-10-13下载
- 积分:1
-
星星投票组件及前台功能展现android源代码
星星投票组件及前台功能展现android源代码,类似现在很多网站上的投票功能,淘宝购物上面有,点击星星会变色,本源码主要实现这一功能,当然若需要投票成功,还需要数据库支持。部分代码如下所示:
public void onRatingChanged(RatingBar ratingBar, float rating,
boolean fromUser)
{
smallRatingBar.setRating(rating);
indicatorRatingBar.setRating(rating);
if (ratingBar.getId() == R.id.ratingbar1)
textView.setText("ratingbar1的分数:" + rating);
else
textView.setText("ratingbar2的分数:" + rating);
}
- 2022-06-13 05:38:43下载
- 积分:1