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
6
votes
0 answers

Jacinto6 board with Android: how to build a portrait firmware?

I'm developing a custom Android firmware for the Jacinto6 board (dra7xx). By default the board is landscape (800x480). I need to develop a portrait version of the firmware so that: when flashing the firmware, in recovery, the board can be handled…
6
votes
1 answer

How to determine if an Android device has a screen i.e. whether it is an Android set top box?

I know one can obtain screen sizes, but I would like to know if someone has ever been able to find out if the Android device has a screen or not. i.e. whether it is a set top box or not. I guess screen size returned should be "zero", but I am not…
Carlos F
  • 893
  • 2
  • 12
  • 30
6
votes
5 answers

Retrieve Android Device Manufactured date Programmatically?

I need to find the Android Device manufactured Date through my code I have gone through the android.os.Build API But Didn't find such a method is possible to get Android Device Manufactured Date or Not?
Software Sainath
  • 1,040
  • 2
  • 14
  • 39
6
votes
2 answers

Getting QualComm encoders to work via MediaCodec API

I am trying to do hardware encoding (avc) of NV12 stream using Android MediaCodec API. When using OMX.qcom.video.encoder.avc, resolutions 1280x720 and 640x480 work fine, while the others (i.e. 640x360, 320x240, 800x480) produce output where chroma…
6
votes
2 answers

Android accelerometer max values

So I have been searching for about 3 hours and I have not come up with a good answer/solution. My Question is: Why am I getting a max acceleration value of only about 34 m/s^2 or about 3.5 Gs (34/9.81). Is it because hardware restrictions or…
0gravity
  • 2,682
  • 4
  • 24
  • 33
6
votes
1 answer

HDMI out programming for dual screen

In my search I found that, the Android SDK provides no support for controlling HDMI port activities and handling HDMI output, as of now. Though certain device manufacturers like Motorola (don't know if any other does that too) provide API's for a…
ssup
  • 61
  • 1
  • 3
5
votes
1 answer

Android Camera2 app breaks after leaving camera activity and re-entering

I'm trying to implement a simple camera photo capture app based on the tutorial located here: https://android.jlelse.eu/the-least-you-can-do-with-camera2-api-2971c8c81b8b The app works great the first time. The preview shows, and I can take pictures…
5
votes
0 answers

Android - How to get the list of Hardware Buttons of the smartphone device where my app is running

According to the fact that (of course) an app can run on different devices, I'm searching a way to list the hardware buttons available on the smartphone. Usually Volume, Power are always there. Sometimes a button that launch camera is present,…
Fausto70
  • 541
  • 5
  • 20
5
votes
3 answers

Disable the power button in activity

I'm developing an app in which there is a requirement to not let the user to lock the screen or turn off the android device using power button,so I have to disable the power button and over ride the power button functionality, I have searched alot…
Talib
  • 1,134
  • 5
  • 31
  • 58
5
votes
1 answer

How can I program various android powered phone buttons to launch my app?

I have a requirement in my app where I have to select various buttons like Search, Volume Up, Volume Down, Back buttons to launch my app. I know that I have to override the functionality of the these buttons but what API do I have to use and…
Muhammad Maqsoodur Rehman
  • 33,681
  • 34
  • 84
  • 124
5
votes
1 answer

Can an Android modifier key fallback on an action?

I'm working on an input device that has a button that I'd like to act both as a home button when pressed by itself, but also work as a modifier for the other buttons on the device. I know you can do this in the kcm file with other buttons, and have…
Nick Badal
  • 681
  • 1
  • 8
  • 26
4
votes
0 answers

Serial Port Communication in Android

I am trying to connect a TPMS(Tire Pressure Monitoring System) with my android application.TPMS is connected with my android device through Serial Port. As i found that serial manager api are now hidden in android. I just wanted to know alternate of…
Anshika Bansal
  • 320
  • 2
  • 9
4
votes
0 answers

CameraDevice 2 API Holding resource after close

I get the camera resource in Android activity onResume and onPause call CameraDevice .close(); I am running into issue where user quickly opens another camera app before CamreaDevice is released is causing other camera app to error out saying…
bond
  • 11,236
  • 7
  • 48
  • 62
4
votes
2 answers

disable hardware keys (home,back,....) in android 4.4

I am writing a launcher for kids, it has its own applications and folder and features. so when kids wants to play with parents device , parents run this launcher and they can be sure that their kids are not able to mess with their data. and to exit…
Sasa
  • 565
  • 5
  • 15
4
votes
1 answer

Market share of android devices based on different hardware platforms

Is there a way to find information about market share of Android devices based on different hardware platforms? This question came to my mind as I was developing an application that did some complex processing, which could benefit from specific…
Max Malysh
  • 29,384
  • 19
  • 111
  • 115
1 2
3
14 15