json

  1. M

    Android Question "Heavy work" and freezing - multithread?

    Hi everyone, I've an app that need to download an huge dataset. We are talking about making a http request the return a json of 8000 rows, that need to be stored in a local SQL DB in the device. Now.. the problem is the following: downloading and storing all the rows in the DB takes a while...
  2. M

    B4J Question B4J Context Menu questions

    I have a TextField on a form. Running the project and right-clicking the TextField (with text in it), by default, produces the following context menu with some text selected. I'd like to append/add to the existing menu, so that it don't lose the existing menu items and their functionality. How...
  3. S

    Android Question Parsing JSON string created with DBUtils.ExecuteJSON

    Hello, Created a JSON using DBUtils.ExecuteJSON by passing required parameters and then converted it into a string using toString method. Works fine. Verified that it's a valid JSON. Now I want to parse this JSON and extract individual values. This generated JSON starts with root and I...
  4. aeric

    B4J Question [Solved] Posting JSON to Shopee API

    Shopee is an e-commerce platform. The documentation for their Open API is avaialble at https://open.shopee.com/documents?module=63&type=2&id=53 I have developed a B4J Non-UI app but unable to get the expected results. B4J: When I use Postman to post the request, I get the correct result...
  5. rleiman

    Android Question [SOLVED] - Extracting a value from downloaded JSON data

    Greetings, I'm learning how to work with JSON and did a lot of searching and came up with the following coding. It's just a few lines of code but I thought it is at least enough to pull some data out of the downloaded data. I'm sure I messed up with the coding in several places and would like...
  6. Ferdari

    Java Question SOLVED Passing String to lib saves with bad characters

    If i pass a string to my library it encodes some characters bad: mylib.SaveStringToJson("https://play.google.com/store/apps/details?id=com.app") This function saves a JSON file for library internal management, but inside some characters are changed like this...
  7. lnxpy

    Android Question Getting "Bad Request" in posting JSON Data to an Endpoint

    Hey guys, hope you're doing well. I want to create an application to post some JSON data to an endpoint and get a field from the returned response. Whenever I click the button it takes back with the "Bad Request" error and says that two "title" and "script" fields are required. (I've already...
  8. P

    Android Question how to get a specific index of a json list?

    Hi, using the json tree viewer I was able to get values in a for - each loop. How can I access a specific index? I would like to access element 'Instrucciones' of object 2 This is the code for-each Dim parser As JSONParser parser.Initialize(File.ReadString(File.DirAssets...
  9. Muhamad Kamal

    Share My Creation PHP code to send Firebase Notification to both Android mobile app and iOS mobile app

    Hi there! I'm sharing one of my work here so that some of you might refer it. This code is the PHP part from the whole project that I was working on. My project is based on the automated Forex signals that will be sent to Android and iOS mobile app from an indicator built on MT4 MetaQuote...
  10. Songwut K.

    Android Example B4A and PHP REST

    Thanks @Erel for free version that I plan to buy but donate instead. I'll share my B4A knowledge in Thailand, your great product must popular, later. PHP is well known for web developer, it cheap resource and easy to learn in Thailand. Backend system easy manage by PHP & MySQL but till now...
  11. Peter Simpson

    Android Tutorial 💡 A simple XUI app transfer from B4A to B4J in under 11 minutes

    Hello all, Here is a quick video to show how simple it can be to transfer your B4A projects to B4J when using XUI. It's been on my mind all days now, so I thought I would give it a go and also record my efforts. This is my first ever attempt at doing anything cross platform like this with XUI...
  12. Peter Simpson

    😀 Coming soon - Lazy Loading examples for new and existing B4X members

    Hello everyone, I've noticed that there appears to be more questions regarding long lists of data and matching previously designed layouts. Even thought you can easily use xCustomListView in conjunction with Lazy Loading to accomplish the required results, some B4X developers can find it...
  13. S

    B4A Class CSBuilder, store in JSON format

    Hello, This class can parse JSON to generate CSBuilder. Create a json string, save it in a file, add it to assets folder, and display it with this class. All the CSBuilder capabilities are supported. Comments in clsCSBuilderParser.bas and samples files explains the JSON structure. spsp
  14. C

    Android Question JSON Post, quotes in wrong place

    Hi everyone; I'm having a rough time posting a particular JSON object. The JSONParser works perfectly, but when the resulting map is posted, the quotes for the array type and JSON type end up in the wrong place, breaking the object. Sub btnSend_Click...
  15. carlos7000

    Android Question Simple code to receive json string

    Hi. I am looking for an old code, because the program must run on a device with android 5, that allows me to simply receive a json text. For this reason I use the Http library instead of the okhttputils2. I tried using the OkhttpUtils2 library, but a handshake ssl error appears. that despite...
  16. KMatle

    B4J Tutorial [B4x] Exchange Data via OkHttpUtils and php (or other platforms) via lists, maps, arrays, etc.

    I made 7 examples how to exchange data between B4x apps and php. I use the POSTSTRING method as it is simple, secure (get-methods will be logged with the data autmatically on the server, post-methods not), strings can be formatted very easy (JSON) and en-/decrypted (not included but see my other...
  17. ALBRECHT

    Android Question Image URL and image base64

    Hello, I am working with 2 types of image sources: - IMG downloaded from an URL and - images returned into a json with base64 format. 1/ But i do not know how to put the image b64 in an image view, 2/ in the meantime and until today, I do like this: I first copy the image datas from base64...
  18. Sai Main Seng Kham

    Android Question How To Use API Key

    hi, i am new in using API key and i have never done before so, how can i use this api To show like this https://ibb.co/MBB5rJv I got this API key and image from other developer . The question is How to display like that image with the API key Above ? thanks u
  19. ALBRECHT

    Android Question [solved] JSON encoding

    Hello, Please, i have a Json provided from an external DB Table like that : [{"Id":"1","Libelle":"CONFORT ET BIEN-ÊTRE","PictureId":"2428"}, {"Id":"14","Libelle":"AIDES...
  20. Mashiane

    B4J Question How to Unflatten List to a JSON Tree?

    Hi there Can anyone please help with a snippet to unflatten data into a json stree? For example, this is my list of records... Dim arr As List arr.Initialize arr.Add(CreateMap("id":1 ,"parentid" : 0)) arr.Add(CreateMap("id":4 ,"parentid" : 2)) arr.Add(CreateMap("id":3 ,"parentid" : 1))...
Top