Developers

Implement a Kode Editor

Implement a Kode Editor #

Starting from 3.08 Kustom allows external apps to edit Kode from the formula editor fragment. A specific button will appear on top of the editor as soon as an app providing the right Action in the Manifest will be detected, this app just needs to return the new value of the formula that will then appear in the editor. Extras will be provided in the future to get current formula being edited and globals available to the user (in Json format). Right now only basic implementation is available.

...

Launchers touch features support (aka remove '5' secs delay)

Launchers touch features support (aka remove ‘5’ secs delay) #

When you press “home” Android will introduce a 5 secs delay to any app and service trying to execute an intent unless the app sending that intent is the current launcher. This prevents Kustom Wallpaper to launch apps without delay since it is running as a service.

This can be easily removed by adding support within the launcher for trusted wallpapers in order to let them remove this delay via a content provider. In order to support this what you should do is the following:

...

Send variables to Kustom via Broadcast

Send variables to Kustom via Broadcast #

Kustom from version 2.09 allows third party apps to send variables via broadcasts. In order to send a broadcast to Kustom you will need this static entries defined in your code:

public static final String KUSTOM_ACTION = "org.kustom.action.SEND_VAR";  
public static final String KUSTOM\_ACTION\_EXT_NAME = "org.kustom.action.EXT_NAME";  
public static final String KUSTOM\_ACTION\_VAR_NAME = "org.kustom.action.VAR_NAME";  
public static final String KUSTOM\_ACTION\_VAR_VALUE = "org.kustom.action.VAR_VALUE";  
public static final String KUSTOM\_ACTION\_VAR\_NAME\_ARRAY = "org.kustom.action.VAR\_NAME\_ARRAY";  
public static final String KUSTOM\_ACTION\_VAR\_VALUE\_ARRAY = "org.kustom.action.VAR\_VALUE\_ARRAY";

Then you will need to send a broadcast always providing an “EXT_NAME” and then providing either a single name/value pair or an array of them. So, for example, if we have an application called “foo” that wants to send “myvar” with value “myvalue” you will do something like this:

...




Privacy Policy