知道为什么我似乎无法更新Symfony吗?
public class MainActivity extends AppCompatActivity {
AlarmManager am ;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
am = (AlarmManager) getSystemService(ALARM_SERVICE);
AlarmHATT alarmHATT = new AlarmHATT(getApplicationContext());
alarmHATT.Alarm();
}
public class AlarmHATT {
private Context context;
public AlarmHATT(Context context) {
this.context = context;
}
public void Alarm() {
Intent intent = new Intent( context.getApplicationContext(), BroadcastD.class);
PendingIntent sender = PendingIntent.getBroadcast(MainActivity.this, 0, intent, 0);
Calendar calendar = Calendar.getInstance();
calendar.set(calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH),
calendar.get(Calendar.DATE), 21, 21, 0);
am.setRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), 24*60*60*1000, sender);
}
}
和FWIW
$ symfony -v
Symfony Installer (1.5.4)
=========================
$ which symfony
/usr/local/bin/symfony
$ /usr/local/bin/symfony self-update
// Symfony Installer is already updated to the latest version (1.5.9).
$ /usr/local/bin/symfony -v
Symfony Installer (1.5.4)
=========================