Changing the app icon programmatically, can it be done?
- Every time I look at the Calendar app icon on my screen I keep asking myself: "How did they do that?" I mean, every day the icon shows a new day and a new day of week.
Could anyone point me to an arctile in the docs where such an API method is described? Another question: did Blackberry prepare a large set of hundreds icons for an each combination of Day and Day of Week + locale-dependant or they "draw" these data programmatically?
I understand that this question can remain unanswered for ages but maybe someone could recall something. I'm posting this just to feed my curiosity.
Thanks.
Posted via CB1005-24-20 04:47 AMLike 0 - Every time I look at the Calendar app icon on my screen I keep asking myself: "How did they do that?" I mean, every day the icon shows a new day and a new day of week.
Could anyone point me to an arctile in the docs where such an API method is described? Another question: did Blackberry prepare a large set of hundreds icons for an each combination of Day and Day of Week + locale-dependant or they "draw" these data programmatically?
I understand that this question can remain unanswered for ages but maybe someone could recall something. I'm posting this just to feed my curiosity.
Thanks.
Posted via CB10
file:///base/usr/share/icons/
Many of them are there.
I think the app would need to keep a pointer the next days icon like a linked list.
Posted via CB10Last edited by Leyra B10; 01-15-21 at 03:15 PM.
05-26-20 12:01 AMLike 0 - So you think there is a set of icons somewhere... the number should be around 31*7*<different resolutions> perhaps. But it's still unclear how to change the home screen programmatically. The question is whether it's an internal thing or undocumented or that's me who is missing something. There should be something for sure, at least they need to draw the notification spark.
I've found an old post back to 2011: https://stackoverflow.com/questions/...e-apps/8359562
The fun part is that old bbos allowed doing that unlike other platforms.
Anyway, thanks for the link, I found a couple of things to reuse. It takes a bit of time to find icons or other resources when you develop something.
Posted via CB1005-26-20 02:45 AMLike 0 - So you think there is a set of icons somewhere... the number should be around 31*7*<different resolutions> perhaps. But it's still unclear how to change the home screen programmatically. The question is whether it's an internal thing or undocumented or that's me who is missing something. There should be something for sure, at least they need to draw the notification spark.
I've found an old post back to 2011: https://stackoverflow.com/questions/...e-apps/8359562
The fun part is that old bbos allowed doing that unlike other platforms.
Anyway, thanks for the link, I found a couple of things to reuse. It takes a bit of time to find icons or other resources when you develop something.
Posted via CB10
Posted via CB1005-26-20 06:18 PMLike 0 -
- Hey. I just came by to see what's in here. I have no coding knowledge or whatsoever. As for the calendar, the background is like a fixed container, the date has 31 days. And days have 7. It's like they code it to overlay images. It's my hypothesis. The entire calendar app is about 3MB (checked it in the autoloader as you call it) and approximately the size of the date and days would be less than 40KB each and my reference is the size of icons of most android apps since I love to tweak 'em. So they must have overlay it. And all in all, 1 background + 31 dates + 7 days... that's the number of images in PNGs the app has.
It's really amazing how many features BBOS has before apple iphones. The gesture touch for example. BB has it years ahead before iphone X or its iOs version and also the one you were discussing here apple must have copied it too. And Hahaha. My BB Classic has wireless charging long long before the birth of new gen. of smartphone today.
I really don't know how to program as I've said. But it's obvious to me that a code can respond to a time and any environment. So you set the time variable first and the corresponding results. I trust you can something like it guys.
Posted via CB1006-18-20 09:19 AMLike 0 - Hey. I just came by to see what's in here. I have no coding knowledge or whatsoever. As for the calendar, the background is like a fixed container, the date has 31 days. And days have 7. It's like they code it to overlay images. It's my hypothesis. The entire calendar app is about 3MB (checked it in the autoloader as you call it) and approximately the size of the date and days would be less than 40KB each and my reference is the size of icons of most android apps since I love to tweak 'em. So they must have overlay it. And all in all, 1 background + 31 dates + 7 days... that's the number of images in PNGs the app has.
It's really amazing how many features BBOS has before apple iphones. The gesture touch for example. BB has it years ahead before iphone X or its iOs version and also the one you were discussing here apple must have copied it too. And Hahaha. My BB Classic has wireless charging long long before the birth of new gen. of smartphone today.
I really don't know how to program as I've said. But it's obvious to me that a code can respond to a time and any environment. So you set the time variable first and the corresponding results. I trust you can something like it guys.
Posted via CB10
But yes it's strange how Google and Apple depended on buttons for so long. I love getting back into some gestures with my iPhone XR. But then I know some that hate not having a button, couple even looking at going from an iPhone X or 11 to the SE. Just for the button. Just imagine what they could do with 35 of them....
As for wireless charging... I don't know who first had it on a smartphone, but I know way back in 2009 Palm had it on one of their new phones.
BB10 was great, and BlackBerry was wise to copy what others were having sucess with... it's just too bad they waited so long to do it.06-18-20 01:49 PMLike 0 -
-
Even today many acknowledged how innovative the Pre was.
Still think Palm for $1.4 Billion would have been cheaper for BlackBerry than QNX at $200 Million (then another $4 Billion on development and three years wasted).
HP didn't have a clue what to do to fix Palms issues, but a marriage of Palm and BlackBerry. I'd give that about a 20% better shot than BB10.Laura Knotek likes this.06-18-20 02:40 PMLike 1 -
- I really wish Palm had a few billion to burn back then.... WebOS had a much better chance of being a 3rd OS in 2009 than BlackBerry had with BB10 in 2013. A little more money, maybe they wouldn't have had so many poor build quality issues. And they might have caught on that people were trending bigger....
Even today many acknowledged how innovative the Pre was.
Still think Palm for $1.4 Billion would have been cheaper for BlackBerry than QNX at $200 Million (then another $4 Billion on development and three years wasted).
HP didn't have a clue what to do to fix Palms issues, but a marriage of Palm and BlackBerry. I'd give that about a 20% better shot than BB10.
Posted via CB1006-20-20 08:10 AMLike 0 -
-
- Forum
- BlackBerry Developers
- Developers Lounge
Changing the app icon programmatically, can it be done?
Similar Threads
-
Are BB10 original icons downloadable, and where can I find them if they are?
By wccat22fan in forum BlackBerry 10 OSReplies: 1Last Post: 06-06-20, 05:37 PM -
Backup apps that can be sideloaded or installed from an APK.
By johnb_xp in forum BlackBerry 10 AppsReplies: 8Last Post: 06-05-20, 10:44 AM -
Google Play Store suggests apps for my new phone?
By tubularbell in forum BlackBerry Android OSReplies: 2Last Post: 05-25-20, 09:29 AM -
My BlackBerry Passport got stuck at 98% during the security wipe, need help, please!
By nishant dahal in forum BlackBerry PassportReplies: 5Last Post: 05-25-20, 07:32 AM -
Learn essential skills from Ivy League professors and Nobel Prize winners with this app.
By CrackBerry News in forum CrackBerry.com News Discussion & ContestsReplies: 0Last Post: 05-23-20, 08:12 PM
LINK TO POST COPIED TO CLIPBOARD