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

can android os capture Bluetooth Mouse right-click and wheel event?

I have an andriod 2.3.5 phone,it can connect to a bluetooth mouse. But I find it only response to left-click and mouse-move. if (event.getAction() == MotionEvent.ACTION_DOWN) {//Left Button } else if (event.getAction() == MotionEvent.ACTION_UP)…
gezhonglunta
  • 1,301
  • 3
  • 13
  • 17
2
votes
2 answers

Android hardware buttons position

Is it possible to know position of hardware settings button? I want to write an intro for my programm and show the user how to use it's features.
Yara_M
  • 633
  • 9
  • 29
2
votes
0 answers

Drivers for a USB camera on Android

A company manufactures a USB camera (video & stills) that they want to pair up with an Android software interface. The camera requires custom drivers on Windows, and I expect it does on Android also. I know Android apps well, but not the low-level…
Ollie C
  • 28,313
  • 34
  • 134
  • 217
1
vote
2 answers

Android Multitouch - Irregular Finger Tracking

I have designed a simple multitouch system that tracks finger location, and their status on the screen. The way that the program is designed, when two fingers are put down, they are assigned a number based on the order of placement. If finger one…
Nathan Tornquist
  • 6,468
  • 10
  • 47
  • 72
1
vote
1 answer

How to start with call cost app for android?

I want to design an application to display a dialog containing call duration and call cost after call finished. In that app I need to: 1) calculate real call duration 2) display dialog after call finished I don't know how to start, so any help or…
thalsharif
  • 357
  • 2
  • 6
  • 18
1
vote
1 answer

Android USB Bit counter

I would like to connect a reed switch to the USB port on my HTC evo. I would like to either determine when two of the pins on the USB port are the same potential or, connect a small battery to the switch and read the high and low values. Ultimately…
1
vote
0 answers

Where can I specify the physical dimensions (width, height, depth) of a custom Android emulator in Android Studio?

I want to test my application on a particular Android device but the Android device is not in the list of emulators provided by Android Studio. I did set up a new device, however, I do not know from where to set the physical dimensions of the…
1
vote
3 answers

How can I get text data from Handheld QR code scanner?

I am using honeywell barcode scanner(HF680). And I connected it to my Android Device(Desktop). I need to get the scanned data as text. It works like keyboard. So, It seems like I can't get the data internally like Camera Scanning. How can I approach…
c-an
  • 3,543
  • 5
  • 35
  • 82
1
vote
0 answers

Android: How to handle hardware button events when the device is in sleep mode (with root access)

Short about the app: I have a launcher app, it will be embedded in to the custom ROM in the future, so the app will have root access. I need to handle mechanical hardware button events after the screen is off. I've done some research, but can't…
Robert Apikyan
  • 1,972
  • 1
  • 20
  • 23
1
vote
1 answer

Is there any access to send and receive radio waves using cellphone antenna?

There is so many Walkie Talkie APPs all around the web, that are using WiFi or Bluetooth to transferring the data (at least all the ones I've ever seen) and none is using inner antenna to transmit data over radio waves as a real Walkie Talkie…
Reza Amya
  • 1,494
  • 2
  • 25
  • 40
1
vote
3 answers

How do I know which resources will be loaded for my device?

If I have any device at hand, how can I know which resources will be used by my apk? e.g. drawable-hdpi or drawable-xhdpi or drawable-xxhdpi I am not asking in theory which of these folders is loaded when but specifically if I have a random device…
1
vote
2 answers

Android Things, how to catch a process kill

Since Android Things only runs one app at a time, I'm not sure how the rules differ from normal Android OS when it comes to killing/backgrounding/resuming a process. My Android Things use case is not trivial. I'm controlling actuators with PWM…
honkbert
  • 135
  • 1
  • 7
1
vote
1 answer

AOSP Dual Monitor Support at Conflicting Aspect Ratios

I am creating an In-Vehicle Infotainment (IVI) system running Android. The development board I am using is the Rock960 from 96boards.com This board supports dual display output which is perfect because it needs to drive both the Head Unit (HU) and…
1
vote
0 answers

Android: Respond to volume down from wired headset

How do I intercept volume down button event from a wired headset? The story is: There is that headset with a 3.5mm TRRS plug and a single button. Unfortunately, that button applies 470Ω which means "Volume down" instead of a simple short (0Ω) to…
Maneki Neko
  • 1,177
  • 1
  • 14
  • 24
1
vote
1 answer

Integrating R307 fingerprint scanner with Android

In my application I need to capture and store fingerprint data and use it for authentication. As Android fingerprint API does not provide functionality to store fingerprints per user, I have decided to use external scanner. I am willing to use R307…