110827

 

stopService(new Intent(NotifyingController.this,
                    NotifyingService.class));

就 onDestroy()了

 

 

showTicker ? getString(textId) : null;
  
 -----showTicker  为 true 赋值 getString(textId) false 为 null

 

 

 // choose the ticker text
        String tickerText = showTicker ? getString(textId) : null;

 

---三元表达式

 

-------好方法呢 若传进来的 showTicker 为真 则显示,若为假 则 不显示

你可能感兴趣的:(String)