b4a

  1. G

    Android Question Intent Set & Add Flags

    Hello everyone. I want add these two lines in my code. lvIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); lvIntent.addFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS); Is there anyway to do it? Thank you in advance.
  2. H

    Italian Quale libreria per le tabelle?

    Buongiorno, avrei la necessità di visualizzare dei dati in forma tablellare,(minimo di 3 colonne, massimo 7, impostabili dall'utente ). In media verrà popolata con un centinaio di righe, anche se l'utente potrebbe inserirne ben di più ( per ora il massimo consentito dovrebbe essere 5000). Non ho...
  3. A

    Android Question How to create and parse Tag, Length, Value (TLV) in .b4a and encode it in Base64

    Hello, I have this code in vb net Public Function encodeQrText(ByVal sallerName As String, ByVal sallerTRN As String, ByVal invoiceDateTime As String, ByVal totalWithVAT As String, ByVal VATTotal As String) As String Dim bytes As Byte() = Encoding.UTF8.GetBytes(sallerName)...
  4. H

    Italian Classi e proprietà

    Buonasera, ho qualche difficoltà a capire come si usano le proprietà e le classi in B4A, potete darmi qualche dritta? Nel manuale in pdf l'argomento è tratto poco. In VB.NET per esempio, ho una classe fatta così: Public Class Person Private _nome As String Public Property Nome As String...
  5. 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 =...
  6. 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...
  7. 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...
  8. 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)...
  9. 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...
  10. 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("总进度"...
  11. 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)...
  12. 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...
  13. 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...
  14. 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"...
  15. 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...
  16. 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 },
  17. 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...
  18. 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
  19. 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 =...
  20. 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 =...
Top