Questions tagged [android-hardware]

Devices and platforms running the Android operating system.

android-hardware refers to all the devices and platforms that run or could run the Android operating system. That includes, but not limited to, smartphones, tablets, and computers.

217 questions
2
votes
1 answer

Get Android Phone Specs Programmatically

I am trying to classify Android phones Running my Apps by something related to the performance. I want to cut out all low quality devices to look at performance/crash rates on good quality phones. I have the Device Model. For example, on the Samsung…
Keith
  • 4,646
  • 7
  • 43
  • 72
2
votes
1 answer

NullPointerException with zxing library for QR scanning (android app)

I need an independent QR scanner in my app, so I've added the zxing library to my Android app - I've followed this link - I added the dependencies in build.gradle, and this is how I call the method: btnScanQR.setOnClickListener(new…
eee
  • 179
  • 1
  • 9
2
votes
0 answers

OnPause() or onKeyDown() in Accessibility service call

How to get the action on using onKeyDown() in Accessibility Service class when a home or menu button clicked? I need to perform some action when home or menu button is clicked. Can anyone help me? The code below will get the action of home and menu…
user3546693
  • 364
  • 3
  • 18
2
votes
1 answer

Android - How to identify if device is ARM 64

I am facing few library errors on new Android ARM 64 devices, is there a way to identify ARM 64 devices so that I can bypass my code for those particular devices? Thanks
user45678
  • 1,504
  • 6
  • 29
  • 58
2
votes
1 answer

Android camera2 Lens intrinsic calibration

I downloaded an Android camera2 demo, it ran well. Now I want to get the intrinsic matrix of the camera by querying the CameraCharacteristics. My code is private void setUpCameraOutputs(int width, int height) { Activity activity =…
2
votes
0 answers

How to set fixed focus area in Android camera?

I'm developing an Android app that use camera to capture image for futher step. For good result camera should focus on fixed area (like center area of the image). I'm using params.setFocusMode(Camera.Parameters.FOCUS_MODE_AUTO); …
2
votes
3 answers

how can we get the Hardware information of android device programmatically?

As I have refer the old post i.e. Android: Get Hardware Information Programmatically but didn't find any relavant answer and also tried to find the solution in google but all in vain. Please help me go forward
Rajat kumar
  • 884
  • 9
  • 25
2
votes
1 answer

Interrupt ID to name mapping

I am running some benchmarks on a Linux system, and recording the interrupt arrival by noting the ID of the interrupt's. I would like to map the interrupt ID to its name. For example, interrupt no. 7 corresponds to pagefault exception. cat…
2
votes
0 answers

Can I programmatically disable/enable the physical keyboard?

I want to enable the soft keyboard when a scanner is plugged into the device. In order to do this I need to disable the hardware keyboard Is there a way to disable/enable the use of hardware keyboard in Android 3.0+ programmatically?
2
votes
0 answers

Custom Zoom On Google Glass, Image captured is not what preview shows

So I successfully implemented my own zoom feature on the Google Glass because right now Google did not add this feature. It looks like so: @Override public boolean onFling( MotionEvent e1, MotionEvent e2, float velocityX, float velocityY ) { …
2
votes
0 answers

Simulate Minix Neo X5 ROM with Android Virtual Device (AVD)

I had tried to simulate Minix Neo X5 ROM by following these guides "test android rom into sdk emulator before installing to your phone" and "how to use android emulator to test". Adding to the guides: I had downloaded the Minix Neo X5 Android 4.2.2…
Diblo Dk
  • 585
  • 10
  • 26
2
votes
1 answer

How to access hardware using Gamesalad tool?

I'm learning on GameSalad tool and I'm wondering if I can access the hardware using this tool, for example:- can I turn on the flash light in the back of my mobile phone?
2
votes
0 answers

Android external usb device test cases

I have an external sensor connected with Android phone through USB port. The so-far implementation of application is an android service which after initialization of sensor is polling it for values. Sensor comes with its API own and initialization…
Panos Karampis
  • 557
  • 6
  • 18
2
votes
1 answer

Phone light Turn On when incoming call come

I got incoming call and working well. But when my screen is turn off and an incoming call is come. Then my screen light is not on. I am using this code in onCreate():- getWindow().addFlags( …
user2160008
  • 379
  • 2
  • 5
  • 20
2
votes
0 answers

How to remotely monitor health of android device?

We have an Enterprise Android app, which runs on hundreds on Android devices. App is an important part of our business operation. It intensively uses GPS, 3G network (HTTP to server) & Display. It runs for at least 12 hours a day. We have certain…
Sangharsh
  • 2,999
  • 2
  • 15
  • 27