samsung-mobile


Galaxy S10, S10+ Full Screen Mode

让人想犯罪 __ 提交于 2020-02-02 10:18:57
问题 How can achieve full screen mode with Samsung Galaxy S10 and S10+, the following code do not work for me: getWindow().getDecorView().setSystemUiVisibility( // Set the content to appear under the system bars so that the // content doesn't resize when the system bars hide and show. SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN // Hide the nav bar and status bar // | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG

Samsung enable disable “Driving mode”

若如初见. 提交于 2020-01-29 09:53:49
问题 I would like to enable/disable Driving mode which is available on some Samsung devices (Galaxy S2, S3). I know I have to put something to system settings, but I don´t know what. So please advice me what values I should use or where I can find this information. Settings.System.putInt(context.getContentResolver(), "something1", "something2"); Thank you in advance. 回答1: Sure! This code works for me: Settings.System.putInt(getContentResolver(), "driving_mode_on", 1); // To Enable Settings.System

Samsung enable disable “Driving mode”

╄→尐↘猪︶ㄣ 提交于 2020-01-29 09:53:06
问题 I would like to enable/disable Driving mode which is available on some Samsung devices (Galaxy S2, S3). I know I have to put something to system settings, but I don´t know what. So please advice me what values I should use or where I can find this information. Settings.System.putInt(context.getContentResolver(), "something1", "something2"); Thank you in advance. 回答1: Sure! This code works for me: Settings.System.putInt(getContentResolver(), "driving_mode_on", 1); // To Enable Settings.System

Firebase Messaging - “too many alarms” on Samsung's Android devices

牧云@^-^@ 提交于 2020-01-21 11:42:30
问题 We are using Firebase Messaging in Android app and since last week we reported many crashes from Samsung devices. The problem is not related with any of our classes . We are not using AlarmManager etc. Here are the stacktraces: 1) Parcel.java Fatal Exception: java.lang.SecurityException: !@Too many alarms (500) registered from pid 13776 uid 10011 at android.os.Parcel.readException(Parcel.java:1540) at android.os.Parcel.readException(Parcel.java:1493) at android.app.IAlarmManager$Stub$Proxy

Video capturing crash on Samsung android 5 with FileProvider

给你一囗甜甜゛ 提交于 2020-01-14 05:45:08
问题 Model: Samsung SM-G900F (Android 5.0) Code to launch camera: File file = new File(getExternalFilesDir(null),"video.mp4"); Uri uri = FileProvider.getUriForFile(this, "example.com.myapplication.fileprovider", file); final Intent takePictureIntent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE); takePictureIntent.putExtra(MediaStore.EXTRA_OUTPUT, uri); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { takePictureIntent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION| Intent.FLAG_GRANT

jquery ajax GET request executing twice

佐手、 提交于 2020-01-12 11:58:30
问题 I have the following ajax request that is executed at a click of a button: <a href="javascript:test()"><img src="css/images/test.png"></a> function test(){ console.debug("*"); $.ajax({ type: "GET", dataType: "json", url: '/path/to/url', success: function(data){ console.debug("**"); }, error: function(jqXHR, status, error){ console.debug("*** " + status + " : " + error + " : " + jqXHR.status); }, cache: false }); } The request response takes approximately 30 seconds to return. However, the

jquery ajax GET request executing twice

泪湿孤枕 提交于 2020-01-12 11:58:08
问题 I have the following ajax request that is executed at a click of a button: <a href="javascript:test()"><img src="css/images/test.png"></a> function test(){ console.debug("*"); $.ajax({ type: "GET", dataType: "json", url: '/path/to/url', success: function(data){ console.debug("**"); }, error: function(jqXHR, status, error){ console.debug("*** " + status + " : " + error + " : " + jqXHR.status); }, cache: false }); } The request response takes approximately 30 seconds to return. However, the

Unable to create file on removeable sdcard in Android 5.0.1

时光总嘲笑我的痴心妄想 提交于 2020-01-06 15:10:22
问题 I am working on an application that needs the ability to create files on the removable sd card in the Samsung S4 i9295 device. I am running a stock Samsung ROM 5.0.1 that has been rooted. For test purposes, I have been trying to create these files by hardcoding the paths for this specific device, but have been unable to create files on the removable card. The code below creates files as expected on the internal sd card but not on the removable card. //creates directory on internal sdcard

Alternative to ☐ and ☒ on Android (Samsung Tab 2) browser

北城余情 提交于 2020-01-05 07:36:33
问题 Internet browser I have installed (by default) on my Samsung Tab2 does not display ☐ ☐ and ☒ ☒ characters properly. What are alternative solutions? 回答1: The fonts on Android do not contain these characters, so your options seem to be: Use a downloadable font, via @font-face . It can be difficult to find a font suitable for this, since most free fonts are rather limited in their character coverage. Among the relatively few fonts that contain these characters (cf. to font coverage info at

Alternative to ☐ and ☒ on Android (Samsung Tab 2) browser

送分小仙女□ 提交于 2020-01-05 07:35:09
问题 Internet browser I have installed (by default) on my Samsung Tab2 does not display ☐ ☐ and ☒ ☒ characters properly. What are alternative solutions? 回答1: The fonts on Android do not contain these characters, so your options seem to be: Use a downloadable font, via @font-face . It can be difficult to find a font suitable for this, since most free fonts are rather limited in their character coverage. Among the relatively few fonts that contain these characters (cf. to font coverage info at

工具导航Map