samsung-mobile

MediaPlayer error (1, -1004) aka MEDIA_ERROR_IO trying to stream music on Samsung S3

若如初见. 提交于 2019-11-27 03:59:48
NOTE: I'm not working at the company where I worked when I posted this question, therefore, even though some great answers might come in, I won't actually be testing them since I don't have a reason to (other than promoting the community; which might cause me to do it one day) . If however, some answer to the problem is promoted by many other comunity members, I might opt to select it as the correct answer for the problem experienced so many years after I originally posted the question. In the meantime, I hope some of the answers may help some of you also experiencing this problem. Yay for

Android Usage Access for Android 5 Samsung devices

≯℡__Kan透↙ 提交于 2019-11-27 02:05:48
问题 As you might know, since Android 5 was launched, accessing the recent tasks (usage stats) of your device requires the user to enable this feature manually (Settings->Security->Usage Access). My app checks if the device uses Android 5, and if so, then it offers the user the possibility of opening the settings screen for enabling usage access: Intent intent = new Intent(Settings.ACTION_USAGE_ACCESS_SETTINGS); startActivityForResult(intent, 12345); The problem comes when I try to do this in a

java.lang.NullPointerException with Nougat

风格不统一 提交于 2019-11-27 01:51:48
问题 My app has been humming along nicely through various Android versions. I have users running it on Android 4.3, 5.0, 5.1 and 6.0 with no problems. However a user with a S7 Edge has just updated with Android 7.0 and the app is crashing when text is pasted into an EditText field (This is the first and only thing you do with this app - it starts you paste in text into a box and then the app parses the text). I have looked at many threads on Null Pointer Exceptions and I have looked at the source

Samsung Galaxy s3 emulator settings

对着背影说爱祢 提交于 2019-11-27 00:20:45
问题 Can anyone with galaxy s3 access confirm the below emulator settings for Galaxy s3? Target: Google APIs - API Level 15 Skin: Built-in WXGA720 Hardware Back/Home: yes Abstracted LCD density: 320 Keyboard lid support: no Max VM application heap size: 48 Device ram size: 1024 回答1: I had to set the device ram to 512 in emulator. Above configs were the best possible match I could get after comparing with the real Galaxy S3 device. 回答2: It work for me with 768MB RAM. On Windows, emulating RAM

appcompat-v7 v21.0.0 causing crash on Samsung devices with Android v4.2.2

半腔热情 提交于 2019-11-26 22:34:01
问题 We just changed our application to use the appcompat-v7 support library in order to take advantage of the support actionbar and support Material themes. Using v21.0.0 of appcompat-v7 (and v21.0.0 of support-v4) , we are now seeing crashes in Google Play and Crashlytics only from Samsung devices running Android v4.2.2 . Here is the stack trace from Google Play and the app appears to crash as soon as the actionbar` is shown and/or invalidated. java.lang.NoClassDefFoundError: android.support.v7

Serial number from Samsung Device running Android

女生的网名这么多〃 提交于 2019-11-26 20:54:06
问题 I have a Samsung Galaxy Tab 2.0 (7") On the back of this device is a serial number of the format RF3C6000MNA When I go into settings on my device, and choose About Device->Status->Serial Number, this number also appears. I can't, however, find a way of extracting this number programmatically. I've seen loads of articles about extracting the serial number, but this returns a completely different number. (using android.os.Build.SERIAL) I've already extracted the IMEI, and MAC address, so I don

Capture keys typed on android virtual keyboard using javascript

。_饼干妹妹 提交于 2019-11-26 19:00:51
I have a web page with a textarea, and I need to capture the keys typed by the user (so that I can substitute different unicode characters for the keys typed). My current code is as follows: $("#myTextArea").bind('keypress', function(event) { var keyInput = event.which; // call other functions }); This above code works on PCs, and iPhone/Safari. However, it fails when using Chrome on an android (samsung) tablet. For some reason when I type on the android virtual (soft) keyboard, the "keypress" event is not triggered . The android version is 5.0.2. If I try using "keyUp" or "keyDown", it always

Adding Samsung multi-window support to Android application

戏子无情 提交于 2019-11-26 18:49:10
问题 I went and tried to add Samsung's multi-window support for my app following this link. My app did appear in Samsung's multi-window applications tab, and I was able to drag and drop it into the screen, however my app did not behave as multi-window supported app should behave, but instead expanded to full screen. I think there are some other changes that are need to be made to get it work properly, but I have no idea what. Does anyone have any ideas what could be the problem causing this

sendUserActionEvent() is null

浪子不回头ぞ 提交于 2019-11-26 16:07:05
I've got a real doozy here. When I click on spinners, open menu items, or open context menus on long-clicks I get the same Logcat message: 08-02 21:20:57.264: E/ViewRootImpl(31835): sendUserActionEvent() mView == null The tag is ViewRootImpl , and the message is sendUserActionEvent() mView == null . I could not find anything helpful about this on the web. I searched through the Android sources and found some references to mView , but I could not find the file in which this log message is printed. For reference, I'm using a Samsung Galaxy S4 running 4.2.2, or API 17. The same message does NOT

MediaPlayer error (1, -1004) aka MEDIA_ERROR_IO trying to stream music on Samsung S3

拟墨画扇 提交于 2019-11-26 10:59:02
问题 NOTE: I\'m not working at the company where I worked when I posted this question, therefore, even though some great answers might come in, I won\'t actually be testing them since I don\'t have a reason to (other than promoting the community; which might cause me to do it one day) . If however, some answer to the problem is promoted by many other comunity members, I might opt to select it as the correct answer for the problem experienced so many years after I originally posted the question. In