activity

  1. practicalsoft

    B4X FEED basic4android 开发教程翻译(八)使用ListView

    ListView 控件是一个非常强大的控件. 它可以以非常雅致的方式来显示长的或者短的列表. 建立一个ListView 非常简单: B4X: Sub Globals Dim ListView1 As ListView End Sub Sub Activity_Create(FirstTime As Boolean) ListView1.Initialize("ListView1") For i = 1 To 300 ListView1.AddSingleLine("Item #" & i) Next...
  2. practicalsoft

    B4X FEED Qr code not working when implemented into my project

    Today at 1:40 PM i came across your post on qr code scanner but when i try to implement the code in my project and execute it won't show anything rather it will log message "*** gniytvb: B4XPage_Appear [gniytvb]" and "Result has arrived" and "** Activity (main) Pause event (activity is not...
  3. practicalsoft

    B4X FEED Combobox TextChanged event not firing

    Hi I have a combox on my main screen, but I cannot get the combo to fire the TextChanged event, I've done a mock up of my screen as a demo, code below, am I missing something? B4X: Sub Process_Globals End Sub Sub Globals Private cboLocation As B4XComboBox End Sub Sub...
  4. practicalsoft

    B4X FEED Sending email

    Hello everyone, This is my first experience in B4A. I'm trying to write a code that sends an email. This is the code I wrote: Sub Process_Globals 'These global variables will be declared once when the application starts. 'These variables can be accessed from all modules. Private xui As XUI...
  5. practicalsoft

    B4X FEED Problems with decoding QRCodeReader v1.02

    Hello everybody. I've successfully used @Johan Schoeman excellent library for a while. But I'm having an unusual problem when trying to decode a QRCode in particular (This one is attached). The reading through the scanner is perfect and brings the information perfectly. But when I try to decode...
  6. practicalsoft

    B4X FEED inline java and javaobject

    Hello everyone, i am having a problem with inline java and javaobject. I have a co-developer who knows how to code in java, my problem is i don't know how to pass the code to b4a. i can't get the return value of the java code. below is the inline java code: B4X: #if java import...
  7. practicalsoft

    B4X FEED Wait For with CallSub doesn't work

    Hi, I want to do some Jobs on start of an App. Since there are user interactions and I have to handle with MsgBoxAsync and Wait For, there are Services to start and so on, it's quite difficult to keep the order of the jobs. Especially because anything runs in Activity_Create, and some jobs...
  8. practicalsoft

    B4X FEED Maintaining user entered data on activity

    i have a calculator like single activity app, user fills some the data and it calculate, app works fine. but when we switch to some other app and back to my app, all data like are reset/erased from the textbox, colors of controls are reset etc. like the activity is recreated. how do i maintain...
  9. practicalsoft

    B4X FEED How to load an activity/view

    I'm totally confused it's changed from a year ago. I'm using the simple_example_B4XDrawer example. I have added a new view in the designer and called it "2". So I have two views in the designer, 1 and 2. 1 has the simple example menu and on the other I have a button and webview. I want to load...
  10. practicalsoft

    B4X FEED App hangs when using colon :

    If think this is a bug. I am building using B4A 10.0, Android 9, Samsung Galaxy Tab Active2, portrait orientation Summary This line of code causes the program to hang. It may process a few more lines of UI related code, but it will eventually freeze. For this example, Result = true. Bad code...
  11. practicalsoft

    B4X FEED Tick-Tack-Toe: working with arrays of views

    This is an example of a Tick-Tack-Toe game. This game demonstrates two concepts. The first is an example of working with multiple views without duplicating code. In this case it is 9 buttons, however similar code can easily handle any number of views. The second concept is the handling of...
  12. practicalsoft

    B4X FEED Should not Activity.RemoveViewAt() "de-initialize" a view ?

    I found it more convenient to switch layouts by hiding and showing panels, which support all the views. That way, display is instant between layouts. Before displaying a layout, I test if the panel has been intialized, and if not, then I add the layout to activity. That worked just fine, until...
  13. practicalsoft

    B4X FEED [B4X] BCToast - Cross platform custom toast message

    BCToast is a custom "toast" message implementation based on BCTextEngine: https://www.b4x.com/android/forum/t...-bbcode-parser-rich-text-view.106207/#content It requires BCTextEngine v1.65+. Note that unlike B4A built-in toast message feature, this toast message can only be displayed from...
  14. practicalsoft

    B4X FEED Full Screen

    When using full screen mode with the following code in Activity_Create: B4X: Sub GetRealSize As LayoutValues Dim lv As LayoutValues Dim p As Phone If p.SdkVersion >= 17 Then Dim ctxt As JavaObject ctxt.InitializeContext Dim display As JavaObject =...
  15. practicalsoft

    B4X FEED Bluetooth Button values

    Hi, I`m connecting B4A to a BT selfie stick and monitoring the key presses (code shown below), but with several keys it returns the correct value but then followed by 5 zero`s. This is making my life hard to detect the keypress, would appreciate any idea`s to help this? Here is the log: ***...
  16. practicalsoft

    B4X FEED B4XPages & XUI Scrolling Label

    Hi all, I'm try to manage a display problem about a B4X View used as label for a description text (see attached image "app_screenshot"). A POSSIBLE SOLUTION A cool solution that I found is (XUI Scrolling Label by @Erel). B4A Library - [B4X] [XUI] Scrolling Label A custom view with a label...
  17. practicalsoft

    B4X FEED display.io ads service

    1. Register with http://www.display.io/en/, create a new app and an interstitial ad unit. 2. Download their sdk and copy it to the additional libraries folder. 3. Add to manifest editor: B4X: AddPermission(android.permission.INTERNET) AddPermission(android.permission.ACCESS_NETWORK_STATE)...
  18. practicalsoft

    B4X FEED Tappx ads service

    1. Register with Tappx and get an app key: https://www.tappx.com 2. Download their AAR library and copy it to the additional libraries folder: https://repo1.maven.org/maven2/com/tappx/sdk/android/tappx-sdk/3.1.3/ 3. Add dependencies: B4X: #AdditionalJar: tappx-sdk-3.0.9.aar #AdditionalJar...
  19. practicalsoft

    B4X FEED Website out of LAN will not load

    Hi there, i have active local WLAN and try to open by webview a local (LAN) website like: http://192.168.20.226/test/page in chrome browser it works, but inB4x App via webview it will not load. any idea? B4X: Sub Activity_Create(FirstTime As Boolean) Activity.LoadLayout("Layout")...
  20. practicalsoft

    B4X FEED BubbleSeekbar example not working

    Hello, I'd really like to use this library - but i got these mistakes when i include the seekbar as customview in the layout: B4X: Sub Globals 'These global variables will be redeclared each time the activity is created. 'These variables can only be accessed from this module. Dim...
عقب
بالا