标签: android variables
public int onStartCommand(Intent intent, int flags, int startId){ if(!player.isPlaying()){ player.start(); } return START_STICKY; }
错误是: START_STICKY无法解析为变量
答案 0 :(得分:1)
您是否正在扩展服务或活动? http://developer.android.com/reference/android/app/Service.html#START_STICKY