alarm发起服务及spinner显示个数

1.

final Intent intent = new Intent(context, YourService.class); 
final PendingIntent pending = PendingIntent.getService(context, 0, intent, 0); 
final AlarmManager alarm = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); 
alarm
.cancel(pending); 
long interval = 30000;//milliseconds 
alarm
.setRepeating(AlarmManager.ELAPSED_REALTIME, SystemClock.elapsedRealtime(),interval, pending); 

 

 

 

 

 

2.

 .setDropDownHeight(int height)

你可能感兴趣的:(Spinner)