runmethod

  1. practicalsoft

    B4X FEED KeyBoard Event,detect CTRL+X or etc...

    B4X: Private KEY_CTRL_PRESSED As Boolean = False Sub AppStart (Form1 As Form, Args() As String) MainForm = Form1 MainForm.RootPane.LoadLayout("Main") 'Load the layout file. MainForm.Show AddKeyPressedListener(MainForm) End Sub Sub AddKeyPressedListener(f As Form)...
  2. practicalsoft

    B4X FEED [Solved] Set BitmapDrawable gravity = Center (Native Ads Advanced)

    I use this code to set a image in native ad advanced. B4X: Dim images As List = NativeContentAd.RunMethod("getImages", Null) If images.IsInitialized And images.Size > 0 Then Dim image As JavaObject = images.Get(0) logoView.Background = image.RunMethod("getDrawable", Null)...
  3. practicalsoft

    B4X FEED How to set Android 11 transparent status bar?

    I am very sorry for this problem using Google Translate. The transparent status bar I set up with the following code has always worked well, but the following problems occur on Android 11. B4X: Dim jo As JavaObject Dim window As JavaObject = jo.InitializeContext.RunMethod("getWindow"...
  4. practicalsoft

    B4X FEED Set BitmapDrawable gravity = Center (Native Ads Advanced)

    I use this code to set a image in native ad advanced. B4X: Dim images As List = NativeContentAd.RunMethod("getImages", Null) If images.IsInitialized And images.Size > 0 Then Dim image As JavaObject = images.Get(0) logoView.Background = image.RunMethod("getDrawable", Null)...
  5. practicalsoft

    B4X FEED [SOLVED]JavaObject RunMethod Perform Click Error on B4XComboBox

    Hi, I have a simple example of B4XComboBox and Spinner. when I do JavaObject. RunMethod("performClick",Null) it works on Spinner but not on B4XComboBox (see attached picture) Is it possible to have "perform click" another way/other means for B4XComboBox? Any help is appreciated B4X: 'This...
  6. practicalsoft

    B4X FEED JavaObject RunMethod Perform Click Error on B4XComboBox

    Hi, I have a simple example of B4XComboBox and Spinner. when I do JavaObject. RunMethod("performClick",Null) it works on Spinner but not on B4XComboBox (see attached picture) Is it possible to have "perform click" another way/other means for B4XComboBox? Any help is appreciated B4X: 'This...
  7. abass

    تکه کد تکه کد چک کردن گوگل پلی سرویس در b4a

    تکه کد چک کردن گوگل پلی سرویس در b4a Sub CheckForGooglePlayServices As Boolean Dim GoogleApiAvailablity As JavaObject GoogleApiAvailablity = GoogleApiAvailablity.InitializeStatic("com.google.android.gms.common.GoogleApiAvailability").RunMethod("getInstance", Null) Dim context As...
  8. A

    گرفتن مدت زمان یک ویدیو در b4a

    #تکه_کد برای گرفتن مدت زمان یک ویدیو میتونید از کد زیر استفاده کنید : `GetVideoDuration(File.Combine(Dir,Name))` ```Public Sub GetVideoDuration (path As String) As Long Try Dim mFile As JavaObject mFile.InitializeNewInstance("java.io.File",Array(path)) Dim inputStream As...
عقب
بالا