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

百度消息推送

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

代码说明:

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

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

发表评论

0 个回复

  • android 测身高标准体重 示例源码
    android 测身高标准体重 示例源码
    2014-04-16下载
    积分:1
  • android EditText加减demo
    android EditText加减demo
    2015-05-13下载
    积分: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
  • 语音识别转文字实例源码(基于科大讯飞)
    讯飞语音云语音听写学习Demo,可以实现简单的语音识别以及合成。将人说话的声音转化为文字,并且可以根据文字合成语音朗读出来。简单可用,方便移植。比官方Demo简化了很多。
    2019-10-30下载
    积分:1
  • 仿微信APP完整实例源码
    通过对本实例源码的深入学习研究,了解和掌握一个完整的安卓APP是如何制作出来的,源码内附详细注释。
    2017-08-04下载
    积分:1
  • 微博安卓源码下载(社交分享)
    口袋微博
    2014-12-14下载
    积分:1
  • 语言政策包(jce_policy-8.zip)
    【实例简介】
    2021-08-06 00:31:06下载
    积分: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
  • android gridview 实例
    girdview 读取 数组中数据 至 gridvew显示
    2013-03-16下载
    积分:1
  • android aidl跨进程调用 完整源码下载(含客户端和服务端源码)
    这两天在学习aidl跨进程调用,研究了一天终于写出了个helloword。。做下记录吧。根据官方提供的指南,开发aidl跨进程调用,主要分以下步骤:1.         创建.aidl文件-该文件(YourInterface.aidl)定义了客户端可用的方法和数据的接口。2.         在makefile文件中加入.aidl文件-(Eclipse中的ADT插件提供管理功能)Android包括名为AIDL的编译器,位于tools/文件夹。3.         实现接口-AIDL编译器从AIDL接口文件中利用Java语言创建接口,该接口有一个继承的命名为Stub的内部抽象类(并且实现了一些IPC调用的附加方法),要做的就是创建一个继承YourInterface.Stub的类并且实现在.aidl文件中声明的方法。4.         向客户端公开接口-如果是编写服务,应该继承Service并且重载Service.onBind(Intent) 以返回实现了接口的对象实例上面的东西真的很官方。。下面结合我的例子做一下学习总结:先开发服务器端1.创建一个aidl文件,可以看提供的源码。创建完成后,eclipse插件自动在gen目录下生成同名字的java文件。里面包含一个Stub抽象类,这个类继承自android.os.Binder,这个类是实现整个远程调用的核心。2.然后创建一个类来继承上面说到的那个Stub抽象类,实现里面的抽象方法。(这些抽象方法是根据aidl文件自动生成的)。3.创建一个自定义Service继承自Service,实现其onBind方法,注意此onBind方法必须返回第二步创建的那个Stub类的子类。然后在xml中声明此service,注意此service的声明必须包含一个action,此action也用于客户端的调用使用。(在下面的客户端开发中会有介绍)。4.创建一个activity,此activity只要实现把service启动了即可。这样服务器端就开发完毕,运行后启动了一个可供远程调用的service。关键还是通过onBind暴露一个Binder给客户端。Binder哪来呢?就是通过aidl文件adt会自动生成一个抽象类Stub继承自Binder,只需要创建一个类实现这个Stub的抽象方法即可。然后开发客户端:1.客户端也需要一个aidl文件,注意客户端的aidl文件的包名必须和服务器端的aidl包名一致,名字也相同。创建完后同样会在gen下生成一个接口。2.创建一个Activity,包含变量ServiceConnection con,实现其onServiceConnected和onServiceDisconnected方法,onServiceConnected方法生成第一步那个接口的实现类的对象。con对象用于在onCreate中绑定service,这个service的action必须为服务器端声明的那个service的配置action。绑定中用到con会执行onServiceConnected方法生成aidl对象iPerson。然后就可以通过iPerson来调用aidl里的任意方法返回服务器的东西。客户端开发完毕。关键点是创建aidl文件自动生成了一个接口,在activity中必须绑定服务程序开启的service,在绑定过程中初始化aidl对象。然后就可用aidl对象调用任意方法了。OK,可以运行看效果了。过程真的很繁琐。。但是好像也只能这样了。最主要的还是服务端onBind暴露,然后客户端bindService得到aidl对象。
    2020-12-01 17:29:26下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载