Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by BazLevelUp · Aug 07, 2012 at 12:25 PM · androidnetworkbatteryusage

Finding out what is eating the batteries

Hi everyone!

It seems that our Android app is still using the batteries even when put "in the background" by pressing the "Home" button, thus draining the batteries way faster.

This is strange because we dont' use any services,and in TaskManager, the app is not using more than 0.80% of the CPU. My collegue suggests that it could be the use of the use of 3G network (for exemple for loading highscore from online) that is eating the batteries. When I go to Settings/Batteries , the app is showing as taking 10% of the battery. EDIT : this number is NOT the current usage of the batteries, but the average usage since the last reload of the battery. My bad.

Do you know any way I could check the data being transfered from and to the phone ? And do you have another idea on why my app could be eating the batteries ?

Thx you all! (and sorry if I made any english mistake ^^)

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Statement · Aug 07, 2012 at 01:38 PM 0
Share

Are you using any java code or any native code?

avatar image BazLevelUp · Aug 07, 2012 at 01:56 PM 0
Share

Well we have several plugins integrated in the app which are writted in native code (handling socre online, stats, crash logging, etc...). What have you in $$anonymous$$d ? (btw thx for the reply)

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Statement · Aug 07, 2012 at 02:42 PM

Mono and dalvik should be paused together with the activity. If you create a new project and suspend that, does this new project consume about the same amount of power? If it doesn't, then I would suggest that you try and isolate the issue to your plugins through disabling them entirely and run it through one more time. If you are saving power, then you should look into pausing any code that is running in your plugins.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image BazLevelUp · Aug 07, 2012 at 03:54 PM 1
Share

Oki I'll do that, disabling the plugins one at a time. (The problem seems to be worst as people report having the app in the battery usage list right after a complete charge!)

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

8 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

.NET Socket Support for iOS/Android Basic 4 Answers

Connection failed - android to editor/standalone 1 Answer

Android Os stays at 60 to 70 % after playing a game, depletes battery life. 1 Answer

How can I use WebClient to download files on Android when behind a proxy? 1 Answer

Android network view 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges