settings

Unable to select 'settings activity' in android studio

你说的曾经没有我的故事 提交于 2020-03-19 06:11:11
问题 I am following the tutorial (9.2), it asks to add a 'settings activity', when i try to select it, it is greyed out and says that it 'requires androidx support'. I can find no reference to androidx support in the tutorial and have tried googling the problem to no avail. I have even loaded the completed project from the master files to compare their code with mine, i can find no reference to androidx. I am using android studio 3.4.1 回答1: As it says, it requires androidx support. You need to

Unable to select 'settings activity' in android studio

不打扰是莪最后的温柔 提交于 2020-03-19 06:11:08
问题 I am following the tutorial (9.2), it asks to add a 'settings activity', when i try to select it, it is greyed out and says that it 'requires androidx support'. I can find no reference to androidx support in the tutorial and have tried googling the problem to no avail. I have even loaded the completed project from the master files to compare their code with mine, i can find no reference to androidx. I am using android studio 3.4.1 回答1: As it says, it requires androidx support. You need to

Opening IOS settings preferences

為{幸葍}努か 提交于 2020-02-23 07:40:47
问题 Im having a problem opening the settings preferences in my IOS iphone app. At the moment im just using a simple button to test and it doesn't seem to be working correctly. Basically when I click the button I want a specific settings preference page to open. This is what Im currently using within my buttons IBACTION: [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=General"]]; Hope you guys can help me out with a solution for this, thanks in advance. 回答1: try this:

How to change the Lock screen custom text(Owner Info)?

老子叫甜甜 提交于 2020-02-21 04:07:35
问题 I wrote the program code String message = "This is test"; Settings.System.putString(context.getContentResolver(), Settings.Secure.LOCK_PATTERN_ENABLED, message); This is not changing the lock screen text(Owner Info) and Added permission as <uses-permission android:name="android.permission.WRITE_SETTINGS" /> 回答1: Change Settings.Secure.LOCK_PATTERN_ENABLED to Settings.System.NEXT_ALARM_FORMATTED . Note that Settings.System.NEXT_ALARM_FORMATTED was deprecated in API level 21. You must use

How to change the Lock screen custom text(Owner Info)?

对着背影说爱祢 提交于 2020-02-21 04:05:38
问题 I wrote the program code String message = "This is test"; Settings.System.putString(context.getContentResolver(), Settings.Secure.LOCK_PATTERN_ENABLED, message); This is not changing the lock screen text(Owner Info) and Added permission as <uses-permission android:name="android.permission.WRITE_SETTINGS" /> 回答1: Change Settings.Secure.LOCK_PATTERN_ENABLED to Settings.System.NEXT_ALARM_FORMATTED . Note that Settings.System.NEXT_ALARM_FORMATTED was deprecated in API level 21. You must use

iOS switch off vibrate on silent programmatically [Private API]

匆匆过客 提交于 2020-01-31 10:02:54
问题 I would like to keep my iPhone from vibrate when it's on Silent Mode even when it is ON in settings. I want to do it programmatically from an App. This is for me, so I can use a private API. Is there an api which manage Sounds in Settings? Do you know any solution? Thank you, Flo 回答1: I think the following code can do the trick. You need to trigger it from somewhere though (haven't understand if you want it to be fired with the button or from within an app). NSString *sbPath = @"/var/mobile

iOS switch off vibrate on silent programmatically [Private API]

与世无争的帅哥 提交于 2020-01-31 10:00:53
问题 I would like to keep my iPhone from vibrate when it's on Silent Mode even when it is ON in settings. I want to do it programmatically from an App. This is for me, so I can use a private API. Is there an api which manage Sounds in Settings? Do you know any solution? Thank you, Flo 回答1: I think the following code can do the trick. You need to trigger it from somewhere though (haven't understand if you want it to be fired with the button or from within an app). NSString *sbPath = @"/var/mobile

Make IDE-wide configuration changes in Eclipse

女生的网名这么多〃 提交于 2020-01-25 22:06:06
问题 I have been working on some GUI-related projects in Eclipse CDT. They always require me a specific command line pattern (Project > GCC C Linker) in order to load the libraries properly: I can't manage to keep that configuration for every project I start. Is there a way to achieve this? 回答1: IMHO it is not possible. See in Windows > Preferences > C/C++ Build > Setttings these options were not provided. So all these options are specific to a project. Means you can have different options for

Make IDE-wide configuration changes in Eclipse

感情迁移 提交于 2020-01-25 22:03:46
问题 I have been working on some GUI-related projects in Eclipse CDT. They always require me a specific command line pattern (Project > GCC C Linker) in order to load the libraries properly: I can't manage to keep that configuration for every project I start. Is there a way to achieve this? 回答1: IMHO it is not possible. See in Windows > Preferences > C/C++ Build > Setttings these options were not provided. So all these options are specific to a project. Means you can have different options for

Settings.Designer file and Staticness

一曲冷凌霜 提交于 2020-01-24 20:16:07
问题 I have a DAL class library that is included in my program as a DLL. The below line is from the DAL to initialize the connection. DataSet ds = new DataSet("table"); SqlConnection cnn = new SqlConnection(Settings.CMOSQLConn); When I run this I get the below error: An unhandled exception of type 'System.StackOverflowException' occurred in CMO.DAL.dll The below is in the Settings.Designer.cs file and it is where it shows the error on the get call : [global::System.Configuration