问题标签 [htc-hero]

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 投票
2 回答
2363 浏览

android - 启动 Accept Thread 时 Bindlisten 失败

谁能告诉我这个问题是什么?我试图让我的应用程序启动一个Accept Thread,但是这个错误一直在发生。

任何人都可以帮忙吗?

我正在使用带有 Android 2.1 的 HTC Hero。

根据这里

这里有一些代码:我已将其用作BluetoothChat.java开发以下代码的指导和参考。因此,一旦启用了蓝牙,用户将按下菜单按钮,然后会出现三个按钮。server如果用户想要启动接受线程并成为游戏的主机,则用户选择按钮。

一旦用户选择Server按钮,它将从另一个类调用以下方法:

然后这是Accept Thread. 使用调试器,我可以确认Accept Thread已执行。但是它一开始就失败了try catch,它从不执行这个

接受以下线程:

我刚刚做了一些调试,在Accept Thread. 在线socket = mmServerSocket.accept();上。

0 投票
3 回答
3301 浏览

android - HTC hero 上的蓝牙问题

我编写了一个 android 应用程序,使用蓝牙从外部传感器获取数据。它在索尼爱立信 XPERIA 上运行良好,但在 HTC Hero 上运行良好(它可以找到外部设备,但无法从中获取任何数据)我想知道为什么。在网上查了一些资料,还是没有找到任何线索。HTC有人遇到过类似的蓝牙问题吗?

0 投票
1 回答
465 浏览

android - 使用 AndEngine 时手机出现白屏

HTC Hero 和 AndEngine 的问题BaseGameActivity:启动时,只有白屏,没有任何图形,如背景和精灵。但是我可以看到线条(org.anddev.andengine.entity.primitive.Line)等对象,并且我可以点击不可见的按钮并且我的代码正在执行,但它仍然是白屏。

当我在其他设备上启动此应用程序时,一切正常。

哪里有问题?

0 投票
2 回答
1377 浏览

android - Running HTC rom on emulator

I have came across some weird behavior while using camera in my app.

I am clicking picture from camera and then uploading it to server. I didn't mention in my code that device should save the pic first, it works well in samsung, nexus BUT on running it on HTC phones it saves the picture in gallery, i guess its the default camera action for htc. I don't want to save my pic. yes of course I can delete it in code.

My question is, is there any way to run HTC rom on emulator, since i don't have any HTC device to test my app? Or if someone have system.img file for HTC hero ?

0 投票
0 回答
54 浏览

android - HTC Hero / Android 2.1 上没有电池温度更新

我正在使用专门用于温度监测的旧 Android 手机编写一个 Android 应用程序。现在我遇到了运行 Android 2.1 update-1 的 HTC Hero 的问题。它不接收电池温度传感器的更新。它只得到一个初始值。但是,它会接收外部电源插入状态的更新。如果更换了外部电源,则会收到新的温度

这种行为是由硬件设置的还是我能做些什么?

我正在使用广播接收器:

这在 Galaxy S4 / Android 4.3 上运行良好。

就像我说的,如果更换了外部电源(充电器插入或拔出),接收器总是会被调用,并接收到新的温度。

重新注册接收器没有帮助。

我尝试过每隔一段时间手动获取这样的 Intent,但温度是恒定的(即使它确实发生了变化)。

似乎只有在外部电源状态(EXTRA_PLUGGED)发生变化时才会更新温度。

我尝试了另外两个电池应用程序,它们也有同样的问题。