登录
首页 » Java » 百度消息推送

百度消息推送

于 2014-10-10 发布
0 249
下载积分: 1 下载次数: 0

代码说明:

用百度开放云实现Android消息推送机制

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

发表评论

0 个回复

  • 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-01-22下载
    积分:1
  • android连接mysql数据库例子
    android连接mysql数据库例子
    2015-12-14下载
    积分:1
  • android控制电脑PPT 完整源码(无线鼠盘)
    此实例含pc端源码和android源码,pc端的源码是C#语言,实现了 无线输盘 控制电脑等功能
    2014-11-18下载
    积分:1
  • 视频压缩
    视频压缩
    2013-11-03下载
    积分:1
  • android listview 下拉刷新 实例源码下载
    android listview 下拉刷新 实例源码下载
    2015-02-26下载
    积分:1
  • android 百度地图搜索自定义周边 例子源码下载
    android 百度地图搜索自定义周边 例子源码下载
    2015-05-12下载
    积分:1
  • android 4.4 通过拍照、相册 设置头像实例源码下载(亲测通过)
    该实例成功解决了 android 4.4 系统 选择照片后  截图失败问题,这是路径取值问题, 详细看代码吧
    2015-02-13下载
    积分:1
  • java socket类源码
    java socket类源码
    2013-10-31下载
    积分:1
  • 百度地图定位DEMO
    百度官方地位DEMO
    2015-06-13下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载