settings

How to add ComboBox to settings gear menu in Rally app

南楼画角 提交于 2019-12-08 04:18:51
问题 Currently I'm working on an app that displays a chart of defects. The chart is to be filtered by a selection of checkboxes that the user can change around to fit his / her needs. These checkboxes are located in the gear menu of the app, under 'settings'. In App.js I have a function that looks like this: getSettingsFields: function() { return [ { xtype: 'fieldcontainer', fieldLabel: 'States', defaultType: 'checkboxfield', items: [ {...} ... ] } ]; } This function works perfectly so far and

How to create Reset button in iPhone Settings

空扰寡人 提交于 2019-12-08 03:54:47
问题 How can I create a "button" in Settings bundle? Something like "Import SIM Contacts" inside Mail settings? Or "Reset Calibration" in Nike + iPod application? Need to have a " Reset Username and Password " button for Settings, if that is a special case... I mean how can I add logic to clear some of other settings, while my own app is not running? 回答1: You can't run custom code in settings, so this is commonly solved with an on/off switch to reset settings at next launch. When the app launches,

Git: autocrlf=true core.eol=native vs autocrlf=input

心不动则不痛 提交于 2019-12-08 03:22:16
问题 Can somebody explain what is the difference between settings: core.autocrlf = true core.eol = native and core.autocrlf = input When we use both cases? 回答1: When [should] we use [either of these settings]? My preference is never . On the other hand, I also don't work on Windows. :-) However, if you read through all of the text below, you will see that if I did, I'd still say "never". (Even if you are sharing some upstream repository in which you're not allowed to create a .gitattributes file,

Portable Settings and App Data Storage, In Python?

拥有回忆 提交于 2019-12-08 03:15:25
问题 What is a portable way to store settings and generated app data for locally-run (desktop) python programs? Is there some pythonic right-way or a widely used 3rd party module? Ideally I want some portable way to tie into OS X's defaults system and Windows' System.Configuration system. I'd settle for a way to get the right path to store persistent settings data for the user's OS. I know about the various relevant technologies like sqlite/pickle/ConfigParser/json/shelve/dbm, but I haven't found

Android screen orientation data lose prevention

五迷三道 提交于 2019-12-08 02:49:21
问题 I am trying to stop my app from resetting whenever the user flips the screen. I don't really want to set it to portrait permanently. My problem is I have settings which erase and a service which stops each time the screen flips. I would like to keep things as they are regardless of the screen orientation. 回答1: On your Activity in your AndroidManifest, set the following: <activity android:name="YourActivity" android:configChanges="orientation|keyboardHidden"></activity> This tells your

Using web.config as store for referenced class library's Properties.Settings class?

可紊 提交于 2019-12-08 02:09:44
问题 Folks, This is probably very simple, but I couldn't turn up anything explicitly on point. I have a web app (ASP.Net 4.0) that references a class library. The class library has various settings. I'd like to use the strongly-typed Properties.Settings capability within the class library. However, since class library config files are ignored under ASP.Net, I'd like the backing store for the settings to be a section of web.config as opposed to a class library-specific app.config. I figure this is

Set Android Things time zone

*爱你&永不变心* 提交于 2019-12-08 01:52:48
问题 After installing Android Things on a Raspberry Pi, time is not correct. My time zone is GMT+2, and using date +%Z I see RPi's time zone is GMT. How can I set time zone? 回答1: Update (based on Michal Harakal's comment): Since Developer Preview 6 TimeManager class provides access to device settings related to time (NB! TimeManager requires <uses-permission android:name="com.google.android.things.permission.SET_TIME" /> ). You can use .setTimeZone() method of for time zone set: private void

How is the logic behind storing program setting in text file like 'config.cfg'?

孤人 提交于 2019-12-08 00:31:18
问题 Often I see some software and specially games that store setting in a text file. I want to have same thing in my C# WinForms application too (I know it is possible to do with application settings for both user and software side) Since I think it is easier for end user to deal with it. So what I need to know is how these settings files are being read and for example set the fields of a class. Imagine I have a class that has the following fields: private double vOffset = 0; private bool Refresh

How to send a user to the main iPhone Settings screen from within your iPhone App

瘦欲@ 提交于 2019-12-08 00:21:09
问题 I currently have an application that requires the user to maintain a VPN tunnel. On load I check if the VPN tunnel is available. I am wondering if there is any way for me to display an UIAlertView which on clicking "OK" takes the user to the iPhone main settings screen, so they can turn on VPN. I know how to store app specific settings and that seem to be the most common articles out there, but is there any way to get your app to redirect the user to the main iPhone settings page? 回答1: As

Saving setting to a exe

≡放荡痞女 提交于 2019-12-07 22:25:44
问题 I have a program which I want to store information in a string. I have been using the Properties.Setting.Default.STRINGname to store the information, which works fine on my PC, and I can see the saved strings (when I go to the settings in the application). But when I take the application to a new PC it losses the strings. Is there a way to be able to edit this information and save it in the app? So basically I need to be able to convert the user setting to application setting, but after the