Giter VIP home page Giter VIP logo

bico's People

Contributors

dedee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

bico's Issues

Silent restart of service

It seems like the bico service is restarted by the OS.

08-03 07:19:03.309: W/ActivityManager(176): Permission Denial: receiving Intent { act=com.google.android.apps.mytracks.TRACK_STARTED (has extras) } to com.google.android.maps.mytracks requires com.google.android.apps.mytracks.TRACK_NOTIFICATIONS due to sender com.google.android.maps.mytracks (uid 10066)
08-03 07:33:55.489: I/ActivityManager(176): No longer want com.google.android.apps.maps:NetworkLocationService (pid 2551): hidden #16
08-03 07:33:55.489: W/ActivityManager(176): Scheduling restart of crashed service com.google.android.apps.maps/com.google.android.location.internal.server.NetworkLocationService in 5000ms
08-03 07:34:00.494: I/ActivityManager(176): Start proc com.google.android.apps.maps:NetworkLocationService for service com.google.android.apps.maps/com.google.android.location.internal.server.NetworkLocationService: pid=2952 uid=10071 gids={3003, 1015}
08-03 07:45:25.493: I/ActivityManager(176): No longer want de.dedee.bico:remote (pid 2645): hidden #16
08-03 07:45:25.503: W/ActivityManager(176): Scheduling restart of crashed service de.dedee.bico/.StatisticsService in 5000ms
08-03 07:45:30.507: I/ActivityManager(176): Start proc de.dedee.bico:remote for service de.dedee.bico/.StatisticsService: pid=2977 uid=10079 gids={}
08-03 07:47:01.766: W/InputManagerService(176): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@40759000
08-03 08:04:59.998: I/ActivityManager(176): No longer want com.zegoggles.smssync (pid 2217): hidden #16

Crash cause of a NPE

Null check required in de.dedee.bico.StatisticsService.stopTimer(StatisticsService.java:195) to avoid following NPE.

08-03 08:13:24.641: W/ActivityManager(176): Permission Denial: receiving Intent { act=com.google.android.apps.mytracks.TRACK_STOPPED (has extras) } to ProcessRecord{40765188 2977:de.dedee.bico:remote/10079} (pid=2977, uid=10079) requires com.google.android.apps.mytracks.MYTRACKS_NOTIFICATIONS due to sender com.google.android.maps.mytracks (uid 10066)
08-03 08:13:24.651: I/ActivityManager(176): Starting: Intent { flg=0x14000000 cmp=com.google.android.maps.mytracks/com.google.android.apps.mytracks.TrackEditActivity (has extras) } from pid 2728
08-03 08:13:24.721: E/AndroidRuntime(2977): FATAL EXCEPTION: main
08-03 08:13:24.721: E/AndroidRuntime(2977): java.lang.RuntimeException: Error receiving broadcast Intent { act=com.google.android.apps.mytracks.TRACK_STOPPED (has extras) } in de.dedee.bico.StatisticsService$MyTracksServiceStatusReceiver@4070a6b8
08-03 08:13:24.721: E/AndroidRuntime(2977):     at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:722)
08-03 08:13:24.721: E/AndroidRuntime(2977):     at android.os.Handler.handleCallback(Handler.java:587)
08-03 08:13:24.721: E/AndroidRuntime(2977):     at android.os.Handler.dispatchMessage(Handler.java:92)
08-03 08:13:24.721: E/AndroidRuntime(2977):     at android.os.Looper.loop(Looper.java:130)
08-03 08:13:24.721: E/AndroidRuntime(2977):     at android.app.ActivityThread.main(ActivityThread.java:3835)
08-03 08:13:24.721: E/AndroidRuntime(2977):     at java.lang.reflect.Method.invokeNative(Native Method)
08-03 08:13:24.721: E/AndroidRuntime(2977):     at java.lang.reflect.Method.invoke(Method.java:507)
08-03 08:13:24.721: E/AndroidRuntime(2977):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)
08-03 08:13:24.721: E/AndroidRuntime(2977):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622)
08-03 08:13:24.721: E/AndroidRuntime(2977):     at dalvik.system.NativeStart.main(Native Method)
08-03 08:13:24.721: E/AndroidRuntime(2977): Caused by: java.lang.NullPointerException
08-03 08:13:24.721: E/AndroidRuntime(2977):     at de.dedee.bico.StatisticsService.stopTimer(StatisticsService.java:195)
08-03 08:13:24.721: E/AndroidRuntime(2977):     at de.dedee.bico.StatisticsService.access$5(StatisticsService.java:194)
08-03 08:13:24.721: E/AndroidRuntime(2977):     at de.dedee.bico.StatisticsService$MyTracksServiceStatusReceiver.onReceive(StatisticsService.java:267)
08-03 08:13:24.721: E/AndroidRuntime(2977):     at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:709)
08-03 08:13:24.721: E/AndroidRuntime(2977):     ... 9 more

Is service started twice when activity is started?

08-04 08:27:19.155: I/ActivityManager(175): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=de.dedee.bico/.MyTracksMetaWatchActivity } from pid 1970
08-04 08:27:19.265: I/ActivityManager(175): Start proc de.dedee.bico for activity de.dedee.bico/.MyTracksMetaWatchActivity: pid=1979 uid=10079 gids={}
08-04 08:27:19.406: I/ActivityManager(175): Start proc de.dedee.bico:remote for service de.dedee.bico/.StatisticsService: pid=1987 uid=10079 gids={}

Use widget priority flag

[Reported by benjymous.]

Btw, you should probably set widget priority to 0 in your call to createWidgetUpdateIntent when the status is inactive. That will let the bico widget share a row with a weather widget - then it'll show weather when MyTracks is inactive, but show your widget when it's active (if that makes any sense!)

The framework uses the priority to work out which widgets to draw when there are more in a row than would fit - higher priority means more chance of your widget appearing.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.