I’ve used LLwith android all in one.
I’ve used LLwith android all in one.
If i want to make a click sound with clicking icon, how i have to do on LL….
]]>« blue for Kustom with Lightning Launcher (Previous Post)
(Next Post) How can I add multiple apps to a folder at a time? »
< ![CDATA[
Create a script that you will set to the tap event. It should look like this (not tested, you may have to tune or fix it):
LL.bind(“android.media.MediaPlayer”);
LL.bind(“java.io.File”);
var player = MediaPlayer.create(LL.getContext(), Uri.fromFile(new File(‘/path/to/your/sound/file’)));
player.setOnCompletionListener({
onCompletion: function(mp) {
mp.release();
}
});
player.start();
LL.getEvent().getItem().launch();
You may also have a look at SoundPool, which will be more efficient.
]]>
< ![CDATA[
Pierre Hébert Thanks for reply!! But I got a error message.
“Can not find function bind in object.pierrox.lighting_launcher.b.a.l@780464a.~~(clicksound#1)
]]>