安排BlackBerry应用程序

时间:2010-07-13 10:12:44

标签: blackberry java-me

我想安排我的申请。

1 个答案:

答案 0 :(得分: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