2010-07-13 100 views

回答

6

试试这个

// Get the current application descriptor. 
ApplicationDescriptor current = ApplicationDescriptor 
         .currentApplicationDescriptor(); 

// Schedules are rounded to the nearest minute so ensure the 
// application is scheduled for at least 1 minute in the future. 
ApplicationManager.getApplicationManager().scheduleApplication(
         current, System.currentTimeMillis() + 60001, true); 

有关详细信息还可以阅读这篇文章。 Schedule an application to run at a specific time

+0

thanks..it works。 – amit 2010-07-14 10:32:31

+0

我对此有疑问。如果设备重新启动会发生什么?预定的应用程序将会启动还是需要重新安排? – lluismontero 2010-10-20 14:40:36

+0

需要再安排一次 – amit 2010-11-09 10:14:28