添加设置设置 [英] Adding settings to Settings

查看:175
本文介绍了添加设置设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发的应用程序是在大部分的背景下,只有服务,但需要进行一些设置,用户必须添加。有没有一种方法来集成与普通设置应用程序/视图/活动的应用程序?

解决方案
  

有没有办法来整合   与普通设置应用程序   应用程序/视图/活动?

只有通过修改固件。 Android不支持SDK应用程序定义或将全局preferences。

您可以使用相同的外观和感觉为自己设置的活动通过使用 preferenceActivity 和preference XML文件。但是,你会之后,还需要有活动会出现在启动。

The application I am developing is in large parts a background-only Service BUT requires some settings that the user must add. Is there a way to integrate applications with the common Settings application/view/activity?

解决方案

Is there a way to integrate applications with the common Settings application/view/activity?

Only by modifying the firmware. Android does not support SDK applications defining or adding global preferences.

You can use the same look and feel for your own settings activity by use of PreferenceActivity and preference XML files. But you will then still need to have that activity appear in the Launcher.

这篇关于添加设置设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆