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
1
vote
1 answer

Android: Transformer tablet keyboard registering two Enter key inputs

I'm doing a quick log statement in the MainActivity and getting two Enter key presses logged whenever the physical Enter key is pressed on the ASUS Transformer tablet physical keyboard. The key is not being held down. public boolean…
calico-cat
  • 1,324
  • 6
  • 20
  • 36
1
vote
0 answers

Rapid succession of taps interpreted as a single moving touch event? (tested on Nexus 10)

I'm developing an Android application in which a user may be rapidly tapping with multiple fingers. Initial testing on the Nexus 10 tablet reveals that a tap rapidly followed by another tap nearby is often interpreted as a single touch-and-slide…
willw
  • 11
  • 2
1
vote
3 answers

How to disable all hardware keys programmatically in Android?

I am developing Android application with lock functionality. please suggest me how to disable all the hard keys programmatically. here I am using below code to disable back button. I want like this functionality for all hard keys like…
Raghu Mudem
  • 6,793
  • 13
  • 48
  • 69
1
vote
0 answers

How can I emulate Bluetooth mouse wheel event on android emulator running android 4.1

Now I don't have any android 4.1 device,but the boss ask to process the bluetooth mouse's wheel event in my android application. public boolean onTrackballEvent(MotionEvent event) { if(event.getButtonState() == MotionEvent.BUTTON_TERTIARY) …
gezhonglunta
  • 1,301
  • 3
  • 13
  • 17
1
vote
0 answers

Android: Webview turns out to be white in color after html/javascript loaded.

Working on the webview on Android 4.0 and above sets the webview color as white after a html/javascript page is loaded onto it. After i went to developer options and unchecked the FORCE GPU RENDERING. After this it works fine. But when i do it…
1
vote
1 answer

Linux device driver: how to assign group/user permission and use it?

I know we can assign permission to device driver to run on root/group/user mode using udev config scripts but I am not sure how to run program which is using driver in Android HAL to run in specific user mode? I could execute program only after I…
Rajesh SO
  • 183
  • 1
  • 3
  • 16
1
vote
2 answers

How to use FLAG_ACTIVITY_REORDER_TO_FRONT and onBackPressed() Together

I'm creating a Wizard-style application, where I need to keep the user data between activities A and B alive. A has a Next soft button and B has a Back soft button. When using FLAG_ACTIVITY_REORDER_TO_FRONT I can keep the user data alive when the…
Jorge Gil
  • 4,265
  • 5
  • 38
  • 57
1
vote
1 answer

specific android processor details

I have gone through the forums and got a method to get the android processor information as a string! well, it returns lots of information that is irrelevant to a user. I want to get the specific details only like Processor Name or type Avilabale…
1
vote
1 answer

getting storage information in android

I was wondering how I can get the information about any memory card, internal storage that an android device have! what I want is the free, used memory amount and if possible the extra details about memory card! ( not the internal Storage )
Imesh Chandrasiri
  • 5,558
  • 15
  • 60
  • 103
1
vote
3 answers

How to make android phone flashlight blink?

I am trying to make the LED flashlight of android phone blink based on binary code like if char = 1 turn LED light on else if char = 0 turn LED off. if ( char == '1'){ params.setFlashMode(Parameters.FLASH_MODE_ON); } if ( char == '0'){…
amaach
  • 55
  • 1
  • 2
  • 6
0
votes
1 answer

Android - implementation discrepancies

I spent a lot of time debugging different problems that were reproducible only on a specific devices. For instance I left my attempts to take a picture from a camera using an Intent. Because only a limited set of the devices behave as…
unorsk
  • 9,371
  • 10
  • 36
  • 42
0
votes
0 answers

How to debug the Sony imx415 camera connect with rk3588

I handle on an ArmSoM-W3 (RK3588) project,but tried couple times still unable to access the imx415 camera.In my limited experience with imx415 camera I have looked around and apparently I have got the solution here below.Wanted to know if it’s good…
0
votes
1 answer

Where in Android source does the KeyEvent dispatcher send to onKeyDown?

Where in the Android source code does Android call onKeyDown() when it receives notification from the hardware that a key was pressed?
Tyler
  • 19,113
  • 19
  • 94
  • 151
0
votes
0 answers

WearOs Physical Home click event detect programmatically in JetPack Compose

Is physical button click event is possible to get programmatically in jetpackCompose and whatever if YES then i need an solution or some ideas about how can i achieve this and if NO , Then i need reason that why i can't do this,Here i am Creating…
0
votes
1 answer

Android JAVA QUESTION How do I turn on both the Camera and the Phone Flashlight?

currently I am making an app that requires both the phone camera and the phone flashlight to be turned on. However I am having this problem where 1 overwrites the other. Probably since they are both using the same camera reference. Please, does…