nexus-4

Nexus 4 read Mifare Classic card UID

﹥>﹥吖頭↗ 提交于 2019-12-02 10:05:57
Currently we are developing NFC applications for Android.  Our experience Developed POS NFC control system using NXP PN5xx chips for control of Mifare Classic (1K) and CEPAS standard Developed Android NFC control system for MiFareClassic and Ultralight C in Galaxy Nexus (using NXP NFC chipset) Developed Android NFC control system for Ultralight C in Nexus 4 Our challenge: we want to control MiFareClassic 1K card in our POS machine (with NXP chip) and in new Android tablets (with Broadcom chip), we already have the installed card base and can not replace them.  - We know Nexus 4 has changed the

setPreviewFpsRange not working despite values being within getPreviewFpsRange's range

余生长醉 提交于 2019-11-30 10:34:18
This simple code: Camera.Parameters params = currentCamera.getParameters(); params.setPreviewFpsRange( 10000, 15000 ); currentCamera.setParameters( params ); does not work on my Nexus 4 (or my Motorola Atrix), despite the allowed values being between in the allowed range of 5000 to 120000. When I try to use any min or max values different than 5000 and 120000, respectively, I get: setPreviewFpsRange(const android::QCameraParameters&): error: FPS range value not supported which is silly. Also, I tried this code on my older Motorola Atrix (which shows a valid fps range to be between 10000 and

ADB not recognising Nexus 4 under Windows 7

天大地大妈咪最大 提交于 2019-11-30 06:11:20
问题 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 chooser pops up, but it doesn't show anything on the hardware section. I've turned debugging, third-party apps, and mock locations all on on my phone as well. Is this because the phone is still new? Is there a way of making my Nexus work with Eclipse?

getSupportedPictureSize() returns a value which is not actually supported by Nexus4

亡梦爱人 提交于 2019-11-28 21:59:29
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: List<Camera.Size> sizes = parameters.getSupportedPreviewSizes(); double minDiff = Double.MAX_VALUE; for (Camera.Size size : sizes) { if (Math.abs(size.width - width) < minDiff) { screenWidth = size.width; screenHeight = size.height; minDiff = Math.abs(size.width - width); } } Everything works perfectly up to this point. Now, due to the nature of the

ADB not recognising Nexus 4 under Windows 7

北战南征 提交于 2019-11-28 15:04:42
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 chooser pops up, but it doesn't show anything on the hardware section. I've turned debugging, third-party apps, and mock locations all on on my phone as well. Is this because the phone is still new? Is there a way of making my Nexus work with Eclipse? Nothing is showing up under ADB devices in the command prompt. Ben I had a similar sounding situation

Android Studio is installing old apk on device

雨燕双飞 提交于 2019-11-28 05:57:44
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 resource files, I still get the old apk installed on the device or emulator. What do I need to do to get it to run current code? Is it a building config? Is it a known issue with Android Studio? Or with a Nexus 4 device? This is the second time it has happened, and I resolved it(then) after trying one of the steps below. They have not worked for me again.

Can't connect Nexus 4 to adb: unauthorized

二次信任 提交于 2019-11-27 10:37:47
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 message: C:\Program Files (x86)\Android\sdk\platform-tools>adb devices List of devices attached 007667324ccb229b unauthorized What can be the reason for this error? I had similar situation. Here is what I did: Try to check and uncheck the USB Debugging option in the device. (if not working, try to unplug/plug the USB) At some point, the device should show up a

Can't connect Nexus 4 to adb: unauthorized

丶灬走出姿态 提交于 2019-11-26 17:57:30
问题 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 message: C:\Program Files (x86)\Android\sdk\platform-tools>adb devices List of devices attached 007667324ccb229b unauthorized What can be the reason for this error? 回答1: I had similar situation. Here is what I did: Try to check and uncheck the USB Debugging option

Nexus 4 not showing files via MTP

帅比萌擦擦* 提交于 2019-11-26 12:14:24
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) { super.onCreate(savedInstanceState); setContentView(R.layout.main); CustomerQueryRqType customerQueryRequest = new CustomerQueryRqType(); Serializer serializer = new Persister(); File myFile = new File(Environment.getExternalStorageDirectory() + "/customerQueryRequest.xml"); try { boolean created = myFile.createNewFile(); serializer.write(customerQueryRequest, myFile); }

Nexus 4 not showing files via MTP

别来无恙 提交于 2019-11-26 05:52:18
问题 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) { super.onCreate(savedInstanceState); setContentView(R.layout.main); CustomerQueryRqType customerQueryRequest = new CustomerQueryRqType(); Serializer serializer = new Persister(); File myFile = new File(Environment.getExternalStorageDirectory() + \"/customerQueryRequest