I have changed some code for supported all,but I don't know how can I refer to %PROJECT_NAME% is right,or not. please help to code. (using b4xtemplate)
B4X:
#If B4J
xui.SetDataFolder(%PROJECT_NAME%)
#End If
If File.Exists(xui.DefaultFolder,"YourIcon.png")=False Then
File.Copy(File.DirAssets, "YourIcon.png",xui.DefaultFolder,"YourIcon.png")
End If
B4XPages.GetNativeParent(Me).Icon = xui.LoadBitmap(xui.DefaultFolder, "YourIcon.png")
Hi Peter,
I get understand your thinking,in B4A and in B4i ,they can created icon for apps themselves ,but in B4J can't do. In another hand,I would like to create the apps by using the same Icon.