samsung-mobile

InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS in Samsung

那年仲夏 提交于 2021-02-08 16:39:52
问题 In my app, I have an EditText , with a button to change the keyboard input type. The code: ToggleCambiarTeclado.setOnClickListener(new OnClickListener() { @Override public void onClick(View view) { if (ToggleCambiarTeclado.isChecked()) { tipoDeTecladoActual = InputType.TYPE_CLASS_NUMBER; imagenTeclado.setImageDrawable(getResources().getDrawable(R.drawable.keyboard_numeric)); } else { tipoDeTecladoActual = InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS; imagenTeclado.setImageDrawable(getResources()

InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS in Samsung

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-08 16:39:35
问题 In my app, I have an EditText , with a button to change the keyboard input type. The code: ToggleCambiarTeclado.setOnClickListener(new OnClickListener() { @Override public void onClick(View view) { if (ToggleCambiarTeclado.isChecked()) { tipoDeTecladoActual = InputType.TYPE_CLASS_NUMBER; imagenTeclado.setImageDrawable(getResources().getDrawable(R.drawable.keyboard_numeric)); } else { tipoDeTecladoActual = InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS; imagenTeclado.setImageDrawable(getResources()

FCM token not generating in Samsung devices in release version of app

青春壹個敷衍的年華 提交于 2021-02-08 07:19:34
问题 I am using FCM for sending notifications in my app. The first version of my app is in the testing phase and there is an error in Samsung devices because FCM token is not getting generated in these devices. Here is my code which generates the token: FirebaseInstanceId.getInstance().instanceId.addOnCompleteListener(OnCompleteListener { task -> if (!task.isSuccessful) { return@OnCompleteListener } // Get new Instance ID token val token = task.result?.token val ref = FirebaseDatabase.getInstance(

FCM token not generating in Samsung devices in release version of app

一世执手 提交于 2021-02-08 07:19:14
问题 I am using FCM for sending notifications in my app. The first version of my app is in the testing phase and there is an error in Samsung devices because FCM token is not getting generated in these devices. Here is my code which generates the token: FirebaseInstanceId.getInstance().instanceId.addOnCompleteListener(OnCompleteListener { task -> if (!task.isSuccessful) { return@OnCompleteListener } // Get new Instance ID token val token = task.result?.token val ref = FirebaseDatabase.getInstance(

FCM token not generating in Samsung devices in release version of app

做~自己de王妃 提交于 2021-02-08 07:19:02
问题 I am using FCM for sending notifications in my app. The first version of my app is in the testing phase and there is an error in Samsung devices because FCM token is not getting generated in these devices. Here is my code which generates the token: FirebaseInstanceId.getInstance().instanceId.addOnCompleteListener(OnCompleteListener { task -> if (!task.isSuccessful) { return@OnCompleteListener } // Get new Instance ID token val token = task.result?.token val ref = FirebaseDatabase.getInstance(

Android samsung custom notification heads up view

偶尔善良 提交于 2020-06-29 14:08:45
问题 When notifications from some applications are displaying on Samsung S8 Touchwiz there is a custom view with nice animation and ellipsized text. For example message notifications in Telegram. Any ideas how to make my notification work like this on samsung? Tried all parameters in NotificationCompat.Builder but no success yet. Thanks. It look's like this: 回答1: I managed to figure out how you can make the notifications appear in such way on Samsung devices. The Samsung have "Edge lighting"

Android samsung custom notification heads up view

岁酱吖の 提交于 2020-06-29 14:03:17
问题 When notifications from some applications are displaying on Samsung S8 Touchwiz there is a custom view with nice animation and ellipsized text. For example message notifications in Telegram. Any ideas how to make my notification work like this on samsung? Tried all parameters in NotificationCompat.Builder but no success yet. Thanks. It look's like this: 回答1: I managed to figure out how you can make the notifications appear in such way on Samsung devices. The Samsung have "Edge lighting"

Display density and size reduced by Samsung Game Optimization

谁说我不能喝 提交于 2020-05-29 06:36:28
问题 I have a free and paid version of the same android app. Some users (always using Samsung tablets) reported that the camera preview was stretched with one of the apps, and OK with the other. I managed to find a Samsung Tab A6 to reproduce the problem. I first realized that the difference was that one of the app was using a different display density, width and height. Then, using "adb logcat", I saw logs about requests to https://service.game-mode.net/gamemode/v3/packages/ with my app pakage

Display density and size reduced by Samsung Game Optimization

风流意气都作罢 提交于 2020-05-29 06:35:58
问题 I have a free and paid version of the same android app. Some users (always using Samsung tablets) reported that the camera preview was stretched with one of the apps, and OK with the other. I managed to find a Samsung Tab A6 to reproduce the problem. I first realized that the difference was that one of the app was using a different display density, width and height. Then, using "adb logcat", I saw logs about requests to https://service.game-mode.net/gamemode/v3/packages/ with my app pakage

AcousticEchoCanceler on Samsung devices not working

霸气de小男生 提交于 2020-05-12 11:50:07
问题 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