setting

Where is the setting setVibrateSetting(AudioManager.VIBRATE_TYPE_NOTIFICATION, false) in the phone?

扶醉桌前 提交于 2019-12-24 10:01:00
问题 i made an app that messes with the system vibrate settings. namely, it turns them off. AudioManager audioManager = (AudioManager)ctx.getSystemService(Context.AUDIO_SERVICE); audioManager.setVibrateSetting(AudioManager.VIBRATE_TYPE_RINGER, AudioManager.VIBRATE_SETTING_OFF); audioManager.setVibrateSetting(AudioManager.VIBRATE_TYPE_NOTIFICATION, AudioManager.VIBRATE_SETTING_OFF); System.putInt(ctx.getContentResolver(), VIBRATE_IN_SILENT, 0); i wonder now, where i can turn the vibration manually

Android location request PRIORITY_HIGH_ACCURACY has no effect

China☆狼群 提交于 2019-12-23 12:33:03
问题 My Android app needs high accuracy location tracking. On app start, it reads the location settings programmatically and presents a screen if high accuracy is not selected. I adapted Google's official example (https://developers.google.com/android/reference/com/google/android/gms/location/SettingsClient) to Kotlin. This works as intended on a Huawei phone, but fails on Samsung S7 and S8: If the user has selected Power balanced , a dialog appears and the location tracking is set to high

Wordpress plugin setting data

余生长醉 提交于 2019-12-18 13:12:26
问题 I want to know that where the plugins settings data saved in server? Means, when we change any plugin settings (e.g. For simple captcha, it is settings as-> use number, user alpha, captcha color etc), then in which file or database , these settings are saved. 回答1: All settings of the Plugin will be saved in the db. Your Plugin can choose which table they wanted to store the setting into. Check the source code of your Plugin. If your Plugins uses get_options() , then it will stored in the wp

Xamarin IOS IPA iphone app is not compatible installing by itune from mac

无人久伴 提交于 2019-12-13 07:00:33
问题 It is the typical error message from itunes app install telling me: "The app was not installed on the Iphone because it is not compatible with this iPhone" I already have tried setting "Build Active Architecture Only" to "No", but without luck. I can deploy and run the app from Xamarin in both Debug and Release mode without problem using my own device, but i can not install it when i generated an IPA from Xamarin. I am sure that this is about a bundle setting because this was working before,

Tomcat per webapp memory settings

て烟熏妆下的殇ゞ 提交于 2019-12-12 11:13:30
问题 I am having two webapplication running inside tomcat. Java Heap space is allocated for Tomcat and it is shared for both appliaction. In that one application consumes more and other is getting OUT_OF_MEMORY. Is there any way to set memory settings per web application. Say 70% for one webapp and 30% for other from the overall memory allocated to Tomcat. Regards Ganesh 回答1: The memory is defined per JVM instance, so if you are using one tomcat you cannot do it. However you can run two tomcat

Sending email: failed to connect

别来无恙 提交于 2019-12-12 01:59:24
问题 I am using java to send mail. I want to set the from mail id to xyz@chatmeter.com. When i am using that for sending mail the following exception is generated.. Exception in thread "main" javax.mail.AuthenticationFailedException: failed to connect at javax.mail.Service.connect(Service.java:322) at javax.mail.Service.connect(Service.java:172) at javax.mail.Service.connect(Service.java:121) at javax.mail.Transport.send0(Transport.java:190) at javax.mail.Transport.send(Transport.java:120) at

Image MouseDown event not firing

只愿长相守 提交于 2019-12-11 15:43:33
问题 I have a problem on one of my user’s PC’s where she cannot click on an image (well, she can click on it, but nothing happens). The image has the following XAML: <Image Source="./Images/flag.jpg" Name="image1" Stretch="Uniform" Height="40" HorizontalAlignment="Right" VerticalAlignment="Top" ImageFailed="image1_ImageFailed" Mouse.MouseDown="RotateImage" Margin="0,0,0,0" Cursor="Hand"/> And the MouseDown event is handled by: private void RotateImage(object sender, MouseEventArgs e) { //Some Code

android: is there Intent.Action of font setting changed?

狂风中的少年 提交于 2019-12-11 09:38:47
问题 In android, when some of setting changed, the activity of app must reCreate, which may result in app crashed, like language or font setting; I know language setting's Intent.Action is ACTION_LOCALE_CHANGED, but can't find the font setting's Intent.Action; so the question is : what is font setting's Intent.Action in Android, if not, how to handle the case that font setting changed? 回答1: I got it; android.intent.action.FONT_CONFIG_CHANGED may be you guys can't find it in the Google source code!

Setting Internet Proxy in IE on active dial up or vpn connection in delphi

拈花ヽ惹草 提交于 2019-12-11 07:29:10
问题 I want to set proxy in action connection for IE with Delphi codes. I test this code: Procedure SetProxy(const Server: String); var Reg : TRegistry; begin Reg := TRegistry.Create; Reg.OpenKey('Software\Microsoft\Windows\CurrentVersion\Internet Settings',False); Reg.WriteString('ProxyServer',Server); Reg.WriteBool('ProxyEnable',True); Reg.CloseKey; Reg.Free; InternetSetOption(0, INTERNET_OPTION_SETTINGS_CHANGED, 0, 0); end; But it is change only LAN Setting in IE Internet Option . Anyone have a

Enable/Disable Wifi on non-jailbroken iOS device

雨燕双飞 提交于 2019-12-10 19:27:49
问题 This I needed for my internal app. I want to toggle wifi on ios device. Any framework is available. I tried following code, but it provides me no help. This doesn't change my wifi settings. { Class BluetoothManager = objc_getClass("BluetoothManager"); id btCont = [BluetoothManager sharedInstance]; [self performSelector:@selector(toggle:) withObject:btCont afterDelay:0.1f] ; } - (void)toggle:(id)btCont { BOOL currentState = [btCont enabled] ; [btCont setEnabled:!currentState] ; [btCont