利用APNS进行消息推送原理APNS 是Apple Push Notification Service(Apple Push服务器)的缩写,是苹果的服务器。APNS推送可以分为三个阶段:第一阶段:推送服务器应用程序把要发送的消息、目的iPhone的标识打包,发给APNS。第二阶段:APNS在自身的已...
                            
                            
                                分类:
其他好文   时间:
2014-11-30 18:29:36   
                                阅读次数:
1018
                             
                    
                        
                            
                            
                                最近做一个RPG类的游戏发现使用EasyTouch虚拟摇杆插件在电脑上点击有效Android上无效,查找资料发现是Easy Joystick中的一个属性interaction type要设置成Direct and event,默认的是Event Notification,也就是事件通知,因为进行的....
                            
                            
                                分类:
移动开发   时间:
2014-11-29 11:40:55   
                                阅读次数:
204
                             
                    
                        
                            
                            
                                select标签设置为disableoption标签设置为selected<selectid="type"name="type"disabled="true"><optionvalue=‘cmd_type_install_app‘>安装类</option><optionvalue=‘cmd_type_notification‘selected>提醒类</option></select>
                            
                            
                                分类:
Web程序   时间:
2014-11-29 07:14:34   
                                阅读次数:
331
                             
                    
                        
                            
                            
                                Android app中通过Broadcast Receiver接受Alarm的定时消息,以便发送Notification;这里发送Notification前要求app自身不在运行状态;检测app自身是否在前台的一个宗旨是:判断app所有的Activity是否有在前台的;...
                            
                            
                                分类:
移动开发   时间:
2014-11-28 21:31:08   
                                阅读次数:
242
                             
                    
                        
                            
                            
                                为了方便新手,虽然很简单,但是我看园内没人写。。。所以就。。。(我也是新手~)其实就是利用activity栈的原理....在mainactivity的onCreat()中写:NotificationManager notificationManager = (NotificationManager)...
                            
                            
                                分类:
移动开发   时间:
2014-11-28 19:47:22   
                                阅读次数:
159
                             
                    
                        
                            
                            
                                在Android4.3以后较为方便,继承NotificationListenerService服务类,该类继承至Service,是一个服务类,当通知栏有新的Notification消息送达、已有消息清除的时候,会回调通知到该类下面的方法。所以需要重写它的两个方法,onNotificationPost...
                            
                            
                                分类:
移动开发   时间:
2014-11-27 20:23:33   
                                阅读次数:
281
                             
                    
                        
                            
                            
                                1 /** 2 * 在状态栏显示通知 3 */ 4 private void showNotification(){ 5 // 创建一个NotificationManager的引用 6 NotificationManager no...
                            
                            
                                分类:
移动开发   时间:
2014-11-27 17:51:03   
                                阅读次数:
184
                             
                    
                        
                            
                            
                                //发送通知NotificationManager manger = (NotificationManager) this.getSystemService(NOTIFICATION_SERVICE);Notification noti = new Notification(R.drawable.i...
                            
                            
                                分类:
移动开发   时间:
2014-11-27 12:41:30   
                                阅读次数:
158
                             
                    
                        
                            
                            
                                最近一直在研究 android ,并一边研究一边做应用。其中遇到了把程序通知常驻在 Notification 栏,并且不能被 clear 掉(就像android QQ一样)的问题。经过研究实现了其功能,现把 Notification 的使用总结如下:Notification 的使用需要导入 3 个类...
                            
                            
                                分类:
移动开发   时间:
2014-11-27 12:39:47   
                                阅读次数:
153
                             
                    
                        
                            
                            
                                PendingIntentandroid.app.PendingIntent.getActivity(Contextcontext,intrequestCode,Intentintent,intflags)源码注释:RetrieveaPendingIntentthatwillstartanewactivity,likecallingContext.startActivity(Intent).Notethattheactivitywillbestartedoutsideofthecontextofane..
                            
                            
                                分类:
其他好文   时间:
2014-11-26 19:16:38   
                                阅读次数:
200