问题标签 [htc-android]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
376 浏览

android - 为什么我在 HTC Desire HD 上看不到过度滚动发光

我有一个使用多个列表和滚动视图的应用程序。如果我过度滚动列表,在 Nexus SI 上会看到橙色的光芒。

在 HTC Desire HD 上,列表只是停在顶部,没有可见的反弹或过度滚动。

我试图将我的列表视图的 overscrollmode 设置为始终,但这没有改变。

是否需要在我的应用程序中启用某些功能以启用过度滚动行为,或者 HTC 设备上是否缺少过度滚动功能?

0 投票
2 回答
1769 浏览

android - HTC 手机中的图像捕获问题

我正在使用以下代码在 Android 中捕获图像:

捕获图像后,我使用以下代码获取图像:

它在横向模式下除了 HTC 之外的所有设备都可以正常工作。

我在我的应用程序中使用纵向模式。但是当我在 HTC 中以横向模式拍摄图像时,我的imageUri 为空。如何解决此问题,仅在 HTC 设备中。

0 投票
2 回答
1350 浏览

android - 支持多分辨率设备Android

我陷入了困境。我为 Samsung Galaxy Tab 7" 创建了一个应用程序。当我在 HTC Flyer 上运行相同的应用程序时,它显示的字体非常小。

我尝试了以下操作:我认为可能是 HTC Flyer 的屏幕是 xhdmi 所以我相应地创建了文件夹

这是行不通的.. :(在这方面任何帮助都将是非常可观的。

谢谢。

0 投票
1 回答
1241 浏览

android - HTC Desire 和 HTC Sensation 的多个屏幕

我想做的是为感觉和欲望模型设置不同的布局。

我阅读了有关为多个屏幕编程并为不同屏幕尺寸和密度提供资源的内容,但这种感觉分辨率让我发疯。我有一个在 HTC Desire 上完美运行的布局;它们被放置在布局中,而图纸被放置在 hdpi 中。一切正常。当我尝试在 Sensation 上运行应用程序时,问题就来了,一切都错位了,看起来很丑陋。

我的问题是在哪里放置 Sensation 布局?我应该为 Sensation 使用什么限定词名称?

0 投票
1 回答
451 浏览

android - HTC Evo 3D 预览

我试图从 HTC Evo 3D 中的单独背面摄像头获取预览。我使用 camera.open(CAMERA_STEREOSCOPIC) 访问相机,但预览纵横比为 640x480 或 1270x768。在同一图像上并排有两个相机图像。

很明显,一些图像信息丢失了,因为每个图像在 x 轴上都是原始大小的一半。我想做一些图像处理,所以我需要全尺寸的图像。而且,拍照然后处理不是我想做的。

有任何想法吗?

问候

卢卡斯

0 投票
1 回答
302 浏览

android - HTC 传单的内核模块

我必须为 htc flyer 编译一个内核模块,我从http://htcdev.com/devcenter/downloads获得了 htc flyer 的内核源代码 我过去为 htc hero 编译了相同的模块(通过拉出 /proc /config.gz 文件)。我没有带HTC传单。有人可以告诉我如何为 htc flyer 编译内核模块,如果过程类似于 htc hero 有人可以发布 htc flyer 的 config.gz 文件。如果没有,有人可以告诉我如何为 htc flyer 构建内核模块或指向资源。我用谷歌搜索,找不到任何有用的东西。提前致谢。

0 投票
1 回答
174 浏览

android - Htc - 我无法处理 keyevent

我在屏幕上有一个编辑文本。我想做某事按钮完成。在 google nexus s 和 samsung Galaxy 上运行完美。在键盘上,按钮显示为“完成”文本。在 htc 上,该按钮没有出现,它出现输入 simbol。我尝试在代码或子句中添加广告来处理事件输入,但它没有响应

提前致谢, 拉卢卡

0 投票
0 回答
1238 浏览

android - HTC野火清除历史不清除浏览器历史

我开发了我的应用程序来显示浏览器历史记录。我查询android.provider.Browser.BOOKMARKS_URI表以获取数据并更新我的 UI。这在 Google Nexus S 上运行良好,但 HTC Wildfire 存在一些问题。它似乎有一个定制的浏览器应用程序并将历史数据存储在自己的私有表中。

因为如果我使用“浏览器->菜单->书签->历史->菜单->清除历史”清除历史记录,我的android.provider.Browser.BOOKMARKS_URI不会被清除。

只有当我使用“浏览器->菜单->更多->设置->清除历史”清除历史记录时,它才会被清除,任何人都知道 HTC 将他们的历史数据存储在哪里以及如何访问它。

0 投票
3 回答
3111 浏览

android - Drawable.createFromResourceStream() 中的异常——仅限 HTC?

我发布了一个 IME(软键盘)应用程序,我只收到来自 HTC 手机的崩溃报告。这是堆栈跟踪:

这是我对 Drawable.createFromResourceStream() 的调用

其中InputMethodServicecontext子类是FileInputStreamAssetInputStream(我都试过了)。资源文件是编译后的NinePatchDrawable。我已经确认流不为空。stream

重复一遍:这个错误只发生在运行各种版本的 Android 操作系统的某些 HTC 手机(包括 Evo)上。

有没有人经历过这个和/或知道如何解决它?

提前致谢,

巴里

PS 奇怪的是,崩溃线 465 不在任何版本的BitmapFactory.java中的崩溃方法BitmapFactory.decodeResourceStream()中,因此 HTC 必须使用修改后的代码。

0 投票
1 回答
63 浏览

android - Design advice concerning creation of context menu

If someone have an HTC device and go to the SMS messages and tap on some of the messages in the thread then an context menu is shown.

I have an list and I do not know what is the right thing to put the context menu to be shown on longpress or just on press (click) on some of the item in the list.

I think that the right thing is to put it on long press, I mean the user holds some of the items in the list and then it is presented with the options...

Well the sms in htc it is not coded this way. When I open messages that ware send to some friend and tap on some specific message then I am instantly presented with the list of options, sms i app that is frequently used by many people and htc is big company, so they did this by some reason. Reason I do not get it :(, can someone tall me what is the right thing ?

showing context menu should be done: -on long press -on clcik

maybe my question is stupid, but I want to know what is the convention and what is more user friendly Thanks