settings

Vibrate settings on Android 2.2

对着背影说爱祢 提交于 2019-11-30 02:32:25
I'm making a vibrate toggling widget (in fact, its first version is already in the Market) but I'm having some problems with the vibrate settings of Android 2.2. Up to Android 2.1 I have no problem, when I want to disable vibrate I do am.setVibrateSetting(AudioManager.VIBRATE_TYPE_RINGER,AudioManager.VIBRATE_SETTING_OFF); am.setVibrateSetting(AudioManager.VIBRATE_TYPE_NOTIFICATION,AudioManager.VIBRATE_SETTING_OFF); and the same but with VIBRATE_SETTING_ON on both lines to turn it on, and it works allright. However, since Android 2.2 introduced "Vibrate only in silent mode" and "Vibrate when

Where does TortoiseSVN store its settings (for example, Global Ignore Pattern)?

有些话、适合烂在心里 提交于 2019-11-30 02:11:07
When setting up an instance of the excellent TortoiseSVN , I find myself repeating its settings, for example, 'default checkout folder' and 'global ignore pattern' (as well as many others such as the linked tools). This is a pain. Where is the latter stored? I've found the former around the registry key [HKEY_CURRENT_USER\Software\TortoiseSVN] , but 'global ignore pattern' is missing. A text search of the user tree doesn't find it either. Where is it? From the Readme of Subversion, which seems to be installed with TortoiseSVN anyway: File locations ============== Typically, Subversion uses two

Is there a way to disable or modify Xcode's code completion?

不羁岁月 提交于 2019-11-30 02:09:22
问题 I have unchecked both "Show arguments in pop-up list" and "Insert argument placeholders for completions" in Xcode Code Sense preferences, but when I type "else" (for example) in the editor, Xcode still dumps in a pre-formatted "else" block. Is there a way to disable this feature entirely, or (better yet) to modify the block that Xcode inserts? The default Xcode "else" block doesn't match my coding style, so the placeholder actually hampers my productivity instead of helping. UPDATE: I just

Open Twitter settings in Settings app

穿精又带淫゛_ 提交于 2019-11-30 02:06:20
I know I can open the settings app in iOS 5 using [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs://"]]; but is there a way to open the Twitter settings page directly? The desired functionality can be seen when you try to present a TWTweetComposeViewController and you have not set up a Twitter account. Try, [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=TWITTER"]]; I found out that the root value is the key of the localized string found in the "Settings.strings" file of the Preferences.app. Here are some values that I tested to work:

Storing iPhone application settings in app

旧街凉风 提交于 2019-11-30 01:45:33
My iPhone app has few settings that users is likely to change quite often. I would like to know if there's any suggested way of handling such settings (reading and saving them). On Apple sites I found only a tutorial about integrating your application settings with Settings app ( link ) but I don't want a user to exit my app so he could just change the option. Is there any default mechanism to handle such settings in app itself or do I have to implement a solution of my own? Best and easiest way to store settings in the iPhone is through NSUserDefaults . Keeps you from having to deal with the

backup and restore ALL resharper settings

不打扰是莪最后的温柔 提交于 2019-11-29 23:12:41
How can I backup and later restore (after a clean install) ALL resharper settings? On XP Resharper stores its settings in: %userprofile%\Application Data\JetBrains\ReSharper\[R# Version]\[VS Version] and of Vista/7: %userprofile%\AppData\Roaming\JetBrains\ReSharper\[R# Version]\[VS Version] where [R# Version] is the version of ReSharper installed (e.g. v4.5) and [VS Version] is your Visual Studio version (e.g. vs9.0). Just copy all the files from that folder to backup, and put them back there to restore. 来源: https://stackoverflow.com/questions/2175348/backup-and-restore-all-resharper-settings

Visual Studio: reset user settings when debugging

こ雲淡風輕ζ 提交于 2019-11-29 23:07:16
In a C# Winforms-App I have several user settings stored. Is there an easy way to clear those settings each time I start debugging the project from Visual Studio 2008? Otherwise it always starts up with the settings from the last debug-session. Add a pre-build action to delete: %USERPROFILE%\Local Settings\Application Data\[AppName]\...\[Version]\user.config or if your version number changes alot just delete %USERPROFILE%\Local Settings\Application Data\[AppName]\ Smolla Had the same question and found an answer here: https://stackoverflow.com/a/2117359/488794 Properties.Settings.Default.Reset

Build multiple (test/prod) versions of Android APKs in Eclipse

我只是一个虾纸丫 提交于 2019-11-29 23:03:06
I'm looking to optimize generating of slightly different APKs of the same Android app, the only difference being the http API server it's using (dev/staging/prod). Ideally, I'd just want my Eclipse to build 2 APKs, one with the prod server and one with the dev one. I'm even OK with having 2 Run configurations, but I haven't been able to figure out how to pass parameters to the app and read them from the code. I want to target 1.5, BTW, and I'd like to use Eclipse auto-build tools, so I'm looking for the most generic solution. Thank you. kingori I think using ant build script would be the

How do you change background color in the settings of JetBrain's IDE?

蓝咒 提交于 2019-11-29 22:49:41
What are the settings to change the background color in JetBrains' IDE? Project explorer pane Console pane Code editor Other Panes I'm running v12.1.6 Ultimate Version. Are there major differences between different versions of the software? lena Console pane: Settings / Editor / Colors & Fonts / Console colors Console, background Project view: Settings / File colors Add (Alt+insert), choose 'project files' scope, select a color. Uncheck the 'Use in editor tabs' checkbox, make sure to check 'Use in project view' Main view (general): Settings / Editor / Color & fonts / General Text, Default text

Backup Eclipse settings

我是研究僧i 提交于 2019-11-29 20:59:57
I have had to re/install Eclipse across different platforms (windows and linux) several times this year. I have not found an effective single solution way to share settings/preferences across different versions of Eclipse. This is what I currently do: Export Software Update Sites (Bookmarks) XML file. Export Java->Code Style->Code templates Export Java->Code Style->Formatter Export Java->Code Style->Organize Imports Export Java->Templates Configure Project Specific Settings for all your projects then copy the .settings directory from the base directory of your project. Take a screenshot of