samsung-mobile

Android phone “DCD ON” error, constantly running in Logcat

﹥>﹥吖頭↗ 提交于 2019-12-11 02:15:22
问题 I am trying to run and test my app, but in my LogCat (besides the usual stacktrace from my app), I get all this weird extra red errors, and have no idea what it is from. It is frustrating because it keeps adding more lines, when I am just trying to find my app errors, so it's hard to scroll to find my app errors. Even when I am not pressing anything on my phone, it keeps adding these weird DCD ON lines and more... Any idea how to stop them from being my LogCat? I am using a Samsung Galaxy 5.

Detect if page is viewed in samsung stock browser or as a standalone web app

久未见 提交于 2019-12-11 01:53:56
问题 As the title states, I’m trying to detect if my web page is being viewed as a web page in samsungs stock browser or if it is opened as a standalone web app saved on the homescreen. But the javascript-codes i’ve found for doing that only works for Safari and Chrome as far as I can tell. Can someone please provide me with a good solution for this? 回答1: For some reason, window.matchMedia('(display-mode: standalone)').matches is false on a PWA installed by Samsung Internet, even if its display

Over 10 seconds to load an audiostream with MediaPlayer on Samsung Galaxy S5 Android 5.0

被刻印的时光 ゝ 提交于 2019-12-11 01:52:52
问题 Since the update to Android 5.0 MediaPlayer does not work properly on the Samsung Galaxy S5. The loading time is over 10 seconds after you start an audio stream. Samplecode: MediaPlayer mPlayer new MediaPlayer(); String url = "http://149.13.0.80:80/radio1.ogg"; mPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); mPlayer.setDataSource(url); mPlayer.prepare(); mPlayer.start(); Same problem if I use MediaPlayer in a service/with prepareAsync()/other audiostreams. Nexus 4 with Android 5 has

Sensor StepCounter sometime not work well on SamSung device

人走茶凉 提交于 2019-12-11 00:15:07
问题 I am create a demo from receive step from reboot like this. public class MainActivity extends AppCompatActivity implements SensorEventListener { private SensorManager sensorManager; @Override public void onCreate(Bundle savedInstanceState) { ... sensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE); } @Override protected void onResume() { super.onResume(); countSensor = sensorManager.getDefaultSensor(Sensor.TYPE_STEP_COUNTER); sensorManager.registerListener(this,

using samsung galaxy 5 as device in eclipse

淺唱寂寞╮ 提交于 2019-12-10 19:45:09
问题 I can't manage to use my Samsung Galaxy 5 from my eclipse. For example I can't debug my app when connecting the s5 to my computer. I see the device in 'devices' but its unknown or offline. I have activated debugmode in the developer options. Its working for other devices like samsung galaxy tab 10. Any hints ? 回答1: There is a small "secret" to get this to work for Samsung Galaxy S5. The Development options menu in Settings is hidden by default. You can make it visible by going to "About

How to tell whether Samsung Game Tuner is changing resolution ratio

♀尐吖头ヾ 提交于 2019-12-10 18:08:42
问题 As other posts have shown, Samsung's Game Tuner can silently change the resolution of your game, making drag and drop no longer function. I have changed my app to check if Game Tuner is installed, but I would like to detect if it has changed the Resolution Ratio to <100%. I logged standard and real DisplayMetrics for both 100% and 75% Resolution Ratio (see below). But there is no difference that I see I can use. Does anybody have a clue what display metrick I might look at? Resolution Ratio

Android Camera orientation, phone gives false data?

可紊 提交于 2019-12-10 17:49:16
问题 I'm using the code from Android camera docs: public static void setCameraDisplayOrientation(Activity activity, int cameraId, android.hardware.Camera camera) { android.hardware.Camera.CameraInfo info = new android.hardware.Camera.CameraInfo(); android.hardware.Camera.getCameraInfo(cameraId, info); int rotation = activity.getWindowManager().getDefaultDisplay() .getRotation(); int degrees = 0; switch (rotation) { case Surface.ROTATION_0: degrees = 0; break; case Surface.ROTATION_90: degrees = 90

What is the best strategy to recover from an error - neglecting the record where error occurs

不打扰是莪最后的温柔 提交于 2019-12-10 17:13:23
问题 I am getting a No implementation found for native Ldalvik/system/VMRuntime;.pauseGc Error, below is the logCat. 05-13 22:39:22.538: W/dalvikvm(8350): No implementation found for native Ldalvik/system/VMRuntime;.pauseGc:(Ljava/lang/String;)I 05-13 22:39:22.543: E/MyThread(8350): Pause GC 05-13 22:39:22.543: E/MyThread(8350): java.lang.reflect.InvocationTargetException 05-13 22:39:22.543: E/MyThread(8350): at java.lang.reflect.Method.invokeNative(Native Method) 05-13 22:39:22.543: E/MyThread

Hide “NFC Tag type not supported” error on Samsung Galaxy devices

拟墨画扇 提交于 2019-12-10 14:47:54
问题 I am working on an app that scans just the UID of MIFARE Classic cards to facilitate attendance registration. I have got it working. However, every time I scan a card on my Galaxy S4, I get a toast stating "NFC tag type not supported". I want to either block or hide that message while the app is open. I noticed there was one other question asking for the same thing on a Galaxy S6 but it was down-voted once and then ignored. I found this conversation on the Samsung Developers forum, however, I

Custom sync not working with Google Account (com.google) on some Samsung devices

爱⌒轻易说出口 提交于 2019-12-10 13:11:47
问题 I implemented a sync task the same way as the BasicSyncAdapter example except with a Google account like in this answer: https://stackoverflow.com/a/2972918/2072569 It works on allmost all devices except for the Samsung SM-P600 (Galaxy Note 2014) with Android 4.4.2 and some other Samsung tablets. My ContentProvider in the Manifest file has a label. This is the cause of this bug according to this post at some Android version of some Samsung tablets. Has Samsung blocked adding sync tasks to a