为什么我的应用产生更多的热量 [英] why my apps produce more heat
本文介绍了为什么我的应用产生更多的热量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我为Android应用程序创建了一个媒体播放器,还有一些额外的功能。但是当它正在运行时,手机比任何其他应用程序都要热得多。有没有办法以编程方式控制它?或者你能告诉我为什么会发生这种情况吗?
提前谢谢..: - )
I created a media player for android apps with some extra facility . but when it's running phone is getting more hot than any other apps. is there any way to control this programmatically?? or will you please tell me a why it may be happened??
Thanks in advance.. :-)
推荐答案
它变得很热,因为它正在使用更多的功能 - 猜测你的代码一直处于一个忙的循环而不是等待,并且当没有太多的时候让系统放慢速度。
但是如果没有完整的代码 - 而且我不打算通过它 - 我们可以帮助你。
看看其中一些: Google:Android profiling [ ^ ] - 他们可以帮助您找到您的应用程序的位置s忙。
It gets hot because it's using more power - at a guess your code is sitting in a loop somewhere being "busy" all the time instead of waiting and letting the system slow things down when there isn't much going on.
But without your full code - and I'm not going to wade through it all - we can;t really help you.
Have a look at some of these: Google: "Android profiling"[^] - they may help you find out where your app is "busy".
这篇关于为什么我的应用产生更多的热量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文