QSL4A Documentation of
createScriptShortCut <QSL4A API Menu>createScriptShortCut(scriptPath,label=None,iconPath=None,scriptArg=None)
create Python Script ShortCut, Create ShortCut Permission is Required .
scriptPath (String)
label (String Optional) Text to Show on ShortCut
iconPath (String Optional) Image Path to Show as ShortCut's Icon
scriptArg (String Optional)
return None
===== Example =====
from androidhelper import *
droid = Android()
droid.createScriptShortCut(
scriptPath='/sdcard/path/to/project/folder/',
label='CustomName',
iconPath='/sdcard/path/to/image.jpg'
)
droid.createScriptShortCut('/sdcard/path/to/script/file.py')