Is it possible to get a list of all applications installed in a Blackberry, similar to the applications list when you go into your settings.
I can get a list of all visible applications using the following but I was wondering if it's possible to get a list of apps that aren't necessarily running but are installed,
ApplicationDescriptor[] descriptors =
ApplicationManager.getApplicationManager().getVisibleApplications();
You can use:
net.rim.device.api.system.CodeModuleManager.getModuleHandles()
To get an array of handles into all modules, and:
net.rim.device.api.system.CodeModuleManager
.getApplicationDescriptors(int moduleHandle)
To get ApplicationDescriptors associated with the module. You will have to sort out which modules are libraries and which are applications.
Related
Trying to find information on how to implement deferred deep linking in electron app but can't find it in the official electron documentation.
We have an electronic application. I need the following behavior: when a user tries to open a link of this type -> custom-protocol: // some-data in the browser, if the application is not installed, then automatically download the application and, after installation, pass the parameters contained in the link (some-data) to the application. Can anyone suggest how to implement this in electronic or a link to the documentation or show some abstract example of implementation
On Windows, custom protocols are stored in the registry. This is a chicken and egg problem because your application already has to be installed on the system for the registry entry to exist.
If you rewrite your application as a UWP app (lol) you might be able to check with getInstalledRelatedApps to see if the app is already installed.
If you want to streamline how your application is installed from the web, consider using ClickOnce.
So basically you just want a way to pass some query params to your application when installed from your website.
You can do this if you package your electron application as an MSIX. Check out the article below from Microsoft, that documents the process:
Passing query params to an MSIX packaged app
I need to support a special release per user (or group), and I want each user will auto-update to a new available release only if it's suitable for him (by some kind of logic in the backend).
I've tried to do so by using electron-builder's electron-updater module, and also by using Electron's autoUpdater built in module, but it seems that both always fetch the latest version when calling autoUpdater.checkForUpdates.
I've seen that when deploying my own update server, some of them (such as nuts) support a download url for a specific version.
as described using nuts
Specific version for detected platform: http://download.myapp.com/download/1.1.0
but there seem to be no support to request a specific version in the app itself using autoUpdater.
summarizing all this up: How can I achieve auto-update to a specific release other than latest?
The solution for me was channels.
appUpdater.channel (getter and setter)
Define the channel which the Auto-Updater will follow (see the
auto-update with channels tutorial) using appUpdater.channel = 'beta'
or get the current channel with currentChannel = appUpdater.channel.
Note that channels are not supported when using GitHub as a provider (for now), as described in electron-builder autoUpdate documentation:
channel String - Get the update channel. Not applicable for GitHub. Doesn’t return channel from the update configuration, only if was previously set.
You can set the channel name to anything, and can even dynamically (if needed) direct your users to pull updates from that channel.
You can also edit the {your-channel-name}.latest file manually and add parameters that will help you determine whether the current "asking for update" user should consume the certain version (in the update-available event from the updateInfo parameter for example).
Is it possible to get a list of the installed browsers using dart:io ?
More specifically, I would want to have a variable
List installedBrowsers in my grinder file, so that my grinder will work independently of the OS and installed browsers.
#DefaultTask('Test')
test() =>
new TestRunner().test(
files: myFile,
platformSelector: installedBrowsers);
You can use the package which to find executables with a certain name.
Alternatively you can require one or more specific environment variables to be set to get the browser names and/or executable paths of the available browsers.
I'm developing a bundle app for Cytoscape 3. In this app I need a funcionality very similar to the build-in View > Arrange Network Windows > Grid, or Ctrl+G.
However, I cannot seem to find anything in Cytoscape's API that allows me to arrange network windows.
The source code behind the build-in funcionality can be found here: https://github.com/cytoscape/cytoscape-impl/blob/cbd6ae7202a2137d0224862aa371b82c1ec9a7a7/swing-application-impl/src/main/java/org/cytoscape/internal/view/CyDesktopManager.java#L81
As you can see I need a reference to the JDesktopPane, how do I get this through the API?
I don't think there is clean API-way of achieving what I want. You can however do it as follows:
In your activator you are able to retrieve a CySwingApplication reference: getService(bc, CySwingApplication.class), from which you can call the method .getJFrame(). You can recursively scan through all swing Container components with until you find a component of the type JDesktopPane. When you call .getAllFrames() of the JDesktopPane you can do whatever with you network windows (JInternalFrame).
We are working with Umbraco 4.5. We have different culture set in the site. for that we use Dictionary object.
We completed our development locally now we need to deploy our changes on our Production Server. We want our Local Umbraco Dictionary to be imported to Production Server with some automated process. As we have more than 1000 Keys in Umbraco Dictionary.
Thanks
You have two options:
Script the SQL changes in the cmsDictionary and cmsLanguageText tables (they are related)
Create a package (right click on Packages in the Developer section > Create). In there you will be able to choose the dictionary items you want to include. With a 1000 keys, you don't really want to do that though.
Also, the upcoming version of Courier for Umbraco should be able to alleviate trouble with content migration (any type of content).
You can use this Umbraco Package: Dictionary Dashboard
It's easy to install, you can specify in which Section of the Backend it can be seen (by default this "Dictionary" Tab is available under "Content". (Umbraco official "Dictionary" is under "Settings" and I don't like that: if the customer wants access there he will need a user with admin rights, which I don't like (can mess with other things)...).
You export your dictionary as XML, you can easily edit it (if needed), you can import it in another umbraco installation (where you must install this package of course).
It's really one of my favorite packages.
It works from Umbraco 4.7.x till 6.x (with umbraco 7 I don't know, try...)