登录
首页 » Java » android 猜名字 有奖例子 完整源码

android 猜名字 有奖例子 完整源码

于 2013-07-22 发布
0 295
下载积分: 1 下载次数: 0

代码说明:

一个简单的android 实例,用RadioButton 以及RadioGroup实现                              

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • android 百度地图定位SDK实例源码下载(geosdk实例)
    百度地图定位sdk 实例源码
    2014-05-24下载
    积分:1
  • android 操作 wifi 教程以及项目源码下载
    在Android中对Wifi操作,android本身提供了一些有用的包,在android.net.wifi包下面。简单介绍一下:大致可以分为四个主要的类ScanResult,wifiConfiguration,WifiInfo,WifiManager(1)ScanResult,主要是通过wifi 硬件的扫描来获取一些周边的wifi 热点的信息。(2)wifiConfiguration 在我们连通一个wifi 接入点的时候,需要获取到的一些信息。大家可以跟我们有线的设备进行对比一下。(3)WifiInfo 在我们的wifi 已经连通了以后,可以通过这个类获得一些已经连通的wifi 连接的信息获取当前链接的信息,这里信息就比较简单了,这里简单介绍一下这里的方法:       getBSSID() 获取BSSID       getDetailedStateOf() 获取客户端的连通性       getHiddenSSID() 获得SSID 是否被隐藏       getIpAddress() 获取IP 地址       getLinkSpeed() 获得连接的速度       getMacAddress() 获得Mac 地址       getRssi() 获得802.11n 网络的信号       getSSID() 获得SSID       getSupplicanState() 返回具体客户端状态的信息(4)wifiManager 这个不用说,就是用来管理我们的wifi 连接,这里已经定义好了一些类,可以供我们使用。这里来说相对复杂,里面的内容比较多,但是通过字面意思,我们还是可以获得很多相关的信息。这个类里面预先定义了许多常量,我们可以直接使用,不用再次创建。介绍完了,开始写一个Demo吧。程序已启动效果图如下:看代码,其中有注释,我就不多说了。布局文件代码:= mWifiConfiguration.size()) {                        return;                }                // 连接配置好的指定ID的网络                mWifiManager.enableNetwork(mWifiConfiguration.get(index).networkId,                                true);        }        // 得到MAC地址        public String getMacAddress() {                return (mWifiInfo == null) ? "NULL" : mWifiInfo.getMacAddress();        }        // 得到接入点的BSSID        public String getBSSID() {                return (mWifiInfo == null) ? "NULL" : mWifiInfo.getBSSID();        }        // 得到WifiInfo的所有信息包        public String getWifiInfo() {                return (mWifiInfo == null) ? "NULL" : mWifiInfo.toString();        }        // 添加一个网络并连接        public int addNetwork(WifiConfiguration wcg) {                int wcgID = mWifiManager.addNetwork(mWifiConfiguration.get(3));                mWifiManager.enableNetwork(wcgID, true);                return wcgID;        }}复制代码AndroidManifest.xml:(注意需要添加的权限)                                                                                                                                                                                                                复制代码布局文件就不贴了,我想看界面你都可以自己写出来,如果有需要,这里可以下载源代码:
    2013-09-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
  • android 仿哔哩哔哩源码实例,附源码,截图
    android 仿哔哩哔哩源码实例,附源码,截图
    2015-06-17下载
    积分:1
  • 视频监控相关源码
    视频监控相关源码
    2014-09-22下载
    积分:1
  • 网络下载图片02
    网络下载图片02
    2015-04-22下载
    积分:1
  • Android ExpandableList 例子下载 列表
    Android ExpandableList 例子下载 列表
    2013-08-14下载
    积分:1
  • Android录制视频源码
    Android录制视频源码
    2015-06-17下载
    积分:1
  • 《第一行代码——Android(第3版)》随书资源.zip
    【实例简介】《第一行代码——Android(第3版)》
    2021-09-05 00:30:59下载
    积分:1
  • android布局中动态添加控件
    android布局中动态添加控件
    2015-04-22下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载