galaxy

Galaxy s4 res folder

怎甘沉沦 提交于 2019-12-22 09:37:37
问题 Galaxy s4 Screen: 4.99", 1920x1080 (FullHD). Which the res folder would be used in FHD and what's the dpi value should be set? xhdpi or xxhdpi? And how can I calculate it? I didn't find any info in the developer docs and in the screens_support article 回答1: It's 441 dpi, isn't it? So almost certainly xxhdpi, which is already supported in the Android framework. But why worry about it at this time? Assuming you're already supporting xhdpi, the likelihood that the average user can detect the

Video display is garbled when recording on Galaxy S3

半腔热情 提交于 2019-12-21 17:34:37
问题 I'm writing a camera app and am having an issue with the S3. Whenever I start recording, the display goes to garbage (see screenshots below). Then, when I stop recording I get an exception: 10-02 13:36:31.647: E/MediaRecorder(24283): stop failed: -1007 10-02 13:36:31.647: D/AndroidRuntime(24283): Shutting down VM 10-02 13:36:31.647: W/dalvikvm(24283): threadid=1: thread exiting with uncaught exception (group=0x40c49a68) 10-02 13:36:31.647: E/AndroidRuntime(24283): FATAL EXCEPTION: main 10-02

ACTION_IMAGE_CAPTURE orientation problem on Nexus S and Samsung Galaxy S I9000

此生再无相见时 提交于 2019-12-21 11:25:10
问题 I'm trying to shoot picture and store it into internal storage by using the following code: Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE); takenPhoto = new File(uploadsFolder, getNewPicFileName()); intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(takenPhoto)); startActivityForResult(intent, SHOOT_MEDIA_REQUEST_CODE); The problem is that on Nexus S and Galaxy S devices default and the single orientation for ACTION_IMAGE_CAPTURE intent is landscape. If i

Samsung Galaxy S2 2.3.5+ not calling overScrollBy()

十年热恋 提交于 2019-12-21 04:22:09
问题 Seems like Samsung disabled their overscroll (probably due to an Apple suit). I have an implementation of a view that extends ScrollView and overrides protected boolean overScrollBy(int deltaX, int deltaY, int scrollX, int scrollY, int scrollRangeX, int scrollRangeY,int maxOverScrollX, int maxOverScrollY, boolean isTouchEvent) { ... return super.overScrollBy(deltaX, deltaY, scrollX, scrollY, scrollRangeX, scrollRangeY, 0, metrics.widthPixels,isTouchEvent); } On every other device (Gingerbread

ansible role

那年仲夏 提交于 2019-12-20 20:32:38
roles 定义主机对应的角色,角色是一组按照目录组合的配置,ansible自动完成文件搜索,去找对应目录下的main.yml文件来执行,具体目录结构如下: defaults/ 默认的变量保存在这个目录下 files/ 文件 templates/ 模板 tasks/ 任务 handlers/ 处理器 vars/ 变量 meta/ 角色本身的信息,如通过dependencies指令指定依赖 library/ 私有模块 另外,你也可以给role传递变量。 这里重点说明下,role是使ansible的状态管理可复用很重要的一个概念,很多时候你只需要在自己的playbook里引用下别人的role即可,大家写的role可以相互共享,相互参考。官方也提供了ansible-galaxy这个命令用于安装社区分享的role,具体可参考 Galaxy官网 来源: https://www.cnblogs.com/gaoyuechen/p/7776375.html

Native crash in /system/lib/libart.so

大憨熊 提交于 2019-12-20 18:34:08
问题 I have an app on the Play Store, it has an IntentService that does some work when the app starts, and it's causing native crashes on Android 5.0. This service just scans the assets folder for app updating purposes. Specifically, this crash seems to happen on Samsung S5 after the ugrade to Lollipop, but I don't know if it's strictly related to that device, as it's an Italian app and here that's still the only widely diffuse (i.e. that I know of) device that's getting Lollipop. However, I tried

android - show menu button on galaxy nexus

邮差的信 提交于 2019-12-18 16:55:22
问题 i need to have the menu button shown for some activities on galaxy nexus . i can't find how to do that, since it hides it by default . i don't wish to create an action bar since it takes more space that i want to use to other things . when setting the "android:targetSdkVersion" value to lower than 14 , it seems to show the menu button , but otherwise, it hides it . btw, the activity needs to be full screen , with no title/action bars . it is very weird that this button is not shown by default

access both front and back camera simultaneously on samsung galaxy devices

冷暖自知 提交于 2019-12-18 16:48:23
问题 I know this question has been asked before but its been a long time. Asking this question again to gather any new hacks/thoughts/approaches. I need to access both front and back camera simultaneously. So far I have tried implementations using android camera API (Dual Camera- by Jens) and camera2 API. Both implementations work fine on devices having hardware support(Dual Image Signal Processors) for dual camera feature.I have tested and both implementations works fine on HTC one M8(Snapdragon

Can anyone confirm this issue (limited number of file descriptors on some Android devices)?

徘徊边缘 提交于 2019-12-18 16:12:11
问题 I'm currently working on a cool Android game which was about to be released real soon. Some of our beta testers started complaining that the game crashes with the “too many open files” error message. I've tried simulating this problem on the AVD emulator but couldn't reproduce the error. Afterwards, I realized that only our Galaxy S3 and Asus Nexus 7 testers were complaining. I found this bug issue on Android's bug tracker and it sounds quite similar to what is happening to me. This sounds

Proximity sensor on Galaxy S4 (Air Gestures)

筅森魡賤 提交于 2019-12-18 11:27:12
问题 The new Samsung Galaxy S4 have and interesting new type of gestures called " Air Gesture " that use an infrared sensor to process users hand movement in front of the screen, adding a " pre-touch "/" proximity " event, in wich the fingers are detected before the touch. I'd like to use this " Floating Touch " event in one of my apps. I searched both on Google and in the Samsung Developers Center, but I coudnt find any API or information about that. Are the API available or is too early? Does