Click here to Skip to main content
15,887,436 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.. :-)
Posted
Updated 11-Apr-15 22:33pm
v2

1 solution

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".
 
Share this answer
 
Comments
nest101234 12-Apr-15 5:20am    
actually this is a heavy project that I can't load. I wanted to know what actually causes this problem. thanks for you response and answer really gives me a way to think.
Frankie-C 12-Apr-15 11:06am    
As general rule, for all systems and all languages, always *be sure* that your code have no polling! On any decent OS there is always a waiting primitive that allows to your app to give back control to OS and suspend use of CPU. Then the OS will call your app back to life when conditions is on.
A polling just keep the CPU running consuming power...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900