Nexus 4 is Google's fourth Nexus-branded Android smartphone. The phone was designed with and manufactured by LG Electronics.
Questions tagged [nexus-4]
113 questions
166
votes
26 answers
ADB not recognising Nexus 4 under Windows 7
I'm running on Windows 7, and I've updated all the drivers as it says on the Android developer website regarding using hardware devices. However, Eclipse is still not recognising my Nexus 4 when I try to run the application. The Android device…

Rhiokai
- 2,147
- 5
- 16
- 18
153
votes
26 answers
Can't connect Nexus 4 to adb: unauthorized
I have a Nexus 4 with Android 4.3 and I am trying to connect the device to a computer with Windows 7 64bit.
I installed the latest drivers and the latest adb version. I think I tried almost everything and I still get the following…

orS
- 1,531
- 2
- 9
- 5
85
votes
17 answers
Android Device not recognized by adb
My Android device isn't recognized by eclipse nor adb anymore.
My OS is Windows 7 64-bit, and I'm using a Nexus 4 with Stock Android 4.4.2.
Here are some details on the problem:
Yesterday I could run Android Projects from eclipse on my device with…

user3135185
- 913
- 1
- 7
- 13
80
votes
12 answers
Nexus 4 not showing files via MTP
I'm trying to simply write a simple XML file to the SD card and I noticed that my Nexus 4 does write the file, but it is not viewable via the MTP protocol using Windows 7.
code:
public void onCreate(Bundle savedInstanceState) {
…

moonlightcheese
- 10,664
- 9
- 49
- 75
22
votes
14 answers
Android Studio is installing old apk on device
I am developing an Android app using Android Studio (0.89 Build #AI-135.1404660, Built on Sept 3,2014) using both emulator and Nexus 4 device.
I had the same issue with a version prior to that.
The problem is that after I changed my code and…

tinonetic
- 7,751
- 11
- 54
- 79
16
votes
2 answers
Installing USB driver for Nexus 4 (with KitKat) on Windows 8 64-bit - "no compatible software driver"
I'm desperately trying to install ADB USB drivers for my Nexus 4, which (as you might know) are required for any form of Android Development. You could also say, that they are the single most necessary tool used for Android programming, right? I…

Wolf
- 892
- 2
- 8
- 22
14
votes
8 answers
Unknown error code during application install "-505"
I have checked this android 5.0 lollipop app install shows Unknown error code during application install: "-505". But it doesn't seem to address my case as I dont use multiuser env.
I have an app in the playstore which worked fine on my nexus…

humblerookie
- 4,717
- 4
- 25
- 40
13
votes
3 answers
Nexus 4 Camera preview aspect Ratio always requires 16x9 surfaceview? Why
Device Nexus 4
Android ver: 4.2.2
Hoping someone else has found this and can explain how to resolve it....
Nexus 4 supports the following preview sizes: -
W:1280 H:720 Ratio: 1.777777
W:800 H:480 Ratio: 1.6666666
W:768 H:432 Ratio: 1.7777778
W:720…

Iain
- 131
- 1
- 4
7
votes
2 answers
App crashes on Nexus 4(4.4.4) due to background image
I have set background image to root layout. This works fine for nexus 5(5.0.1) and nexus 5x(6.0.1).
But on nexus 4(4.4.4) app crash and gives following errors
android.view.InflateException: Binary XML file line #19: Error
inflating class
…

Sangram Haladkar
- 707
- 9
- 22
7
votes
6 answers
Bluetooth Low Energy Service Discovery with Android 4.3 on Nexus 4
I'm trying to use a BLE module (bluegiga BLE112) with my nexus 4 (android 4.3). I can connect, get the name of the device, connect to GATT, but service discovery fails.
Here's how do the initial gatt connection (which seems to work…

jnewt
- 197
- 1
- 3
- 13
7
votes
3 answers
getSupportedPictureSize() returns a value which is not actually supported by Nexus4
I have extended a SurfaceView for displaying the camera feed for a very simple camera application. To find the optimal preview size for each device, I used this sample code which is used in almost all the open source camera apps I have seen:
…

Faraz Hassan
- 663
- 1
- 6
- 24
6
votes
5 answers
Any idea why adb does not recognize my nexus 4 on mac
I can't figure out why my nexus 4 is absent from the list of adb devices. I've tried the following
$ adb kill-server; adb devices
$ echo 0x18d1 >> ~/.android/adb_usb.ini
$ adb kill-server; adb devices
Changed usb computer connection type to PTP…

bluesman
- 2,242
- 2
- 25
- 35
6
votes
1 answer
How to debug OPENGL ES 2.0 error on Nexus 4 without having the device?
I have an android app with a bunch of photo filters. Filters are implemented with OpenGL ES 2.0 so when i want to save the final image i make glReadPixels call. It works on every device i have tested on, however it seems it does not work on Nexus 4.…

Tony
- 1,603
- 3
- 21
- 40
5
votes
2 answers
Android Fullscreen Fragment Dialog Bug
I created a "fullscreen" DialogFragment, in which I added a tranparent-black background. The end result can be seen in the screenshot below:
Here's how I made it:
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
…

Felipe Ribeiro R. Magalhaes
- 771
- 2
- 6
- 27
5
votes
2 answers
Nexus 4 camera flash doesn't fire when focus mode is set to continuous-picture
I've encountered a strange issue, specifically on a Nexus 4 (though it may exist on other devices), where the camera flash won't fire when the focus mode is set to FOCUS_MODE_CONTINUOUS_PICTURE. The same code works fine on a Galaxy Nexus running the…

twaddington
- 11,607
- 5
- 35
- 46