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
0
votes
1 answer

Bluetooth/Wifi small network

I want to make an app that connects to devices in the near vecinity and exchanges data. I want to have as high range as possible using the phone's hardware. 1.What can I use and which is better: the bluetooth or wifi? 2.What is the range I can…
Mihai Bratulescu
  • 1,915
  • 3
  • 27
  • 43
0
votes
0 answers

How can I implement Android servo control using WiFi?

I am Electronic Engineering student doing my final year project. My project is controlling two servos motors with an Android tablet (2.3) using WiFi. What I set out to do is: when I enter the characters in my text box (A-Z), it turns the angle…
0
votes
1 answer

Calling a method in another Activity in Android for setting screen brightness

I have 2 Activities, MainActivity and VideoPlayerActivity. In the MainActivity I have a socket that I can connect to it from my PC using telnet. Then I can write line and it will execute the commands I send to it. for example if I write start it…
Dumbo
  • 13,555
  • 54
  • 184
  • 288
0
votes
1 answer

Trying to get OTG to work on Android device

I am working on a custom hardware for an Android-tablet using the VNC2 chip. On the VNC2 chip I have flashed some custom firmware I have made. I have set the USB VendorID to 0403 and USB ProductId to 6001. I also have an Android-app I am working on.…
www.jensolsson.se
  • 3,023
  • 2
  • 35
  • 65
0
votes
2 answers

Enadable mobile data/mobilenetwork is not working

I want to enable the mobile network/data-network programatically. For this I am using the code given below but its not working. I didn`t receive any error. Toast pops up and says that "Mobile Network has been enabled" but its actually not enabled.…
Rida Shahid
  • 386
  • 7
  • 22
0
votes
2 answers

Accessory Development Kit hardware compatibility

I am new to Accessory Development. If I was to build a custom hardware component what should it support in order to be able to communicate with Android applications via USB? I am doing a research for a project and the clients are hardware…
gop
  • 2,150
  • 5
  • 26
  • 54
0
votes
3 answers

OMXCodec::onEvent -- OMX Bad Parameter

I have been trying to use OMXCodec through Stagefright. I have implemented the code for ICS version of Android.I have two classes CustomDataSource which derives MediaSource and another is CustomOmxCodec which calls OMXCodec::Create method and…
sam18
  • 631
  • 1
  • 10
  • 24
0
votes
2 answers

Block Android device's Hardware Access Programatically

I have to write an application that would work as 'Device Hardware Admin'. The user should be able to enable or disable any feature of hardware according to his preferences. I am adding the screenshot of application UI below: These settings are…
MysticMagicϡ
  • 28,593
  • 16
  • 73
  • 124
0
votes
2 answers

What is the length of Android serial number (ro.serialno)?

I get the serial no from Class c = Class.forName("android.os.SystemProperties"); Method get = c.getMethod("get", String.class, String.class ); String serialNo = (String) (get.invoke(c, "ro.serialno", "")); But what is the…
Howard
  • 19,215
  • 35
  • 112
  • 184
0
votes
1 answer

How to check whether the android device is connected to a Bluetooth mouse?

When my application starting, I want to check whether the android device is connected to a Bluetooth mouse, and listening to the connected event. How can I do it? Thanks!
gezhonglunta
  • 1,301
  • 3
  • 13
  • 17
0
votes
1 answer

Finding Hardware availability "programmatically" on android devices

I am developing an application based on GPS / Accelerometer / Gyroscope and Linear Acceleration. I wanted to know, is there any way I can find out the hardware (Accelerometer / Gyroscope and Linear Acceleration) availability on my device. Because,…
Shweta
  • 807
  • 3
  • 11
  • 24
0
votes
0 answers

How does the System.loadLibrary() loads the shared library in Android?

How does the System.loadLibrary("library-name") works in android.Does it invokes the hw_get_module() of dlopen() of libhardware.so or via linker-loaded method ? Rgds, Softy
Raulp
  • 7,758
  • 20
  • 93
  • 155
0
votes
2 answers

Creating an Android app to respond to a specific hardware Input

I'm a newbie to android and i'm trying to make an app that respond to a hardware input like camera button, handsfree call answer button,etc. For example take camera button. When it is pressed the default camera app is launched. What I want to do is…
Ajitha
  • 239
  • 3
  • 10
0
votes
1 answer

Using Android Voice Control launch my Activity

I have read this post on SO and I have tried the code to launch my own speech recognition activity. It worked!. So my question is that how can I customize the action of the built in voice command button(hardware) to launch the activity which I have…
rahulserver
  • 10,411
  • 24
  • 90
  • 164
0
votes
1 answer

Reading input of hardware keyboard within application

I want to know if there is any provision that allows me to read the input key from a hardware keyboard present on the phone or connected externally in android . I basically am building an application that needs to have special shortcuts set . I…
1 2 3
14
15