How to use constants images?

desof

Well-Known Member
Licensed User
Longtime User
Hello friend I have this code that works for me barbaric but I have no idea how to use the constants that are on this site

Android Drawables

because if I place in my code ic_menu_help constant corresponding to some error 17301568 ...

my code is:

B4X:
   Dim PH As Phone 
   Dim BD As BitmapDrawable 
   
   If FirstTime=True Then       
          ' BD = PH.GetResourceDrawable(ic_menu_help)  'ASI OBTENGO ERROR 
                BD = PH.GetResourceDrawable(17301568 )'
      Activity.AddMenuItem2("Volver","Button4", BD.Bitmap)   '      Inicial   
   End If
 
Top