samsung-mobile

AcousticEchoCanceler on Samsung devices not working

吃可爱长大的小学妹 提交于 2020-05-12 11:49:42
问题 I have AcousticEchoCanceler working for VoIP calls for every other device type I've tried, but not on any Samsung device. The device reports AcousticEchoCanceler being available but it simply does nothing. What I've got: acousticEchoCanceler.setEnabled(true); audioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); Audio session ID passed to AudioTrack Sample rate: 16k Tried both mono and stereo recording <uses-permission android:name="android.permission.RECORD_AUDIO"/> <uses-permission

Firebase Cloud Messaging not working with Samsung Internet

爱⌒轻易说出口 提交于 2020-04-17 06:03:39
问题 I'm setting up Firebase Cloud Messaging to do push notifications on the web. It works but only with Chrome (Windows and Android) and Firefox(Android) so far. It's not working on Samsung Internet Browser (the browser that comes pre-installed on Samsung's phones) and I haven't gotten a chance to test on iOS so far. I've tried adding the sender id as gcm_sender_id to the Cloud Function I'm using as well as to the manifest.json file to no avail. Below is how the notification body is set up. //

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