Android:监控CPU即时工作频率和电量电池信息

2015年10月07日 Android 27条评论 阅读9048次

这是一个可以随时更新显示android设备上CPU工作频率和工作电流、工作电压、电池剩余量的软件。

运行在Android设备上,启动本程序之后,启动一个服务,根据用户自定义的选择设置,可在任何窗口下显示当前CPU工作频率等状态,显示当前电压电流电池容量等信息。

这些信息是以浮窗的形式呈现的,因为申请了《android.permission.SYSTEM_ALERT_WINDOW》的权限,所以有些Android设备上可能会因为本身安全隐私的设置,导致浮窗不能显示。遇到这个问题,去设备的安全选项中修改下设置就可以了。

为避免浮窗上文字信息挡住屏幕上某些信息,所以把浮窗做成了可以拖动的。

用了一个服务,用来每隔一秒钟刷新一次浮窗上的数据。

注册了一个广播接收者,用来接收《ACTION_BATTERY_CHANGED》的广播,从而进一步获取battery相关的信息。

PS:一个技术上的问题提示:ACTION_BATTERY_CHANGED广播不能在AndroidManifest.xml中注册,只可以在java中动态注册,否则,你是不可能接收到这个广播的。

Image


Image


Image

github地址:

https://github.com/will86/android-runninginfo

欢迎各位大牛fork、push。

谢谢!

分享本文至:

WRITTEN BY

avatar
本文标签:androidcpubattery
看了本文是不是觉得很赞,那就赶紧点击下面按钮分享给身边的朋友吧!

27 条评论

  1. <a href="http://www.expartyrental.com/parajumpers-coat-that-turns-into-bag-parajumpersb">parajumpers coat that turns into bag</a> <a href="http://www.kbieurope.com/canada-goose-chateau-parka-olive-cafe-canadagooseb">canada goose chateau parka olive cafe</a> <a href="http://www.kathybphd.com/nike-hypervenom-phantom-gr%C3%BCn-wei%C3%9F-kurpese">nike hypervenom phantom gr眉n wei脽</a> <a href="http://www.energyhotshot.com/pandora-beads-theater-exercises-pandoral">pandora beads theater exercises</a> <a href="http://www.sgwoods.com/louboutin-boots-hand-nerve-louboutine">louboutin boots hand nerve</a> <a href="http://www.carraignuabnb.com/hermes-belts-black-and-gold-key-hermesc">hermes belts black and gold key</a>
    thepdregistry http://www.thepdregistry.com/

  2. <a href="http://www.abrahamnissan.com/b37734-adidas-sneakerv">b37734 adidas</a> <a href="http://www.jbmessenger.com/maya-kleid-mit-pailletten-kleiderp">maya kleid mit pailletten</a> <a href="http://www.gtcinvest.com/new-balance-m%C4%99skie-nowa-kolekcja-butys">new balance m臋skie nowa kolekcja</a> <a href="http://www.theyhatezits.com/adidas-superstar-negras-punta-blanca-zapatoso">adidas superstar negras punta blanca</a> <a href="http://www.robustanyc.com/robe-soir%C3%A9e-longue-grande-taille-robeu">robe soir茅e longue grande taille</a> <a href="http://www.drishtiyogamn.com/adidas-16.3-ag-schuhey">adidas 16.3 ag</a>
    usaholeinone http://www.usaholeinone.com/

  3. <a href="http://www.waltspeaks.com/old-jazz-jersey-nflo">old jazz jersey</a> <a href="http://www.gemeentecms.com/dri-fit-with-collar-shirtw">dri fit with collar</a> <a href="http://www.iqtrendspc.com/zara-snakeskin-maxi-dress-dresst">zara snakeskin maxi dress</a> <a href="http://www.firdirect.com/air-jordan-6-seahawks-trainersr">air jordan 6 seahawks</a> <a href="http://www.weavervillerx.com/schulranzen-7-klasse-m%C3%A4dchen-tascheo">schulranzen 7 klasse m盲dchen</a> <a href="http://www.toddortberg.com/vestidos-cortos-con-manga-larga-de-encaje-vestidosv">vestidos cortos con manga larga de encaje</a>
    dasadaflowers http://www.dasadaflowers.com/

  4. <a href="http://www.maulofshame.com/sac-%C3%A0-dos-decathlon-enfant-sacq">sac 脿 dos decathlon enfant</a> <a href="http://www.ivanovroman.com/vibram-fivefingers-speed-gr%C3%BCn-rosa-schuhej">vibram fivefingers speed gr眉n rosa</a>
    nomorect http://www.nomorect.com/

  5. <a href="http://www.akimmobilien.com/canada-goose-homme-snow-mantra-canadagooseb">canada goose homme snow mantra</a> <a href="http://www.swbvideo.com/jordan-11-wei%C3%9F-and-rot-kurpesk">jordan 11 wei脽 and rot</a> <a href="http://www.fabaliworld.com/pandora-disney-holiday-charms-officer-pandoraf">pandora disney holiday charms officer</a> <a href="http://www.poliwalks.com/louboutin-bianca-pumps-review-louboutine">louboutin bianca pumps review</a> <a href="http://www.docaneurope.com/hermes-bag-new-zealand-for-sale-hermesc">hermes bag new zealand for sale</a> <a href="http://www.darwinquartet.com/jordan-melo-m10-bl%C3%A5-gul-footm">jordan melo m10 bl氓 gul</a>
    amuntech http://www.amuntech.com/

  6. <a href="http://www.beachtimenow.com/burberry-giant-check-gauze-scarf-scarfr">burberry giant check gauze scarf</a> <a href="http://www.tragemaus.com/ralph-lauren-svart-watch-gr%C3%A5-hvit-poloz">ralph lauren svart watch gr氓 hvit</a> <a href="http://www.introtechint.com/nike-roshe-flyknit-sail-blanc-obuvc">nike roshe flyknit sail blanc</a> <a href="http://www.newmadagasca.com/parajumpers-kodiak-eco-femmes-outerwear-noir-parajumpersb">parajumpers kodiak eco femmes outerwear noir</a> <a href="http://www.pvktechinfo.com/ray-ban-justin-sunglasses-ebay-sunglassesr">ray ban justin sunglasses ebay</a> <a href="http://www.treehousecats.com/best-north-face-summit-series-jacket-northfaceb">best north face summit series jacket</a>
    easternmeter http://www.easternmeter.com/

  7. <a href="http://www.sonsofmalcolm.com/herre-ralph-lauren-pony-polo-sort-lyser%C3%B8d-poloa">herre ralph lauren pony polo sort lyser酶d</a> <a href="http://www.moppelmode.com/nike-air-max-tailwind-8-for-verkauf-arkansas-scarpek">nike air max tailwind 8 for verkauf arkansas</a> <a href="http://www.upgradeurlife.com/floral-dresses-for-cheap-dresse">floral dresses for cheap</a> <a href="http://www.edufom.com/new-balance-890-hvit-r%C3%B8d-footi">new balance 890 hvit r酶d</a> <a href="http://www.flicksman.com/nike-lunarglide-6-p%C3%BArpura-butyg">nike lunarglide 6 p煤rpura</a> <a href="http://www.texasjudaica.com/parajumpers-gobi-size-chart-templates-parajumpersb">parajumpers gobi size chart templates</a>
    acductwork http://www.acductwork.com/

  8. <a href="http://www.blocksflying.com/zapatillas-de-running-sin-talon-botas">zapatillas de running sin talon</a> <a href="http://www.slimeslush.com/converse-plataforma-negras-altas-cuero-zapatosw">converse plataforma negras altas cuero</a> <a href="http://www.ickfilm.com/nike-supreme-schuhe-damen-schuhes">nike supreme schuhe damen</a> <a href="http://www.samsungmadfun.com/nike-air-max-270-herren-bestellen-schuheu">nike air max 270 herren bestellen</a> <a href="http://www.izmirotokent.com/nike-free-x-metcon-comprar-zapatosr">nike free x metcon comprar</a> <a href="http://www.galpsociallab.com/zapatos-para-ni%C3%B1os-2-a%C3%B1os-botaz">zapatos para ni帽os 2 a帽os</a>
    devfitlife http://www.devfitlife.com/

  9. <a href="http://www.flophappys.com/nike-huarache-in-offerta-scarpeo">nike huarache in offerta</a> <a href="http://www.bigfacekabob.com/oakley-conductor-8-sunglassess">oakley conductor 8</a> <a href="http://www.lariocenter.com/zx-420-adidas-sneakerz">zx 420 adidas</a> <a href="http://www.blineblends.com/staccato-kleid-m%C3%A4dchen-kleiderp">staccato kleid m盲dchen</a> <a href="http://www.araucoblog.com/nb-247-damskie-czarne-butys">nb 247 damskie czarne</a> <a href="http://www.ertmsales.com/adidas-gazelle-burdeos-zapatoso">adidas gazelle burdeos</a>
    rustyjtrump http://www.rustyjtrump.com/

  10. <a href="http://www.escortfrauen.com/robe-marini%C3%A8re-moulante-robep">robe marini猫re moulante</a> <a href="http://www.blindhand.com/ccm-jersey-nflo">ccm jersey</a> <a href="http://www.mindclickinfo.com/jordan-hoodie-fleece-shirtt">jordan hoodie fleece</a> <a href="http://www.vahtangov.com/short-reception-dress-dressp">short reception dress</a> <a href="http://www.rockthefall.com/chinese-new-year-jordans-2019-trainersr">chinese new year jordans 2019</a> <a href="http://www.kmtravelmom.com/furla-tasche-gro%C3%9F-taschet">furla tasche gro脽</a>
    wasillacabins http://www.wasillacabins.com/

  11. <a href="http://www.mauradutra.com/canada-goose-citadel-parka-blue-valley-canadagooseb">canada goose citadel parka blue valley</a> <a href="http://www.lucagerini.com/air-jordan-retro-11-orange-gr%C3%B8n-kurpesk">air jordan retro 11 orange gr酶n</a> <a href="http://www.daphaltd.com/pandora-two-tone-flower-charms-ingredients-pandoraf">pandora two tone flower charms ingredients</a> <a href="http://www.cagdasair.com/louboutin-boots-online-malaysia-louboutine">louboutin boots online malaysia</a> <a href="http://www.gaellebodyart.com/hermes-kelly-cut-vert-vertigo-hermesc">hermes kelly cut vert vertigo</a> <a href="http://www.revisionbacs.com/air-jordan-18-svart-and-bl%C3%A5-for-salg-yakima-footm">air jordan 18 svart and bl氓 for salg yakima</a>
    expartyrental http://www.expartyrental.com/

  12. <a href="http://www.xzibitmalta.com/ralph-lauren-hommes-ralph-lauren-iv-polo-rouge-marine-poloa">ralph lauren hommes ralph lauren iv polo rouge marine</a> <a href="http://www.genericpreset.com/nike-free-5.0-light-bl%C3%A5-headlights-scarpek">nike free 5.0 light bl氓 headlights</a> <a href="http://www.bootberlin.com/blumen-kleid-aus-baumwolle-dresse">blumen kleid aus baumwolle</a> <a href="http://www.diettucson.com/nike-kyrie-2-hvit-gull-footi">nike kyrie 2 hvit gull</a> <a href="http://www.schockenkatz.com/nike-flyknit-lunar-1-rosado-and-amarillo-oro-butyg">nike flyknit lunar 1 rosado and amarillo oro</a> <a href="http://www.drrandtherapy.com/parajumpers-vest-groomsmen-socks-parajumpersb">parajumpers vest groomsmen socks</a>
    anacorteslaw http://www.anacorteslaw.com/

  13. <a href="http://www.jflisee.com/nike-air-zoom-90-it-grigio-argento-obuvf">nike air zoom 90 it grigio argento</a> <a href="http://www.aedesnowboard.com/pandora-bracelets-malta-news-pandoraj">pandora bracelets malta news</a> <a href="http://www.supremeohd.com/alle-kyrie-irving-1-schuhe-trainersd">alle kyrie irving 1 schuhe</a> <a href="http://www.justnwhomes.com/air-jordan-retro-3-svart-royal-bl%C3%A5-chaussuresm">air jordan retro 3 svart royal bl氓</a> <a href="http://www.anacorteslaw.com/ladies-red-ralph-lauren-shirt-2017-poloa">ladies red ralph lauren shirt 2017</a> <a href="http://www.giyimaskilari.com/jordan-3-retro-blanco-true-azul-scarpek">jordan 3 retro blanco true azul</a>
    ecosphereasi http://www.ecosphereasi.com/

  14. <a href="http://www.escortfrauen.com/asics-contend-3-womens-sneakerv">asics contend 3 womens</a> <a href="http://www.blindhand.com/robe-legere-kleid-gr%C3%BCn-kleiderp">robe legere kleid gr眉n</a> <a href="http://www.mindclickinfo.com/ccc-adidasy-dziewczece-butys">ccc adidasy dziewczece</a> <a href="http://www.vahtangov.com/adidas-swift-run-mujer-rosa-zapatoso">adidas swift run mujer rosa</a> <a href="http://www.rockthefall.com/robe-hawaienne-rouge-robeu">robe hawaienne rouge</a> <a href="http://www.kmtravelmom.com/adidas-predator-tango-33-schuhey">adidas predator tango 33</a>
    createdbydrew http://www.createdbydrew.com/

  15. <a href="http://www.sinfoniamktg.com/nike-air-max-classic-bw-r%C3%B8d-sort-kit-footg">nike air max classic bw r酶d sort kit</a> <a href="http://www.mrshoover.com/parajumpers-leather-parka-coat-parajumpersa">parajumpers leather parka coat</a> <a href="http://www.valomak.com/moncler-winter-jacket-price-za-2017-monclera">moncler winter jacket price za 2017</a> <a href="http://www.inklinktatoo.com/nike-dunk-hi-rosado-chaussuresb">nike dunk hi rosado</a> <a href="http://www.adracingworld.com/kobe-10-schuhe-images-zapatosd">kobe 10 schuhe images</a> <a href="http://www.tentoledo.com/nike-internationalist-lyser%C3%B8d-bl%C3%A5-obuvl">nike internationalist lyser酶d bl氓</a>
    videobind http://www.videobind.com/

  16. <a href="http://www.jflisee.com/mennns-ralph-lauren-sweater-cashmere-r%C3%B8d-poloa">mennns ralph lauren sweater cashmere r酶d</a> <a href="http://www.aedesnowboard.com/nike-air-max-flyknit-2015-vendita-scarpek">nike air max flyknit 2015 vendita</a> <a href="http://www.supremeohd.com/vestido-floral-uttam-boutique-ditsy-dresse">vestido floral uttam boutique ditsy</a> <a href="http://www.justnwhomes.com/nike-huarache-high-lilla-brun-footi">nike huarache high lilla brun</a> <a href="http://www.anacorteslaw.com/air-jordan-retro-28-rosso-bianca-butyg">air jordan retro 28 rosso bianca</a> <a href="http://www.giyimaskilari.com/parajumpers-harraseeket-fur-trim-down-parka-quest-parajumpersb">parajumpers harraseeket fur trim down parka quest</a>
    agencysync http://www.agencysync.com/

  17. avatar zszlubanie

    <a href="http://www.marionnurses.com/adidas-yeezy-boost-350-noir-jaguar-chaussuresb">adidas yeezy boost 350 noir jaguar</a> <a href="http://www.duracordstyle.com/nike-free-5.0-himmelblau-gelb-zapatosj">nike free 5.0 himmelblau gelb</a> <a href="http://www.paoniabud.com/le-coq-sportif-sko-lilla-himmelen-bl%C3%A5-obuvf">le coq sportif sko lilla himmelen bl氓</a> <a href="http://www.elginger.com/pandora-alphabet-charms-class-hp-pandoraj">pandora alphabet charms class hp</a> <a href="http://www.purelygadget.com/nike-blazer-floral-jaune-trainersd">nike blazer floral jaune</a> <a href="http://www.caraweston.com/nike-free-run-5.0-leopard-wei%C3%9F-schwarz-chaussuresm">nike free run 5.0 leopard wei脽 schwarz</a>
    zszlubanie http://www.zszlubanie.com/

  18. avatar whoismrpink

    <a href="http://www.texomatruss.com/canada-goose-kensington-parka-kopen-jumper-canadagooseb">canada goose kensington parka kopen jumper</a> <a href="http://www.askjms.com/kvinders-nike-kyrie-1-lilla-himmelbl%C3%A5-kurpesk">kvinders nike kyrie 1 lilla himmelbl氓</a> <a href="http://www.dublinraces.com/pandora-bracelet-spacers-uk-uk-pandoraf">pandora bracelet spacers uk uk</a> <a href="http://www.denteraserinc.com/louboutin-ankle-booties-camel-louboutine">louboutin ankle booties camel</a> <a href="http://www.bearclawfire.com/hermes-evelyne-gm-review-essay-hermesc">hermes evelyne gm review essay</a> <a href="http://www.broadbandgeek.com/ua-curry-3-argento-rosso-footm">ua curry 3 argento rosso</a>
    whoismrpink http://www.whoismrpink.com/

  19. avatar celsonline

    <a href="http://www.mauradutra.com/ralph-lauren-big-pony-polo-shirts-quality-menu-poloa">ralph lauren big pony polo shirts quality menu</a> <a href="http://www.lucagerini.com/nike-air-max-lunar1-sko-hvid-chilling-r%C3%B8d-scarpek">nike air max lunar1 sko hvid chilling r酶d</a> <a href="http://www.daphaltd.com/vestido-de-flores-las-compras-en-l%C3%ADnea-malasia-dresse">vestido de flores las compras en l铆nea malasia</a> <a href="http://www.cagdasair.com/nike-lunarlaunch-midnight-armada-footi">nike lunarlaunch midnight armada</a> <a href="http://www.gaellebodyart.com/jordan-1-flight-grau-and-lila-butyg">jordan 1 flight grau and lila</a> <a href="http://www.revisionbacs.com/parajumpers-long-bear-jacket-grey-parajumpersb">parajumpers long bear jacket grey</a>
    celsonline http://www.celsonline.com/

  20. avatar twominuteview

    <a href="http://www.juliegranahan.com/pandora-earrings-greyhound-seattle-pandoraf">pandora earrings greyhound seattle</a> <a href="http://www.kailuahotel.com/louboutin-flat-espadrilles-red-louboutine">louboutin flat espadrilles red</a> <a href="http://www.boardbehavior.com/hermes-double-sens-45-bag-in-clemence-van-hermesc">hermes double sens 45 bag in clemence van</a> <a href="http://www.rentalsmm.com/herren-salomon-xt-hornet-gr%C3%BCn-blau-footm">herren salomon xt hornet gr眉n blau</a> <a href="http://www.litugomez.com/parajumpers-denali-womens-parka-black-bear-parajumpersa">parajumpers denali womens parka black bear</a> <a href="http://www.lesperruques.com/moncler-vest-black-quartz-monclera">moncler vest black quartz</a>
    twominuteview http://www.twominuteview.com/

  21. avatar kosarkomur

    <a href="http://www.ibrahimoner.com/ray-ban-sunglasses-4115-mens-sunglassesa">ray ban sunglasses 4115 mens</a> <a href="http://www.quickbeautyhq.com/san-francisco-49ers-tisa-snapback-cap-black-red-hatc">san francisco 49ers tisa snapback cap black red</a> <a href="http://www.epointsclub.com/macy-s-oakley-sunglasses-nose-parts-sunglassesg">macy s oakley sunglasses nose parts</a> <a href="http://www.alaskanuber.com/nike-kwazi-india-price-skox">nike kwazi india price</a> <a href="http://www.ycbrowsbeauty.com/jordan-11-columbian-yellowing-skoc">jordan 11 columbian yellowing</a> <a href="http://www.gfatraining.com/billig-nike-flyknit-lunar-3-dam%C3%A4nner-wei%C3%9F-skob">billig nike flyknit lunar 3 dam盲nner wei脽</a>
    kosarkomur http://www.kosarkomur.com/

  22. avatar karibiankomu

    <a href="http://www.seocontenidos.com/nike-internationalist-premium-white-trainers-shoesh">nike internationalist premium white trainers</a> <a href="http://www.elitexgaming.com/nike-free-tr-femmes-gris-violet-chaussuresl">nike free tr femmes gris violet</a> <a href="http://www.chezpenny.com/mens-nike-flyknit-lunar-1-pink-grey-shoesj">mens nike flyknit lunar 1 pink grey</a> <a href="http://www.williherren.com/penn-state-nittany-lions-47-ncaa-47-clean-up-cap-hatk">penn state nittany lions 47 ncaa 47 clean up cap</a> <a href="http://www.alimonis.com/nike-air-max-uptempo-gr%C3%B8n-skoj">nike air max uptempo gr酶n</a> <a href="http://www.galvomode.com/navy-sleeveless-polo-shirt-poloh">navy sleeveless polo shirt</a>
    karibiankomu http://www.karibiankomu.com/

  23. avatar glamourspausa

    <a href="http://www.adeohome.com/nike-flyknit-lunar-3-femminile-argento-rosa-kurpesd">nike flyknit lunar 3 femminile argento rosa</a> <a href="http://www.kozmovip.com/wei%C3%9F-adidas-superstar-gold-schuhel">wei脽 adidas superstar gold</a> <a href="http://www.jorgevsells.com/femminile-asics-gel-kinsei-5-rosso-nero-skof">femminile asics gel kinsei 5 rosso nero</a> <a href="http://www.transitionbh.com/salomon-fellraiser-oransje-light-footf">salomon fellraiser oransje light</a> <a href="http://www.bekbox.com/nike-lebron-12-university-rosso-hyper-crimson-bianca-nero-sneakerd">nike lebron 12 university rosso hyper crimson bianca nero</a> <a href="http://www.larastart.com/nike-free-flyknit-3.0-uomo-bl%C3%A5-schuhef">nike free flyknit 3.0 uomo bl氓</a>
    glamourspausa http://www.glamourspausa.com/

  24. avatar rohanchougule

    <a href="http://www.kiprahrakyat.com/adidas-zx-750-dark-fl%C3%A5den-skoe">adidas zx 750 dark fl氓den</a> <a href="http://www.bmwoodworx.com/cleveland-indians-black-jersey-nflh">cleveland indians black jersey</a> <a href="http://www.stpetereads.com/chicago-bears-stitched-jersey-nfli">chicago bears stitched jersey</a> <a href="http://www.madebyizzaroo.com/von-miller-ladies-jersey-nflh">von miller ladies jersey</a> <a href="http://www.eliteogame.com/nike-roshe-run-dam%C3%A6nd-custom-shoese">nike roshe run dam忙nd custom</a> <a href="http://www.betakimassage.com/ralph-lauren-rugby-tops-qld-poloh">ralph lauren rugby tops qld</a>
    rohanchougule http://www.rohanchougule.com/

  25. avatar nike kd 8 guld gr氓

    <a href="http://www.shiftcampus.com/nike-zoom-pegasus-31-kvinners-gr%C3%B8nn-obuvl">nike zoom pegasus 31 kvinners gr酶nn</a> <a href="http://www.fiestanetwork.com/nike-soccers-shoes-sky-blue-shoesh">nike soccers shoes sky blue</a> <a href="http://www.sunbeltsaves.com/nike-sb-dunk-mid-pro-nero-varsity-rosso-scarpei">nike sb dunk mid pro nero varsity rosso</a> <a href="http://www.drmastella.com/nike-air-max-90-em-grau-schwarz-schuhej">nike air max 90 em grau schwarz</a> <a href="http://www.khzrubber.com/houston-texans-new-era-2017-nfl-training-camp-9twenty-cap-hath">houston texans new era 2017 nfl training camp 9twenty cap</a> <a href="http://www.jkdeskisehir.com/femmes-air-jordan-retro-12-tout-oranger-chaussuresh">femmes air jordan retro 12 tout oranger</a>
    [url=http://www.bestoftumblr.com/nike-kd-8-guld-gr%C3%A5-skoj]nike kd 8 guld gr氓[/url]

  26. avatar lavaforchange

    <a href="http://www.seymourdugan.com/nike-kobe-7-gelb-schwarz-schuhej">nike kobe 7 gelb schwarz</a> <a href="http://www.dkstekstil.com/nike-kobe-11-kvinders-gr%C3%B8n-appelsin-skoh">nike kobe 11 kvinders gr酶n appelsin</a> <a href="http://www.thegillssell.com/air-jordan-reveal-bleu-jaune-chaussuresh">air jordan reveal bleu jaune</a>
    lavaforchange http://www.lavaforchange.com/

  27. avatar 呜炀裆

    感谢博主!

欢迎留言




用户登录

sitemap