Browsed by
Category: Eric

Leave a Reply

Your email address will not be published. Required fields are marked *

PendingIntent on S+ devices

PendingIntent on S+ devices

One of my Android apps includes a widget that auto-updates both at a fixed interval (AlarmService) and when tapping on the widget. In the past this was accomplished with something like this (C# Xamarin): This has worked for years just fine, not realizing that S+ devices (or anything targeting version 31 or above) on Android requires a PendingIntentFlag value in that GetBroadcast call. A brief search returned how “easy” this is, just add in a flag for PendingIntentFlags.UpdateCurrent or PendingIntentFlags.Mutable…

Read More Read More

Another reason smoking is bad

Another reason smoking is bad

Here’s another reason why smoking is bad (as if we need more reasons).  I was out walking my dog, and I always walk past a city bus stop.  Each day I walk by and am amazed at the number of extinguished cigarette butts people stuff in the sign post (through the holes) as they put their smoke out before getting on the bus.  Apparently, when you stuff a lot of flammable objects into a tightly contained area with exposure to…

Read More Read More