packages/apps/Launcher2/res/values/arrays.xml中,
<string-array name="hotseats" translatable="false">
<item>intent:#Intent;action=android.intent.action.DIAL;end</item>
<item>*BROWSER*</item>
</string-array>
修改为:
<string-array name="hotseats" translatable="false">
<item>intent:#Intent;action=android.settings.SETTINGS;end</item>
<item>*BROWSER*</item>
</string-array>
还要在packages/apps/Launcher2/src/com/android/launcher2/Launcher.java 中屏蔽事件响应设置:
private void setupViews() {
//hotseatLeft.setOnClickListener(this);
}
就可以调用设置界面了。
本文详细解析了如何在Launcher2应用中通过修改arrays.xml文件与屏蔽事件响应来实现特定功能,并最终调用设置界面的过程。
1512

被折叠的 条评论
为什么被折叠?



