Modify icon of the Flex application for Blackberry-Playbook - apache-flex

Has anybody please found a way to modify/replace the icon of a Playbook program?
Like display a red star on it - to indicate there is new message for the user.
I've tried tracing NativeApplication.supportsDockIcon and NativeApplication.supportsSystemTrayIcon properties, but they are both false on Playbook simulator.

What you're asking (dynamically changing the icon once the app is installed) is not currently possible. That will require OS support which is not available and hasn't even been mentioned publicly yet.
The reason it's not possible currently without an API is that everything in your .bar is written to a folder which is read-only to the app itself, icon file and MANIFEST.MF file included.

Edit your blackberry-tablet.xml and add
<icon>
<image>blackberry-tablet-icon.png</image>
</icon>

Related

Eclipse WikiText: How to set css for preview?

Using Eclipse 2020-09 (i.e. v. 4.17) IDE for Java (on Linux, openSUSE Tumbleweed), with version 3.0.38 of Mylyn WikiText plugin installed, I had the following difficulty: Although pretty much all editor/ui fonts were fine, the HTML preview of WikiText files (in particular README.md!) displayed in unreadably small fonts (my display has a very small pixel pitch). So I wanted to find a way to set the CSS of such preview pages. The Mylyn WikiText docs (at https://help.eclipse.org/2020-09/index.jsp?topic=%2Forg.eclipse.mylyn.wikitext.help.ui%2Fhelp%2FMylyn+WikiText+User+Guide.html, under the heading "Rendering Appearance") says that there should be a Preferences screen General > Editors > Text Editor > WikiText > Appearance that allows one to set this CSS. However, no such screen shows up in my installation.
The only method I was able to find for fixing this was to use an application (such as Engrampa) which is able to edit the contents of .jar files, and in my eclipse installation directory, use it on plugins/org.eclipse.mylyn.wikitext.ui_3.0.[SPECIFIC_VERSION_HERE].jar to edit the internal component org/eclipse/mylyn/internal/wikitext/ui/viewer/default.css -- I could change any css there, and upon restarting Eclipse, the changes would take effect.
However, clearly any changes I make this way will be blown away upon the next update of Eclipse or of Mylyn Wikitext. Does anyone know of a better way to set the size of the preview text? Was that Appearance pane mentioned in the docs removed? If so, what replaced it? If not, any ideas why I might not be seeing it?

Chromium based Browser "slimjet" toolbar grafical resources (icons)

I want to modifiy slimjet for personal use and searched through gits, reshacked all dll files and the app exe but I can't seem to find the resources I want to change. Does anybody know, where the grafical resoucres - icons or buttons for the toolbar - are stored in chromium derivatives general, but especially slimjet? I am not talking about the extension buttons. I mean those for "home" and navigation.
Are they inside the compiled binary file inside the exe or inside the .pak file I can not reshack or unpack?
Any clue or hint or help is appreciated.

How to change JavaFx native Bundle exe icon

I am trying to chance the icon of the exe file created native bundling of javafx packaging but it still contains the default icon. Please suggest
primaryStage.getIcons().add(FileUtility.loadImage("icon.png"));
did not help, it only changes the title bar and task bar icon.
The ico file still gets generated and icon of the exe files remains the default one
I also tried to assign an icon in the project properties-> Deployment-> icon but did not help
I believe I have encountered the same issue and the solution is described in the following thread.
As a side note - neither specifying your icon in the build.xml file or via the project's options in the deployment section is going to work thus far, but it seems to be fixed in the upcoming release of 7u10.
I added response here How to set custom icon for javafx native package icon on Windows and thinks it is the same issue you started out with. However you seem to have moved on, but others might find it interesting...
I added src/main/deploy/package/windows/myapp.ico there and it finally worked :)
For you:
Create src/main/deploy/package/windows/ folder
Add icon with name ${project.build.finalName}.ico
Run mvn jfx:build-native
I haven't played with it extensively - just got it to work and wanted to share. So if you want to use icon with different name, I don't know how. Not yet at least. The ... section in the config section seems to be for webstart, so I haven't been using it. Hope you get it to work!
Answered at How to set custom icon for javafx native package icon on Windows

How to set icon to an adobe air application

I am developing an Adobe Air app. I need to set an icon to the app so it is shown on the task bar. I added the icon tag to the descriptor file but it is not working and I really don't know why, any ideas?
Two things that might be throwing you off:
1) the icons block is commented out by default in the auto-generated descriptor file, and is an easy thing to overlook
2) the icons specified in a descriptor file don't appear in the app unless you build a release build, and install the resulting .air file. A debug build will only show the AIR icon.
At least these are the behaviors I experience in Flash Builder 4.
Adding the icons to your application descriptor should do it.
However, icons come in different sizes.
For example:
<icon>
<image16x16>/icons/app/icon_16.png</image16x16>
<image29x29>/icons/app/icon_29.png</image29x29>
<image32x32>/icons/app/icon_32.png</image32x32>
<image36x36>/icons/app/icon_36.png</image36x36>
<image48x48>/icons/app/icon_48.png</image48x48>
<image57x57>/icons/app/icon_57.png</image57x57>
<image72x72>/icons/app/icon_72.png</image72x72>
<image114x114>/icons/app/icon_114.png</image114x114>
<image128x128>/icons/app/icon_128.png</image128x128>
<image512x512>/icons/app/icon_512.png</image512x512>
</icon>
If I'm not mistaken, the 32x32 icon should be the one that is displayed in the taskbar.
Obviously, make sure that you are referring to the correct path in your descriptor file.
One more thing. I just wasted over an hour on this: For an iOS app, you won't see the icon when you drop the app into iTunes (at least not under Windows), but it will appear on your device!

how can launcher icon image name in mobile flex project using eclipse indigo?

I am building an mobile flex app in eclipse indigo and have my app worked almost to completion and about ready for deployment. Unfortunately, I cannot find how to change the app icon and title for the system to read, so my app still shows up as Main with the default package symbol in the launcher. Does anyone know where to apply changes to these properties?
There are properties in your app-config file. If you main application file is Main.mxml; then most likely your app config is named Main-app.xml. Look for the icon tag to specify the app icon. One of my apps uses something like this:
<icon>
<image32x32>/assets/icon/Icon32x32.png</image32x32>
<image36x36>/assets/icon/Icon36x36.png</image36x36>
<image48x48>/assets/icon/Icon48x48.png</image48x48>
<image72x72>/assets/icon/Icon72x72.png</image72x72>
<image114x114>/assets/icon/Icon114x114.png</image114x114>
</icon>
I believe the name under the icon is specified using the name parameter in the same file:
<name>My App Name</name>

Resources