J Jose Paulo Member Licensed User Mar 3, 2018 #1 Hi, Best regards, I use the code: B4X: Activity.AddMenuItem3("Ajuda","EventoAjuda",LoadBitmap(File.DirAssets,"btnajuda.png"),True) Activity.AddMenuItem3("Sobre","EventoSobre",LoadBitmap(File.DirAssets,"btnsobre.png"),True) On app1 works perfectly, but on the app2 not appear. The two are executed on device with Android 5.0 and i use sdk 16. The manifest is the same: B4X: AddManifestText( <uses-sdk android:minSdkVersion="5" android:targetSdkVersion="19"/> <supports-screens android:largeScreens="true" android:normalScreens="true" android:smallScreens="true" android:anyDensity="true"/>) SetApplicationAttribute(android:icon, "@drawable/icon") SetApplicationAttribute(android:label, "$LABEL$") Help me, thanks Last edited: Mar 4, 2018
Hi, Best regards, I use the code: B4X: Activity.AddMenuItem3("Ajuda","EventoAjuda",LoadBitmap(File.DirAssets,"btnajuda.png"),True) Activity.AddMenuItem3("Sobre","EventoSobre",LoadBitmap(File.DirAssets,"btnsobre.png"),True) On app1 works perfectly, but on the app2 not appear. The two are executed on device with Android 5.0 and i use sdk 16. The manifest is the same: B4X: AddManifestText( <uses-sdk android:minSdkVersion="5" android:targetSdkVersion="19"/> <supports-screens android:largeScreens="true" android:normalScreens="true" android:smallScreens="true" android:anyDensity="true"/>) SetApplicationAttribute(android:icon, "@drawable/icon") SetApplicationAttribute(android:label, "$LABEL$") Help me, thanks
J Jose Paulo Member Licensed User Mar 4, 2018 #2 I solved: my app in activity_create contained: B4X: Dim ImgFundo As ImageView ImgFundo.Initialize("") ImgFundo.Bitmap=LoadBitmap(File.DirAssets,"logo68.gif") ImgFundo.Visible=False PAN_Logo.AddView(ImgFundo,0,0,PAN_Logo.Width,PAN_Logo.Height) ImgFundo.SendToBack ImgFundo.SetVisibleAnimated(1500,True) Sleep(2000) ImgFundo.SetVisibleAnimated(1500,False) Then, i moved these code to activity_resume and all right... Now, the menu buttons appear on activity_create, if put the code to create buttons menu on the first lines, just below the activity.loadlayout, works too I just do not understand why... Last edited: Mar 4, 2018 Upvote 0
I solved: my app in activity_create contained: B4X: Dim ImgFundo As ImageView ImgFundo.Initialize("") ImgFundo.Bitmap=LoadBitmap(File.DirAssets,"logo68.gif") ImgFundo.Visible=False PAN_Logo.AddView(ImgFundo,0,0,PAN_Logo.Width,PAN_Logo.Height) ImgFundo.SendToBack ImgFundo.SetVisibleAnimated(1500,True) Sleep(2000) ImgFundo.SetVisibleAnimated(1500,False) Then, i moved these code to activity_resume and all right... Now, the menu buttons appear on activity_create, if put the code to create buttons menu on the first lines, just below the activity.loadlayout, works too I just do not understand why...