icfans

如何修改内置Java应用在COSMOS main menu上的显示顺序

0
阅读(168) 评论(0)

[DESCRIPTOIN]
COSMOS的主菜单上,每个native app、 MRE、 Java等显示顺序是固定的。一般而言,内置的Java应用会放在
比较靠后的位置,往往在第二屏或者第三屏的尾部。参考如下方法,可以客制化内置Java应用的显示顺序,例如把一
些运营商要求的、常用的内置Java应用 (Facebook / Twitter / Opera mini) 放置到主菜单的前列。
[Solution]来自半导体社区
具体方法是,找到项目对应的launcher的order数组,例如下面的例子。然后将Java应用的app name按照想
要的顺序排好。这里要注意的是,该方法只适用于内置的Java应用,因为我们修改下述数组的前提是需要知道app
name (java.xxx.xxx)。
const mmi_app_package_name_struct vappLauncherCosmosMmDefaultOrder[] =
{
// the shortcut bar
"native.mtk.dialer",
"native.mtk.msg",
"native.mtk.musicplayer",
"native.mtk.launcher",
// the page content
//begin
//把想要提前的预制java应用的app name写在下方icfans
//end
#ifdef __OP02_0200__
"native.mtk.mobile_internet",
"native.mtk.wo_store",
"native.mtk.lemei",
"native.mtk.online_sales",
#endif
"native.mtk.contact",
"native.mtk.calllog",
"native.mtk.calendar",
"native.mtk.camcorder",
"native.mtk.setting",
"native.mtk.alarm",
"native.mtk.opera",
"native.mtk.vapp_browser",
"native.mtk.vapp_dlagent",
"native.mtk.gallery",
"native.mtk.calculator",
"native.mtk.fmgr",
"native.mtk.appmanager",
"native.mtk.soundrec",
"native.mtk.wifi",
"native.mtk.cnmgr",
"native.mtk.vapp_notes",
"native.mtk.task",
"native.mtk.fmradio",
"native.mtk.sync",
"native.mtk.vapp_email",
"native.mtk.worldclock",
"native.mtk.app_converter",
"native.mtk.sat",
"native.mtk.launcher_cosmos_mm_barrel_setting",
"",
""
};