/** Creates a new instance of HelpForm */ private HelpForm(RssReaderMIDlet midlet, Displayable dprev, Item iprev) { super(ResourceProviderME.get("title.help")); m_midlet = midlet; m_dprev = dprev; m_iprev = iprev; m_backCommand = UiUtil.getCmdRsc("cmd.back", Command.BACK, 1); this.addCommand(m_backCommand); m_aboutCommand = UiUtil.getCmdRsc("cmd.about", Command.SCREEN, 2); this.addCommand(m_aboutCommand); this.setCommandListener(this); }
/** 打开设置 */ public static void openSetting(Activity activity) { try { if (UiUtil.shouldThrottle()) { return; } Intent intent = new Intent(Settings.ACTION_SETTINGS); activity.startActivity(intent); } catch (Exception e) { ErrorUtils.onException(e); } }