For programming questions specific to hardware developed by HTC that runs the Android operating system.
Questions tagged [htc-android]
126 questions
2
votes
2 answers
HTC One X and Android debugging on eclipse
I've been working with android for almost a year now, and I still have this problem.
I can't connect my HTC One X to use on eclipse. It is weird, because it worked one time (only one time). It also works if I connect other devices (a friends phone…

Marshall
- 1,353
- 3
- 17
- 38
2
votes
1 answer
google cloud messaging errors on some devices
I'm developing an Android app that should use the GCM to deliver notifications.
At the moment, I'm encountering problems with devices <= Android 4.0.4.
With my Galaxy Nexus (4.3), Nexus 7" (4.3) and a Fujitsu Tablet (4.1.1) I receive correctly the…

Garumbo
- 105
- 9
2
votes
1 answer
Choppy Audio when recording in 16khz mono PCM (WAV) on HTC One
I'm developing an app that requires PCM audio to be recorded 16khz/16bits/mono (1 channel). It works perfectly on a Motorola ATRIX, but the recording is choppy throughout the file on a HTC One. I think it is because it is still trying to record in…

rmooney
- 6,123
- 3
- 29
- 29
2
votes
2 answers
Unable to use both cameras of Evo 4G using OpenCV4Android
I'm planning to calculate disparity map by taking two pictures from the two back cameras of Evo 3D. However, I'm able to use only one camera. I tried different index.
index
0 gives me left camera (one of the back cameras)
1 gives me front…

Froyo
- 17,947
- 8
- 45
- 73
2
votes
2 answers
Can't pick image from gallery when "don't keep activities" mode is on
In "developer options" settings I use "don't keep activities" mode. I need pick image from gallery and use its URI in my application.
The code which opens the gallery in order to pick image is:
Intent intent = new Intent(Intent.ACTION_PICK,…

Eugene
- 17
- 4
2
votes
1 answer
HTC One X KeyCode always returns zero
I have a need to validate text entered into a textbox using JavaScript before it's sent off to a third party to be acted upon.
To do this, I'm using the browserEvent.keyCode parameter to get the keycode sent to the browser on the key-up event, then…

Dark Hippo
- 1,255
- 2
- 15
- 35
2
votes
1 answer
Android AutoCompleteTextView Crash on Item Selection (only on HTC Thunderbolt)
Have been getting a really weird error recently from an android app I am developing.
Part of the app has a Map view with a list of locations displayed as an AutoCompleteTextView. On every device and emulator I tested this function performs as…

Solder Smoker
- 283
- 1
- 6
- 14
2
votes
1 answer
Does HTC opensense SDK work only on android devices with HTC Sense?
Recently I just discovered the HTC opensense SDK.
Will this SDK only work on HTC devices, or devices with HTC Sense installed, or will it work on other devices?
Link: http://www.htcdev.com/devcenter/opensense-sdk
Has anyone used this SDK before?

AndDev
- 316
- 1
- 2
- 7
1
vote
2 answers
HTC Softkeyboard key that hidden the keyboard
On the HTC keyboard there is an additional key that allows the
keyboard to be hidden. When this key is pressed the keyboard is
hidden but no KeyEvent.
How to get this event or callback method maybe??
I can't use this method protected void…

user430926
- 4,017
- 13
- 53
- 77
1
vote
2 answers
Supporting Multiple resolution devices Android
I am stuck in a situation.
I created an application for Samsung Galaxy Tab 7". The same application when i run on the HTC Flyer it shows very small fonts.
I tried following :
I thought may be the screen of HTC Flyer is xhdmi so i crated folders…

Abhinava
- 1,030
- 9
- 19
1
vote
1 answer
Adding HTC Widgets to AppWidgetPicker Intent
I am writing a homescreen replacement App. I'd like to allow users the same selection of Widgets that are available on the HTC Sense Homescreen on HTC phones.
Is there documentation anywhere of the ComponentName details required to be added to the…

Yossi
- 1,226
- 1
- 16
- 31
1
vote
2 answers
android device OS upgrade for app development
I am thinking about getting an used HTC Droid Incredible to develop Android apps, but I think it has Android 2.2 on it. Is the OS upgradable to the current Android version? If I am using the old Android OS 2.2 for testing of my apps, will the apps…

Paul
- 279
- 5
- 14
1
vote
2 answers
unable to test android application on HTC wildfire
I have a htc wildfire phone and i have developed one application in android 2.1 using eclipse IDE now its time to run it on the actual device.
so far i have done following.
i have set my application as "debuggable" in my Android Manifest.
i have…

Hunt
- 8,215
- 28
- 116
- 256
1
vote
1 answer
Issue with creating new xml files
I'm trying to create a new xml file in /res/drawable (developing for android in eclipse)
the message i get is ;
Multiple annotations found at this
line:
- Premature end of file.
- error: Error parsing XML: no element found
When I'm…

Alex H.
- 341
- 1
- 4
- 4
1
vote
0 answers
HTC devices crash with MediaRecorder
Htc device crashes with using MediaRecorder for recording screen of the device.
When i stop recording on the home screen of device, i dont the issue.
But when i stop recording on any app screen, it crashes the surfaceflinger library.
Here the code…

Sumeet Devidan
- 31
- 4