DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Page 1 of 7 1 2 3 ... LastLast
Results 1 to 10 of 65

Thread: What are my Android apps doing behind the scenes?

  1. Droid Ninja
    Natey2's Avatar
    Member #
    129768
    Join Date
    Oct 2010
    Posts
    1,349
    Liked
    25 times
    Phone
    DROIDX
    #1

    What are my Android apps doing behind the scenes?

    I installed an app called aLogCat which allows me to look at my Android logs dynamically.
    When I start using some of my installed apps, I see some pretty interesting stuff getting written to the logs, that can give me an idea what the app is trying to do behind the scenes.
    If you have been a [Java] Developer, this is something you probably do in your daily work. If you aren't, Welcome to the backstage of software development!

    Deadlocks are a bad thing, and here's a snippet of my logs when I turned on my Android Background Data Synch:

    02-19 09:44:33.375 E/AccountManager(15869): calling this from your main thread can lead to deadlock and/or ANRs
    02-19 09:44:33.375 E/AccountManager(15869): java.lang.IllegalStateException: calling this from your main thread can lead to deadlock
    02-19 09:44:33.375 E/AccountManager(15869): at android.accounts.AccountManager.ensureNotOnMainThr ead(AccountManager.java:1119)

    I'm going to check out what my apps are doing and that may help explain why my phone starts behaving strange at times...


    Sent from my DROIDX using DroidForums App
  2. Premium Member
    hookbill's Avatar
    Member #
    10332
    Join Date
    Nov 2009
    Location
    N.E. Ohio
    Posts
    19,575
    Liked
    17 times
    Phone
    Droid Bionic
    Premium Member
    #2
    I'd get rid of that app, and not worry about what your apps are doing. If your phone is acting up, and I have no idea what you mean by that, then it is probably an app. But I don't think that app will help you discover what it is.

    Do you use a task killer?
    Please be respectful. Respect is #1 here at DF Please read our Guidelines of Conduct
  3. Droid Sensei
    BayouFlyFisher's Avatar
    Member #
    14195
    Join Date
    Dec 2009
    Location
    Baton Rouge, LA
    Posts
    4,969
    Liked
    86 times
    Phone
    Galaxy Note 2
    #3
    I agree with Hook on this. Don't worry about what the apps, that you are not using, are doing.

    Define "phone starts behaving strange at times..." and perhaps we can help.

    I do know the following:

    Third party Task Managers cause problems.
    Anti-virus apps all cause problems.
    Reboot your phone once every day or so.
    Charging with the wrong charger causes issues quite often.
    Using a non-standard usb cable can cause issues too.

    Here's an excellent link for the X and any android phone for that matter: Abe21599 - New To Android? DROID X USERS CHECK THiS OUT!
    Baton Rouge, LA
  4. Droid Ninja
    Natey2's Avatar
    Member #
    129768
    Join Date
    Oct 2010
    Posts
    1,349
    Liked
    25 times
    Phone
    DROIDX
    #4
    Quote Originally Posted by hookbill View Post
    I'd get rid of that app, and not worry about what your apps are doing. If your phone is acting up, and I have no idea what you mean by that, then it is probably an app. But I don't think that app will help you discover what it is.

    Do you use a task killer?
    In the short time I've used aLogCat, I've identified:
    An app that repeatedly tries to load an application bitmap resource that does not exist (developer probably didn't package the app with that bitmap),
    An app that repeatedly throws an XML-parsing error,
    A Google app that is logging all kinds of things (too many) at ERROR level, that really should (IMHO) be logged at DEBUG level.

    I have ATK installed, but auto-kill disabled.

    Sent from my DROIDX using DroidForums App
  5. Premium Member
    hookbill's Avatar
    Member #
    10332
    Join Date
    Nov 2009
    Location
    N.E. Ohio
    Posts
    19,575
    Liked
    17 times
    Phone
    Droid Bionic
    Premium Member
    #5
    Quote Originally Posted by Natey2 View Post
    Quote Originally Posted by hookbill View Post
    I'd get rid of that app, and not worry about what your apps are doing. If your phone is acting up, and I have no idea what you mean by that, then it is probably an app. But I don't think that app will help you discover what it is.

    Do you use a task killer?
    In the short time I've used aLogCat, I've identified:
    An app that repeatedly tries to load an application bitmap resource that does not exist (developer probably didn't package the app with that bitmap),
    An app that repeatedly throws an XML-parsing error,
    A Google app that is logging all kinds of things (too many) at ERROR level, that really should (IMHO) be logged at DEBUG level.

    I have ATK installed, but auto-kill disabled.


    Sent from my DROIDX using DroidForums App
    That's OK with that set up. But you're still worrying about the apps in the background, just trust that your Droid knows what to do about them. They aren't really running anyway, it's more like they are "at the ready" to launch. Sort of sleeping but there.

    And you still haven't told us what your phone is doing when it acts up.
    Please be respectful. Respect is #1 here at DF Please read our Guidelines of Conduct
  6. Droid Ninja
    Natey2's Avatar
    Member #
    129768
    Join Date
    Oct 2010
    Posts
    1,349
    Liked
    25 times
    Phone
    DROIDX
    #6
    Quote Originally Posted by BayouFlyFisher View Post
    Define "phone starts behaving strange at times..." and perhaps we can help.

    I do know the following:

    Third party Task Managers cause problems.
    Anti-virus apps all cause problems.
    Reboot your phone once every day or so.
    Charging with the wrong charger causes issues quite often.
    Using a non-standard usb cable can cause issues too.

    Here's an excellent link for the X and any android phone for that matter: Abe21599 - New To Android? DROID X USERS CHECK THiS OUT!
    Thanks for the link above.
    My phone tends to refresh the app drawer and home screens (slowly) after some extended use (many days).
    My phone system uptime is at 460 hours now. The last unexpected warm boot (occurred during a usb connect session) didn't reset that timer, but fixed the slow app drawer refresh (the one where the icons don't appear for a while).

    Rebooting daily is something I believe Microsoft recommended in the days of Windows 3.x
    Android is supposed to be Linux-based, and is there any Linux user who feels Linux should be rebooted daily?
    Rebooting daily masks the problem too. I'm waiting for my phone to slow down again, and I'd like to take a look at what is going on in the logs when that occurs.

    Sent from my DROIDX using DroidForums App
  7. Droid Ninja
    Natey2's Avatar
    Member #
    129768
    Join Date
    Oct 2010
    Posts
    1,349
    Liked
    25 times
    Phone
    DROIDX
    #7
    I have discovered an app (possibly Motorola synch routine) that is causing an error (in the logs) on background data syncs:

    02-22 05:53:01.034 V/BlurSyncProtocolHandler( 6951): executeSync: handlerName: BlurSetupSyncHandler, isForced: false
    02-22 05:53:01.058 E/Cursor ( 6951): Finalizing a Cursor that has not been deactivated or closed. database = /data/data/com.motorola.blur.setupprovider/databases/serviceaccounts.db, table = active_services, query = SELECT provider, email_address, password, account, pwd_storage_policy, providers.pretty_name AS pret
    02-22 05:53:01.058 E/Cursor ( 6951): android.database.sqlite.DatabaseObjectNotClosedExc eption: Application did not close the cursor or database object that was opened here


    Sent from my DROIDX using DroidForums App
  8. Droid Newbie
    albackore's Avatar
    Member #
    105450
    Join Date
    Aug 2010
    Posts
    2
    Phone
    Verizon Droid X
    #8
    maybe if you sent those errors to the developer they might fix them?

    Sent from my DROIDX using DroidForums App
  9. Droid Ninja
    Natey2's Avatar
    Member #
    129768
    Join Date
    Oct 2010
    Posts
    1,349
    Liked
    25 times
    Phone
    DROIDX
    #9
    I notice that when my phone is getting charged, at 90% charge, the following is logged, a couple of times:

    02-22 21:19:04.180 I/BATTD ( 1157): set_charge_current=1300
    02-22 21:19:06.132 I/BATTD ( 1157): set_charge_current=800
    02-22 21:19:11.992 I/BATTD ( 1157): set_charge_current=1300
    02-22 21:19:25.672 I/BATTD ( 1157): set_charge_current=800
    02-22 21:19:29.579 I/BATTD ( 1157): set_charge_current=1300
    02-22 21:19:31.531 I/BATTD ( 1157): set_charge_current=800
    02-22 21:19:33.484 I/BATTD ( 1157): set_charge_current=1300
    02-22 21:19:35.437 I/BATTD ( 1157): set_charge_current=800
    02-22 21:19:37.390 I/BATTD ( 1157): set_charge_current=1300
    02-22 21:19:47.156 I/BATTD ( 1157): set_charge_current=800
    02-22 21:19:51.070 I/BATTD ( 1157): set_charge_current=1300

    It looks like it is alternating between a 1300mA charge and a 800mA charge. Is this some kind of trickle-charge algorithm to prevent overcharging the battery?

    Edit (2/26/2012, almost a year later, now using Android 2.3.4):

    When the battery is fully charged, we see current alternating between 700, 800 and 1800 mA:

    02-26 06:45:43.430 I/BATTD ( 1217): set_charge_current=700
    02-26 06:45:45.383 I/BATTD ( 1217): set_charge_current=800
    02-26 06:45:47.336 I/BATTD ( 1217): set_charge_current=700
    02-26 06:45:49.290 I/BATTD ( 1217): set_charge_current=1800
    02-26 06:45:57.110 I/BATTD ( 1217): set_charge_current=800
    02-26 06:45:59.055 I/BATTD ( 1217): set_charge_current=1800
    02-26 06:46:08.829 I/BATTD ( 1217): set_charge_current=700

    Sent from my DROIDX using DroidForums App
    Last edited by Natey2; 02-26-2012 at 08:08 AM.
  10. Droid Ninja
    Natey2's Avatar
    Member #
    129768
    Join Date
    Oct 2010
    Posts
    1,349
    Liked
    25 times
    Phone
    DROIDX
    #10
    Quote Originally Posted by albackore View Post
    maybe if you sent those errors to the developer they might fix them?

    Sent from my DROIDX using DroidForums App
    I'd like to see the source code first, if available. I only have the SDK installed at work, and I'm tied up with other things there.

    An error thrown during finalization is a bad thing.
    Finalization is when Java tries to release memory used by objects that (it thinks) are no longer needed. If something is holding on to those Cursor(s), the memory can't be released and reclaimed during the Garbage Collect (GC) routine(s).
    Hopefully, something will close that Cursor. If it doesn't, and if this occurs repeatedly, it will manifest itself as a memory leak.
    This is where inspecting a periodic heap dump would help, but I can't tie up my phone to my PC and SDK at work for days.
    I need to check the frequency of GCs that occur over time. If there is a memory leak, the poor phone would be trying very aggressively to GC very often as it finds less usable memory to work with, and that might explain why my phone gets sluggish over time.
    Rebooting the phone daily will mask this problem.

    Sent from my DROIDX using DroidForums App
Page 1 of 7 1 2 3 ... LastLast

Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. Trouble with Scenes??
    By GBancroft in forum Droid Incredible Tech Support
    Replies: 0
    Last Post: 07-10-2010, 11:16 PM
  2. Scenes: Can't Change!
    By MrsWeibull in forum HTC Droid Eris
    Replies: 0
    Last Post: 03-23-2010, 10:09 AM
  3. Scenes - Am I Missing Something?
    By Fairfax22032 in forum HTC Droid Eris
    Replies: 0
    Last Post: 01-22-2010, 10:02 AM
  4. Deleting scenes?
    By fbm111 in forum HTC Droid Eris
    Replies: 1
    Last Post: 01-21-2010, 07:03 PM
  5. Modifying Scenes
    By glat1000 in forum HTC Droid Eris
    Replies: 4
    Last Post: 01-05-2010, 11:31 AM

Search tags for this page

android cursor finalized without prior close
,
android cursor finalized without prior close()
,

android data collector service

,
calling this from your main thread can lead to deadlock and/
,

cursor finalized without prior close

,

cursor finalized without prior close()

,
data collector provider android
,

data collector service android

,
droid data collector service
,
java.lang.illegalstateexception: calling this from your main
Click on a term to search our site for related topics.
Find us on Google+