google-nexus

Galaxy nexus Intent.ACTION_PICK bug on Jelly Bean (4.1.1)

放肆的年华 提交于 2019-12-25 05:23:35
问题 I've found a very frustrating bug on galaxy nexus. I start az ACTION_PICK activity to select image from, after starting it, the device shows the gallery, and immediately return and call onActivityResult , so I can't pick an image. It's only on galaxy nexus after update to Jelly Bean. Intent photoPickerIntent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI); startActivityForResult(photoPickerIntent, RequestCodeCollection.GALLERY_IMAGE_SELECT); I

LG Nexus 5X can't see in Android Studio on Windows 10

心已入冬 提交于 2019-12-24 16:34:10
问题 I have a LG Nexus 5x smartphone, I would like to use to on device debugging in Android Studio on my Windows 10 Computer. I turn on the dubugger options on my phone, but the Android Studio can't see that. From where can I downlod the USB driver, that fixs my problem? 回答1: Install Google USB Drivers on SDK Tools Enable Debugging Mode on Developer Settings. Go to Device Manager and check drivers status. (Probably you can see warning icon on ADB Interface Driver.) Select ADB Interface driver and

flash torch functionality not working through app-widget in nexus 5

天涯浪子 提交于 2019-12-22 08:11:33
问题 Flash is turning-on fine from application (added surface_view to the layout), when I try to turn-on flash through app-widget it's not working. I used Camera and SurfaceView Here is the code I am using Camera mCamera; SurfaceView preview; mCamera = Camera.open(); mCamera.setPreviewDisplay(preview.getCameraHolder()); Parameters params = mCamera.getParameters(); params.setFlashMode(Parameters.FLASH_MODE_TORCH); mCamera.setParameters(params); mCamera.startPreview(); Added permission and features

What USB driver should we use for the Nexus 5?

霸气de小男生 提交于 2019-12-17 10:18:51
问题 As of the time of this writing, Google does not provide a USB driver (for Windows) for the Nexus 5. The usual link (http://developer.android.com/sdk/win-usb.html) shows Windows USB drivers for several of the Nexus's line. However, the "Nexus 5" is not included. Note that the Nexus " S " (letter- S , not number- 5 ) IS supported. Also, from this site, the latest version of the current download is version-8, July-17-2013. When I compare this with its predecessor, version-7, the files are the

How to prevent Screen Orientation change when Activity finishes on Android 8.1 Version Devices?

ε祈祈猫儿з 提交于 2019-12-10 12:35:38
问题 I'm working on an app and encountered a strange behavior on 8.1 Devices (Pixel2, Nexus5x), so I wrote a small App to verify this behavior. MainActivity is locked to portrait mode while LandscapeActivity is locked to landscape . MainActivity starts the LandscapeActivity for Result. Screen Switches from portrait to landscape as expected. When LandscapeActivity is finished it propagates the Result to MainActivity , while switching back to portrait (as expected). But Sometimes I encounter kind of

flash torch functionality not working through app-widget in nexus 5

╄→尐↘猪︶ㄣ 提交于 2019-12-05 17:31:38
Flash is turning-on fine from application (added surface_view to the layout), when I try to turn-on flash through app-widget it's not working. I used Camera and SurfaceView Here is the code I am using Camera mCamera; SurfaceView preview; mCamera = Camera.open(); mCamera.setPreviewDisplay(preview.getCameraHolder()); Parameters params = mCamera.getParameters(); params.setFlashMode(Parameters.FLASH_MODE_TORCH); mCamera.setParameters(params); mCamera.startPreview(); Added permission and features in Manifest are: <uses-permission android:name="android.permission.CAMERA" /> <uses-permission android

What is the right screen size and density configuration of Nexus 6?

为君一笑 提交于 2019-12-05 03:22:43
My app doesn't list Nexus 6 as a supported device in Google Play Console. I read the blog post Getting Your Apps Ready for Nexus 6 and Nexus 9 which says: Nexus 6 has a quantized density of 560 dpi , which falls in between the xxhdpi and xxxhdpi primary density buckets. There is a paragraph exactly about my problem: Make sure you are not filtered on Google Play If you are using the element in the AndroidManifest.xml file, you should stop using it because it’s not scalable to re-compile and publish your app each time new devices come out. However, if you must use it, make sure to update the

What USB driver should we use for the Nexus 5?

我怕爱的太早我们不能终老 提交于 2019-11-27 10:54:50
As of the time of this writing, Google does not provide a USB driver (for Windows) for the Nexus 5. The usual link ( http://developer.android.com/sdk/win-usb.html ) shows Windows USB drivers for several of the Nexus's line. However, the "Nexus 5" is not included. Note that the Nexus " S " (letter- S , not number- 5 ) IS supported. Also, from this site, the latest version of the current download is version-8, July-17-2013. When I compare this with its predecessor, version-7, the files are the same. Until Google fixes this, what are we to do? How can we debug and develop for the Nexus 5?