摘要:        
Service在后台运行时,如果系统内存内存不足时,就有可能会回收掉后台运行的Service, 如果想要Service一直运行,而不会因为内存不足时被回收,就可以使用前台Service; 前台Service和普通Service的区别: 前台Service会有个图标显示在系统的状态栏,下拉状态栏会有更    阅读全文
posted @ 2016-04-14 21:55
红尘Dream
阅读(521)
评论(0)
推荐(0)
        
            
        
        
摘要:        
Service启动的方式1 start: Activity.startService(intent); 开启 Activity.stopService(intent); 停止 Service的运行的生命周期为: onCreate(); onStartCommand(); onDestroy(); 如    阅读全文
posted @ 2016-04-14 13:46
红尘Dream
阅读(596)
评论(0)
推荐(0)
        
 
                    
                     
                    
                 
                    
                
 
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号