Tom Arn
Tom Arn
@mhsmith I tried following code (using my tatogalib library): ``` mgr = NotificationManager() ctx = mgr._impl.context res = ctx.getResources() pkg = ctx.getApplicationInfo().packageName icon = res.getIdentifier("ic_launcher", "drawable", pkg) self.fnPrintln(f"package: {pkg}") self.fnPrintln(f"icon:...
hmm...but this works: `icon = res.getIdentifier("abc_ic_search_api_material", "drawable", pkg)` also this works: ``` from ch.tanapro.pyplayground import R icon = R.drawable.abc_ic_search_api_material ``` It seems that there really is no "ic_launcher" icon in...
@mhsmith It works with `icon = res.getIdentifier("ic_launcher", "mipmap", pkg)`, not with `drawable` :-) And with a full resource name, it also works: `icon = res.getIdentifier(f"{pkg}:mipmap/ic_launcher", None, None)` So, we could...
Starting with Android 7.0, it is possible to use Icons built from a file as the notification's small icon. So, the icon parameter could be a file path for both,...
> there's a third option of "system icon identifier" Yes, I like this idea. What data type would Icon.ERROR be? An Integer? Then, we could differentiate the three cases based...
I implemented Russel's suggestions regarding the icons in my tatogalib (only for Winforms, Android will follow): https://www.tanapro.ch/products/taTogaLib/docs/html/system/notifications.html I would appreciate your comments on this implementation, so I can take those...
@freakboy3742 Thanks for your comments. I always learn a lot from your feedbacks. Of course I do not plan to create toga dependencies with tatogalib. My tatogalib library is meant...