b4a

  1. G

    B4J Question Save B4XTable data to a remote database?Thank you for your help

    Dim cmd1 As DBCommand = CreateCommand("select_insertnianduyusuan", params) 错误: 不兼容的类型: List<Object>无法转换为Object[] Private Sub ShowDialog(Item As Map, RowId As Long) Wait For (PrefDialog.ShowDialog(Item, "yes", "cancel")) Complete (Result As Int) If Result =...
  2. mohsen programmer

    Android Question Android/data folder permission

    Accessing and copying files to the Android data folder is limited in Androids above 10, especially 13 and 14, but file managers such as Z Archiver can access the Android/data folder by obtaining a permission. I also want to copy a folder in B4A that contains several other folders and all files...
  3. P

    Color selector application using B4XSeekBars and B4XFloatTextFields (B4A and B4J versions)

    This application showcases the use of B4X views and the multi platform programming with the #If B4A and #If B4J directives. This is how it looks like (first on my laptop then on my smartphone): A short description is available in the attachment: color_selector.pdf You can find the source codes...
  4. N

    Android Question What is the correct way to use Http job?

    Hi, I've made an Application with B4A that connects to the server to download some information and some images. This is my code : Private Sub trylogin Dim JJ As HttpJob JJ.Initialize("", Me) 'name is empty as it is no longer needed ProgressDialogShow2("درحال برقراری ارتباط",False)...
  5. G

    Android Question Error: The given key was not present in the dictionary

    Hello, I have this error and I cannot compile. I get this Error Message: B4A Version: 12.80 Parsing code. (0.24s) Java Version: 11 Building folders structure. (0.08s) Compiling code. Error Error compiling program. Error description: The given key was not present in the...
  6. G

    B4J Question How to insert a progress bar in b4xtable?

    Sub Class_Globals Private Root As B4XView 'ignore Private xui As XUI 'ignore Private b4xtable1 As B4XTable Private GraphColumn As B4XTableColumn Private progress As ProgressBar End Sub public Sub zhichuchaxun GraphColumn = b4xtable1.AddColumn("总进度"...
  7. G

    B4J Question Help, I've been studying for a whole day but haven't solved it. The data queried by B4J is different from the data in Access

    Dim req1 As DBRequestManager = CreateRequest Dim cmd1 As DBCommand = CreateCommand("select_tubiao3",Null) Wait For (req1.ExecuteQuery(cmd1, 0, Null)) JobDone(j1 As HttpJob) If j1.Success Then req1.HandleJobAsync(j1, "req1") Wait For (req1) req1_Result(res1 As DBResult)...
  8. F

    Android Question B4A deletes the banner image

    I am following these steps to create and upload an Android TV App - https://www.b4x.com/android/forum/threads/android-tv-with-b4a.138432/ But when I try to build the app or even debug it for some reason B4A deletes de banner picture and I get this error does anybody know why B4A deletes this...
  9. J

    Android Question Confused about object types: B4J vs B4A

    B4X newbie here. I've worked my way thru the first part of B4X Getting Started V2.4, and have the MyFirstProgram working on my Windows 11 computer. Next step is to try the same program in B4A. I am into step 3.3.3 where it will not run as per instructed on p.45. That's when I noticed there are...
  10. G

    B4J Question Using jchart class library to dynamically obtain pie chart data from database, what is the problem?

    Wait For (req.ExecuteQuery(cmd, 0, Null)) JobDone(j As HttpJob) If j.Success Then req.HandleJobAsync(j, "req") Wait For (req) req_Result(res As DBResult) req.PrintTable(res) 'PIE CHART PieChart.Initialize("PC") PieChart.Title = "Pie Chart"...
  11. G

    B4J Question java.lang.NumberFormatException: For input string: "null" Why is there an error when data can be found in the database? Thank you

    [CODE lang="b4x" title="java.lang.NumberFormatException: For input string: "null"" highlight="java.lang.NumberFormatException: For input string: "null""]Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events. Tag: null, Columns: 3, Rows: 1 BUMEN FEIYONGGUIJI jine...
  12. G

    B4J Question How to set variable values in JOSON files and What are the types of types in the Joson file? THANKS

    B4XTable1.AddColumn(Main.b & "月份计划", B4XTable1.COLUMN_TYPE_TEXT) { "title": "12月份计划", "type": "Text", "key": "12月份计划", "required": true },
  13. mohsen programmer

    Android Question Send SMS

    I added this function to my project: Sub SendMultipartTextMessage(Number As String, Message As String, SubscriptionId As Int) Dim r As Reflector r.Target = r.RunStaticMethod("android.telephony.SmsManager", "getSmsManagerForSubscriptionId", Array As Object(SubscriptionId), Array As...
  14. A

    Android Question Share the same database (SQLite) for different applications

    Good afternoon, I need to share the same database (SQLLIte) on the same device by two different applications. I tried using File.DirRootExternal but it doesn't work... can anyone help me? Thanks in advance
  15. L

    Android Question How to draw a Path with GoogleMaps Library?

    in this code i draw a simple line on the map, but i want draw a Path, how can i do? ' Aggiunta di un marker sulla mappa Dim lat As Double = DR_VISITE.GetString("Latitudine") Dim lng As Double = DR_VISITE.GetString("Longitudine") Dim RAGSOCCLI As String =...
  16. L

    Android Question Polyline not error but not showing

    I have this code and all work perfectly, only the polyline not showing....how can i do? ' Aggiunta di un marker sulla mappa Dim lat As Double = DR_VISITE.GetString("Latitudine") Dim lng As Double = DR_VISITE.GetString("Longitudine") Dim RAGSOCCLI As String =...
  17. F

    Android Question XUIViews having issues with MODBUS TCP?

    Hello team, i have i little strange issue, the thing is when im trying to compile my app, gets me this error when this XUIViews Library is active Dex merge Error Error in C:\Android\tools\..\extras\b4a_local\unpacked-modbustcp-63803597595704\dex_v1\modbustcp.zip:classes.dex: Type...
  18. B

    Android Question Dropbox refresh code

    Hello, I have just managed to get my app to access my Dropbox folders, download a file, make changes and then upload that file. All working well. Came back a day later and found the token had expired. After some research I realize the short term token is for testing and only last 4 hours...
  19. W

    Bug? B4XFont declared without value assigned to it doesn't show a compiler error

    See the comments in the code. The compiler warning disappears; I found this out with a B4XPages project that was first developed in B4J (with an Arial font, assigned in a conditional "#If B4J" block). B4A didn't complain about the font variable (which was declared unconditionally) not having...
  20. Guenter Becker

    B4A Library List of TD_ CustomViews, Modules, Classes and Services

    All Listed CustomView, Modules, Classes and Services are part of our B4A Development at prestent and in future. All not Listed CustomView, Moduls, Classes and Services are outdated and not longer supported! B4A CustomViews, Modules, Classes...
Top