¿Es posible cambiar el icono de la aplicación, desde el manifiesto?
Algo parecido a esto ...
[CODE = b4x] 'Cambia el icono segun el nombre de la version
#string Explotacion = {Application.VersionName.SubString2 (0,1)}
#if Explotación = "M"
SetApplicationAttribute (android: icon, "@ drawable / icon_m")
#terminara si
#if Explotación = "G"
SetApplicationAttribute (android: icon, "@ drawable / icon_g")
#terminara si
[/CÓDIGO]
Gracias.
This tutorial explains how the new conditional compilation feature can be used to change the app icon and the assets files based on the chosen build configuration. See this tutorial for more information about build configurations: http://www.b4x.com/android/forum/threads/40746/#content We have...
Gracias José
Pero vengo de esa pagina (# 9)
Veo que DavideV, Filtra el nombre de la App
Yo lo que quiero el filtrar parte de la VersionName ( Application.VersionName.SubString2 (0,1))
Ejemplo
VersionName = M_Bajas Application.VersionName.SubString2 (0,1) = M = icon_m
VersionName = G_Bajas Application.VersionName.SubString2 (0,1) = G = icon_g
¿Es posible esto?
B4A v3.80 adds support for conditional compilation. From Wikipedia: In computer programming, conditional compilation is compilation implementing methods which allow the compiler to produce differences in the executable produced controlled by parameters that are provided during compilation...
www.b4x.com
Distinto tamaño mismo diseño:
solo debes generar las carpetas para las resoluciones de pantalla (existen herramientas para estos si deseas).
All apps should have an adaptive icon. If you are not familiar with these icons then start here: Adaptive Icons Instruction steps: Create a new folder in the root project folder named icon. Create two folders inside that folder with the following files: mipmap: ic_launcher.png -...
Correcto y gracias.
Después de leerme todos los enlaces y perderme infinidad de veces.
Lo he solucionado
[CODE = b4x] 'Comprueba la explotación segun el simbolo condicional del compilador
ControlLista.Initialize
'Martínez M
#Si M
Modulo1.N_EXPLOTACION = "M"
#CustomBuildAction: 1, c: \ windows \ system32 \ robocopy.exe, .. \ icon_m .. \ icon / MIR
#Terminara si
«Girbes G
#Si G
Modulo1.N_EXPLOTACION = "G"
#CustomBuildAction: 1, c: \ windows \ system32 \ robocopy.exe, .. \ icon_g .. \ icon / MIR
#Terminara si
Seleccione Modulo1.N_EXPLOTACION
Caso "M"
ControlMapa.Initialize
ControlMapa = CreateMap ("Numero_De_Naves": 2)
ControlLista.Add (ControlMapa)
Caso "G"
ControlMapa.Initialize
ControlMapa = CreateMap ("Numero_De_Naves": 6)
ControlLista.Add (ControlMapa)
Finalizar Seleccionar
COOPBL = Tipo de letra.LoadFromAssets ("COOPBL.TTF")
CrearLayoutNave
End Sub
[/CÓDIGO]
Hola, Siempre cambiaba el ícono yendo a Objetos / res / drawable, eliminando el ícono y ponía otro con el mismo nombre y el mismo tamaño.
Translated by google.