galaxy

Compass readings on SGS III

穿精又带淫゛_ 提交于 2019-11-28 06:47:57
问题 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

IBM Worklight 6.0 - How to include Dojo patch with pre-built Dojo layers?

只谈情不闲聊 提交于 2019-11-28 06:24:08
问题 Developing Worklight 6.0 applications with Dojo 1.9, we're encountering some page navigation problems on Galaxy SII, SIII, Note devices with running Android v4.1.2 (very common). We see these issues were resolved by Dojo patch #17164. This patch is not included in Worklight's default Dojo build. We tried to include it by placing the files in the project's dojox\mobile folder but with no effect - we guess it is being overwritten by unpatched classes during build. Is there any other way to

Phonegap on Galaxy S3 ignores touch events

放肆的年华 提交于 2019-11-28 05:50:32
问题 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

Samsung Galaxy S4 , Image gets corrupted while taking from camera

杀马特。学长 韩版系。学妹 提交于 2019-11-28 05:10:14
问题 I'm using camera on my app. Camera is working perfect on all devices upto Samsung S3 even. Image is correct from all other devices. While taking image from S4 , image gets corrupted and image gets saved with some lines in horizontal. I tried changing resolution and everything but still issue is there . Any help 回答1: I've been pulling my hair out over this and I think I found the issue, at least with regards to my app - it's got something to do with the aspect ratio of the preview image versus

Samsung Galaxy s3 emulator settings

荒凉一梦 提交于 2019-11-28 04:20:13
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 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. It work for me with 768MB RAM. On Windows, emulating RAM greater than 768MB may fail depending on the system load. 来源: https://stackoverflow.com/questions/10804619/samsung

How to add a button into notification?

浪尽此生 提交于 2019-11-28 02:12:28
问题 I do it like this: RemoteViews views = new RemoteViews(..); views.setOnClickPendingIntent(R.id.button1,pd); noti.contentviews = views; and then notify the notification. I can see the button in the notification, but the button can't be clicked. When i click the button,the whole notification clicked! How can i resolve this question? I found everywhere for this,but nothing useful found. someone said, some phones don't support the notification button, but samsung galaxy s, the musicplayer's

android: I get no stacktrace, phone just hangs

廉价感情. 提交于 2019-11-27 20:15:10
My phone crashes after i pause my camera app, then switching back and take a picture. This only happens on my Samsung Galaxy S, on my Huwai device it totally works. I have found the lines of code which lead to the error. Unfortunately those lines are quite useful, so I can't strip them: public void surfaceDestroyed(SurfaceHolder holder) { // <14> Log.d(TAG,"surfaceDestroyed()"); if(this.camera != null){ camera.stopPreview(); // the next two lines lead to the error after switching back to the app and taking a picure camera.release(); this.camera = null; } } Unfortunately I don't get a

USB Accessory API on Samsung Galaxy S2 Android

旧时模样 提交于 2019-11-27 15:04:47
问题 I am not able to launch my android application on to the Samsung Galaxy S2. I am trying to use the Google Add on Library for USB Accessory. When I launch the same application on Google Nexsus S it works fine. In the application manifest file I have used the following tag (under the application tag): <uses-library android:name="com.android.future.usb.accessory"/> The error that i am getting on the console is [2011-08-11 12:00:28 - App] Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY

Android Printing API on Galaxy Tab

邮差的信 提交于 2019-11-27 14:10:57
I would like to add wireless printing to my android 2.2 application which is targeted for the Galaxy tablet. I see that the internet browser has a print option so I am assuming that an activity hook must exist, and I was hoping that someone has figured this out. I have found a possibility using the PrinterShare application from Mobile Dynamix, but my preference would be to no require a 3rd party. Here is the code example that they provide, just for reference. Intent i = new Intent(Intent.ACTION_VIEW); i.setPackage("com.dynamixsoftware.printershare"); i.setDataAndType(data_uri, data_type);

Android: AVD-Settings for Galaxy S3-Like AVD

谁都会走 提交于 2019-11-27 12:05:23
问题 I need help with the AVD-Settings for my new Virtual Device. I need the settings for an AVD that has the same size like the new Samsung Galaxy S3. 回答1: I just saw a detailed description here: http://forum.xda-developers.com/showthread.php?t=2365104 : Name: Samsung_Galaxy_S3_IceCream Target: Android 4.0 (Api level 14) SDCard: 16 Gb Skin: WVGA800 Hardware: Size 4.8 inches (~65.9% screen-to-body ratio) Resolution 720 x 1280 pixels (~306 ppi pixel density) Device Ram Size: 1024 Hardware Back/Home