htc-android

SharedPreferences EditText dialog squashed on HTC WildFire

前提是你 提交于 2019-12-08 00:27:53
问题 I'm using SharedPreferences in my Android app in the standard way. On the HTC WildFire device (resolution 240x320), the EditText is squashed up when the virtual keyboard is displayed. Has anyone else come across this is there a solution? I've been stumped for days. My code/XML is pretty straightforward: public class PrefsActivity extends PreferenceActivity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate

Building AOSP for my HTC Device

我是研究僧i 提交于 2019-12-07 20:35:34
So, I decided to do something about the AOSP ROM deficiency of my HTC device and build one of my own. I have the kernel source archive from HTCDev, which as the kernel source .zip and a platform.zip file in it (which further has the 'development' and 'external' directories in it). This is unlike Sony's devices, which are already hosted on GitHub with the required configurations and a very helpful guide to building your own AOSP ROM. For HTC, I am not understanding what goes where. I have followed the Sony guide to the point where I need to download around 10GB of source code, that unpacks into

Speech Recognizer on HTC One M7

旧时模样 提交于 2019-12-07 15:02:16
问题 I wrote a speech recognition app using android's built-in speech recognition classes. The following exception shows up in my developer console when the startListening function is called on the speech recognizer object obtained using createSpeechRecognizer(context) function. SecurityException: java.lang.SecurityException: Not allowed to bind to service Intent { act=android.speech.RecognitionService cmp=com.htc.android.voicedictation/.VoiceDictationService } Any ideas why this is happening and

ConsumerIrManager not working on HTC m8 lollipop

怎甘沉沦 提交于 2019-12-07 08:00:20
问题 before the official lollipop update ConsumerIrManager was working fine with the HTC m8 (And so did the official HTC IR samples from htcdev) - After update it doesnt work anymore ConsumerIrManager gives Error-16 any idea what HTC may have changed? 回答1: I recently had the same issue on the HTC One M7 once updated to Lollipop. I pulled some JARs and APKs from the phone and decompiled them to found that they are not using the ConsumerIrManager like every device is doing since Android 4.4. Worst,

SharedPreferences EditText dialog squashed on HTC WildFire

别等时光非礼了梦想. 提交于 2019-12-06 08:46:38
I'm using SharedPreferences in my Android app in the standard way. On the HTC WildFire device (resolution 240x320), the EditText is squashed up when the virtual keyboard is displayed. Has anyone else come across this is there a solution? I've been stumped for days. My code/XML is pretty straightforward: public class PrefsActivity extends PreferenceActivity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.preferences); // don't display hidden preferences

maxlength attribute of input in html does not work on HTC One M7

醉酒当歌 提交于 2019-12-05 23:29:51
问题 I got a simple input field which has a maxlength="2" attribute. The code looks like this below: <input id="txtLoginName" maxlength="2"> It works fine on most Android devices. However, on the HTC One M7, it does not work. On this device, it just allows me to enter as many characters as I want. Any suggestion? I think it should be a device specific issue so far. Thanks in advance. 回答1: Try this one: var $input = $('input') $input.keyup(function(e) { var max = 5; if ($input.val().length > max) {

Speech Recognizer on HTC One M7

故事扮演 提交于 2019-12-05 19:54:07
I wrote a speech recognition app using android's built-in speech recognition classes. The following exception shows up in my developer console when the startListening function is called on the speech recognizer object obtained using createSpeechRecognizer(context) function. SecurityException: java.lang.SecurityException: Not allowed to bind to service Intent { act=android.speech.RecognitionService cmp=com.htc.android.voicedictation/.VoiceDictationService } Any ideas why this is happening and how to fix this? Tested working on Nexus 7 & HTC ONE X. Failed on HTC ONE M7 (4.2.2) Found the root

ConsumerIrManager not working on HTC m8 lollipop

耗尽温柔 提交于 2019-12-05 17:47:16
before the official lollipop update ConsumerIrManager was working fine with the HTC m8 (And so did the official HTC IR samples from htcdev) - After update it doesnt work anymore ConsumerIrManager gives Error-16 any idea what HTC may have changed? I recently had the same issue on the HTC One M7 once updated to Lollipop. I pulled some JARs and APKs from the phone and decompiled them to found that they are not using the ConsumerIrManager like every device is doing since Android 4.4. Worst, they rolled back and use the same libraries they were using before 4.4. In my case, I rolled back my

SmsManager MMS APIs on HTC/LG

不羁岁月 提交于 2019-12-05 10:00:44
问题 I'm using the new Android lollipop APIs for sending and receiving MMS messages: SmsManager.downloadMultimediaMessage and SmsManager.sendMultimediaMessage. This works well on Nexus 4 and 5, but not working at all on HTC One & LG G3 running lollipop. Looking at the logs on the HTC device, this looks like a worrying error log: MmsServiceBroker "Failed to bind to MmsService" Has anyone managed to get the new MMS APIs working across devices? If not, any workaround? EDIT: added LG G3 to the

Standard intent URI broken?

試著忘記壹切 提交于 2019-12-05 07:52:37
I'm having problems with intent URIs on a particular device, so I tried the CommonsWare URLHandler sample as suggested here: Launching my app using the intent URI , and the intent URI hyperlink on its sample page also fails to invoke the application. The sample declares its intent-filter like this: <intent-filter> <action android:name="com.commonsware.android.MY_ACTION" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> </intent-filter> And the hyperlink in the sample web page is: <a href="intent:#Intent;action=com