preferences

Java Swing Mac OSX Preferences Menu

笑着哭i 提交于 2020-01-13 09:09:19
问题 I'm trying to add the Preferences menu to my Java Swing application and it's proving a bit of a nause. I have read many posts and articles on this and it sounds easy but... I see references to com.apple.eawt.Application in the examples I have found but when I try to import it in Eclipse Indigo I get an error: Access restriction: The type Application is not accessible due to restriction on required library /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/ui.jar Any ideas? I

How to add preference of Custom Input method to Android Settings app?

笑着哭i 提交于 2020-01-09 11:24:10
问题 Recently I've started to develop Android Soft Keyboard and got some problem with preferences. How to add a preferences to Android setting app? I've searched almost all the source code of AnySoftKeyboard, but haven't found anything what would add them to Settings app. I'm placing a link to show what I meant: http://code.google.com/p/softkeyboard/wiki/Settings (first picture from begin) Thank you P.S. Sorry for my bad english.. 回答1: I've found it myself: in XML of input method you need to put

How to add preference of Custom Input method to Android Settings app?

瘦欲@ 提交于 2020-01-09 11:24:08
问题 Recently I've started to develop Android Soft Keyboard and got some problem with preferences. How to add a preferences to Android setting app? I've searched almost all the source code of AnySoftKeyboard, but haven't found anything what would add them to Settings app. I'm placing a link to show what I meant: http://code.google.com/p/softkeyboard/wiki/Settings (first picture from begin) Thank you P.S. Sorry for my bad english.. 回答1: I've found it myself: in XML of input method you need to put

How to add preference of Custom Input method to Android Settings app?

依然范特西╮ 提交于 2020-01-09 11:23:11
问题 Recently I've started to develop Android Soft Keyboard and got some problem with preferences. How to add a preferences to Android setting app? I've searched almost all the source code of AnySoftKeyboard, but haven't found anything what would add them to Settings app. I'm placing a link to show what I meant: http://code.google.com/p/softkeyboard/wiki/Settings (first picture from begin) Thank you P.S. Sorry for my bad english.. 回答1: I've found it myself: in XML of input method you need to put

Android: String set preference is not persistent

二次信任 提交于 2020-01-09 11:18:25
问题 I have a problem with storing string set preference. I have these utility methods for storing: public static void putStringSet(SharedPreferences pref, Editor e, String key, Set<String> set) { if (Utils.isApiLevelGreaterThanGingerbread()) { // e.remove(key); // I tried to remove it here e.putStringSet(key, set); } else { // removes old occurences of key for (String k : pref.getAll().keySet()) { if (k.startsWith(key)) { e.remove(k); } } int i = 0; for (String value : set) { e.putString(key + i+

Do I have to create some dummy hardcoded array with data for viewing prefs in table view?

筅森魡賤 提交于 2020-01-06 11:45:33
问题 How to create a UITableViewController that displays some hardcoded data in grouped styled (like iPhone settings). For example I need to show some menu options in a table with group style. Now, I know to work with tables and have done it already. But I'm not sure about how should I deal with data that table view will read for constructing the table. Those rows just present some menu options like "order", "review", "about us" then IMHO I have to create some array with that data and store in

Using Xcode preferences vs .gitignore file

时光怂恿深爱的人放手 提交于 2020-01-06 05:48:27
问题 I'm new to git repositories and have found lots of great support for creating a .gitignore file that I would put in each project directory. However, I've noticed that in Xcode 10 preferences under Source Control under the git tab there is a spot to specify files to ignore. Is there an advantage to defining the exclusions in Xcode versus the .gitignore file? I can't seem to find anyone that actually does it this way and Apple docs are light. Are there some items (maybe globals) that I would

How to Import Preferences (.epf) in eclipse via command prompt?

半城伤御伤魂 提交于 2020-01-03 20:49:27
问题 I wanted to run a bat file in which it can import preferences from a location (which was exported manually). I searched for the command which would import preferences but, could not find any. 回答1: There is no existing code to do this. You would have to write an Eclipse headless application that does something like this: IPreferencesService service = Platform.getPreferencesService(); IExportedPreferences prefs = service.readPreferences(file input stream); // TODO create IPreferenceFilter array

How to launch browser when a preference is selected

随声附和 提交于 2020-01-02 18:07:32
问题 I am creating a preference menu and would like to launch a browser (with a specific url) when a particular preference is clicked on. I know this can be done, but I cant seem to get it to work right now. Any ideas? Thanks ######SOLUTION So after my brain fart disappeared, this is what i did: getPreferenceManager() .findPreference("my_preference_key") .setOnPreferenceClickListener( new Preferences.OnPreferenceClickListener() { @Override public boolean onPreferenceClick(Preference preference) {

How to get a preference value in preference fragment

自古美人都是妖i 提交于 2020-01-02 04:39:10
问题 I want to show the value of preferences in a custom preference screen. For this I need to get the values, in this case strings, within the preference fragment. In non fragments (activities) I get the values with e.g. final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this); and get the string with String phonenumber = prefs.getString("preference_name", null); but in the preference fragment getDefaultSharedPreferences is not applicable for preference fragment. Any