galaxy

Android - Comma as decimal separator on Numeric Keyboard

送分小仙女□ 提交于 2020-08-24 06:34:50
问题 We need to have a numeric keyboard for an EditText . The Keyboard should have decimal separator based on the device's selected locale. We implemented this by setting the custom DigitsKeyListener to the EditText public class NumericDigitsKeyListener extends DigitsKeyListener { @Override protected char[] getAcceptedChars() { char[] acceptedCharacters = null; acceptedCharacters = new char[] { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', new DecimalFormatSymbols(Locale.getDefaultLocale())

Android version and Linux Kernel version

时间秒杀一切 提交于 2020-01-25 10:07:34
一.Android版本与Linux内核的关系 英文名 中文名 版本号 API level 发布时间 内核版本 1.1 2008.9 Cucake 纸杯蛋糕 1.5 3 , NDK 1 2009.4 2.6.27 Dount 甜甜圈 1.6 4 , NDK 2 2009.9 2.6.29 Eclair 松饼 2.0 5 2009.10 2.6.29 Eclair 松饼 2.0.1 6 Eclair 松饼 2.1 7 , NDK 3 2.6.29 Froyo 冻酸奶 2.2.x 8 , NDK 4 2010.5 2.6.32 Gingerbread 姜饼 2.3 - 2.3.2 9 , NDK 5 2010.12 2.6.35 Gingerbread 姜饼 2.3.3 - 2.3.7 10 Honeycomb 蜂巢 3.0 11 2011.2 Honeycomb 蜂巢 3.1 12 , NDK 6 2011.5 Honeycomb 蜂巢 3.2.x 13 2011.7 Ice Cream Sandwich 冰激凌三明治 4.0.1 - 4.0.2 14 , NDK 7 2011.10 3.0.1 Ice Cream Sandwich 冰激凌三明治 4.0.3 - 4.0.4 15 , NDK 8 Jelly Bean 果冻豆 4.1.x 16 2012.6 3.0.31 Jelly

Activity gets killed after returned from the camera

╄→гoц情女王★ 提交于 2020-01-24 20:27:06
问题 In my app I call the system camera to take a picture, and then handle the result in onActivityResult. It used to work, but now my calling activity gets killed sometimes, sometimes it works well.I need the big picture,so I must use intent.putExtra(MediaStore.EXTRA_OUTPUT, output) ,if without this(like use the intent data to get a bitmap) ,it works fine. after take a pic, and onclick the 'OK' button, I need it return to the activity which start the camera,but sometime it works fine,sometimes

Samsung Galaxy Note emulator

家住魔仙堡 提交于 2020-01-22 05:46:04
问题 I am trying to create emulator for Samsung Galaxy Note. But it is not working. I tried the following config sdk r17 platform 2.3.3 resolution 1280x800 density 320 Emulator skin is comeup. But it doesn't have any navigation keys (menu, back and home keys). Also no keyboard displayed. I also tried with platform 4.0.3. Same problem there. Emulator comes up without any keys. For Galaxy Tab I use Samsung addon. So no problem with emulator. But I couldn't' find any addon for Galaxy Note. 回答1: I

OpenGL ES 2.0 texture not showing on some device

浪子不回头ぞ 提交于 2020-01-21 02:28:09
问题 I found a 3D graphics framework for Android called Rajawali and I am learning how to use it. I followed the most basic tutorial which is rendering a shpere object with a 1024x512 size jpg image for the texture. It worked fine on Galaxy Nexus, but it didn't work on the Galaxy Player GB70. When I say it didn't work, I mean that the object appears but the texture is not rendered. Eventually, I changed some parameters that I use for the Rajawali framework when creating textures and got it to work

Can I trigger Android soft keyboard to open via javascript ( without phonegap )?

浪尽此生 提交于 2020-01-19 07:38:29
问题 I have some custom web components in my mobile web app, whereas I need to manually fire 'focus' events on a field, to simulate the 'NEXT' functionality in the Android soft keyboard feature. ( using Galaxy S3 native browser ). However, when I manually fire a focus event on a 'select' field, the native soft keyboard does not show. I have to subsequently click on the field to get it to show. (In IOS, of course, it works just fine). So I'm wondering, if a 'focus' event doesn't trigger the soft

Can I trigger Android soft keyboard to open via javascript ( without phonegap )?

匆匆过客 提交于 2020-01-19 07:36:40
问题 I have some custom web components in my mobile web app, whereas I need to manually fire 'focus' events on a field, to simulate the 'NEXT' functionality in the Android soft keyboard feature. ( using Galaxy S3 native browser ). However, when I manually fire a focus event on a 'select' field, the native soft keyboard does not show. I have to subsequently click on the field to get it to show. (In IOS, of course, it works just fine). So I'm wondering, if a 'focus' event doesn't trigger the soft

PictureCallback not called when using takePicture in Android

大兔子大兔子 提交于 2020-01-16 18:48:34
问题 I'm taking a picture using my own camera and trying to save the result to the file system (/data/data/package.name/file/captured_photo1.jpeg). When i try it on the emulator (Android 2.2) it seems to work - creates a file with size 8733 bytes and displays it (emulator's default photo). The problem is that when i try it on my GalaxyS (Android 2.2.1) the image on the file system is 0 bytes i found out (from the log) that one of the callbacks i pass to my takePicture method isn't called. and it's

Images from Custom Camera are blurry on Galaxy Nexus

ε祈祈猫儿з 提交于 2020-01-13 19:07:50
问题 I have a custom camera in the app and the images that are taken on most of the devices look good but on galaxy nexus the story is different. Images are blurry in Galaxy nexus. I see grainy lines on Motorola Atrix as well. But Droid X, Droid Razr, HTC Evo, HTC incredible are showing good results. Any idea why it would happpen? This is what I have so far. P.S.: I am using Auto focus in the activity. public class CameraPreview extends SurfaceView implements SurfaceHolder.Callback { private

Android Bluetooth SPP with Galaxy S3

邮差的信 提交于 2020-01-11 07:38:09
问题 I'm trying to establish a bluetooth connexion between a Samsung Galaxy S3 running with Android 4.0.3 and a RN 42 Bluetooth Chip, here is the model : I used lot's of different codes for setting up a bluetooth serial communication, and all of them are working very well on the HTC Wildfire i was using before. But now that i'm using the galaxy s3 phone, it's impossible to establish the connexion. Here is the code i'm using, i found it here : I put the permissions in the android manifest. First,