galaxy

android: camera onPause/onResume issue

你离开我真会死。 提交于 2019-11-30 00:38:12
I have some troubles with the onPause() onResume() camera live cycle: Camera with preview, and taking photos works totally fine. With one exceptions: I start the app, click the home button, switch back to the app and take another shot. Result: shuttercallback is still executed (see code), but jpeg callback isn't anymore! Then my galaxy S vibrates, and the screen stays black, since startPreview() is not re-triggered after jpegCallback. The stack trace is far from usefull for me. Strange thing is that this only happens on my Galaxy S, not on the emulator. I have really no clue how to move on :/

Signal 11 SIGSEGV Crash in Galaxy S3 Android WebView

百般思念 提交于 2019-11-29 20:19:37
I have a complex, interactive HTML5 in an Android WebView - and it works fine on basically all platforms except Galaxy S3. On Galaxy S3 (Android 4.0.4), once out of every 5 times or so, just after the load completes, /system/lib/libwebcore.so tries to access invalid memory and a Fatal signal 11 (SIGSEGV) at [various addresses] (code=1) is thrown. The HTML5 is a tiny battle where enemies appear and the user slashes them to proceed. In between battles are normal html pages: normal page -> HTML5 battle -> normal page -> HTML5 battle -> normal page -> HTML5 battle. The HTML5 doesn't do anything

Image data from Android camera2 API flipped & squished on Galaxy S5

删除回忆录丶 提交于 2019-11-29 19:10:40
问题 I am implementing an app that uses real-time image processing on live images from the camera. It was working, with limitations, using the now deprecated android.hardware.Camera; for improved flexibility & performance I'd like to use the new android.hardware.camera2 API. I'm having trouble getting the raw image data for processing however. This is on a Samsung Galaxy S5. (Unfortunately, I don't have another Lollipop device handy to test on other hardware). I got the overall framework (with

Devices with Android 4.2 (Jelly Bean) supported Bluetooth low energy (BLE) [closed]

我怕爱的太早我们不能终老 提交于 2019-11-29 19:06:49
问题 Which Android (with Jelly Bean, 4.2) devices support Bluetooth low energy (BLE)? Does Samsung Galaxy S III support it? (This question came up after reading the blog post Bluetooth 4.0 on Galaxy S3 .) 回答1: I believe that currently only the Motorola RAZR has BLE support (because Motorola provides their own BLE library to developers). The S3 does not support BLE (drivers / API not available). This letter from the COOKOO watch project describes Android's Bluetooth 4.0 disaster well. Additionally,

Galaxy S3 - taking picture in portrait mode destroys activity

纵然是瞬间 提交于 2019-11-29 17:22:14
问题 So, this question has been asked in many forms on this forum but none of the answers are helping me. I have a bug which I've only been able to reproduce on the Samsung Galaxy S3. I want to simply take and store a photo using the phone's camera, but my Activity is being destroyed before I ever hear back from onActivityResult. This ONLY happens when I use the camera in portrait mode, in landscape mode it's fine. I'm using this code to launch the camera: Intent intent = new Intent(MediaStore

My Galaxy S6 Edge cannot connect to Android Studio via USB Debugging

此生再无相见时 提交于 2019-11-29 13:50:48
问题 When I plug my Galaxy S6 Edge into my computer, Android Studio does not recognize it as an available USB device. I've tried to download a USB Driver update and I have USB Debugging checked on my phone, but nothing is working. What else do I need to do in order to run my app on my phone? 回答1: If your settings (S6 USB debugging, driver, Android Studio) are correct, you might try the following: (On phone) turn USB Debugging OFF Connect S6 to USB Click on the notification "connected as MTP device

Compass readings on SGS III

那年仲夏 提交于 2019-11-29 12:36:53
My app needs to show the current bearing of the device using its compass. The code I'm using (below) works perfectly fine on my Galaxy Nexus and Galaxy One, but the compass is spinning around wildly on a Samsung Galaxy S III. I've tried doing a figure-8 to recalibrate the device, but that doesn't change anything. The weird thing is that other compass apps downloaded from Google Play work just fine on the SIII. What could be the issue here? float[] mGravity; float[] mGeomagnetic; public void onSensorChanged( SensorEvent event ) { float azimuth = 0f; if (event.sensor.getType() == Sensor.TYPE

Phonegap on Galaxy S3 ignores touch events

雨燕双飞 提交于 2019-11-29 11:46:46
I am having a really odd issue. I have a Phonegap 2.0 app that is basically completed. It is working on iPhone and iPad and I ported it over to Android in a day, testing it on my Galaxy S. Everything worked perfectly. Then I tried to run it on my brand new S3 and none of the touch events worked. Clicks work, but not touch. If I run this code document.addEventListener('touchstart', function (e) { console.log('touch start')}, false); document.addEventListener('click', function (e) { console.log('doc click'); }, false); ... only the click events logs. If I comment out the click I get nothing but

How to test android app in Galaxy S4 configuration using emulator?

岁酱吖の 提交于 2019-11-29 07:24:19
I need to test my app in Galaxy S4. But I have no real device so I want to test my app in emulator. What will be the configuration needed to do this in emulator? See this and you can increase the RAM size if your Machine can handle that. You should choose "Use Host GPU" option in Emulator options. I'm on mac the GPU makes it start but is very slow and the App icons come all compressed the messages boxes are reversed(as you'd see on a mirror). Sansung has an on-line RemoteTestLab, that does not work either only once it popped but then it blew and never fires again. 来源: https://stackoverflow.com

android gridview crashes on Galaxy 3

谁说我不能喝 提交于 2019-11-29 07:09:06
Ok, I think I have a real question for a change. I implemented a gridView in Android, following step by step the instructions in the Android Developers page, http://developer.android.com/resources/tutorials/views/hello-gridview.html I changed it so that when clicking on a view, the bitmap will be returned. This all works great on advanced phones like Galxy Note and Galaxy S2, and on less advanced ones like Galaxy ace and even some crappy htc from 2 years ago. But for some reason, it crashes on galaxy 3 with ICS due to OutOfMemory issues. When using about half of the images on the gridview, it