B4J Tutorial Its time to AI in B4X

AI is not just a conversation engine or a solutions founder for developer , AI is now time saving , DONT use AI platform , use insted AI agent , , there is a lot of , of course if you want to spend money dont read rest of this topic and go to claude , but if you want a totaly free agent ive found a good one for all B4X's dev , this new ai know perfectly b4x language and structure , it is qwen-code ( Qwen3.5-Plus ) , and with this open source tools you can use it and save lot of your time to create projects as complex as you want , just install the tools in cmd if you are in windows :
B4X:
curl -fsSL -o %TEMP%\install-qwen.bat https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen.bat && %TEMP%\install-qwen.bat
, and goto your folder project and run it with QWEN , and ask what you want , this agent make all modification on files and create new b4x class or new image or icons , ( for ex to test ask to create icon with ai and add it to your project ) , you can also mange database and create it
you can use a ui model if you dont prefere cmd lines ( like AIONEUI) .
, bref ..... all that you want .
tools link :
https://github.com/QwenLM/qwen-code
enjoy



 
Last edited:

jdkellow

Member
Licensed User
Longtime User
I have been using Microsoft Copilot. It is surprising what it comes up with. I usually upload the app after Ctrl R and ask a question like "Comment on my app" or "Find any errors in my app", which is a good starting point. It then comes up with several suggestions which often work.

Sometimes it offers to rewrite a whole section, which often does not work. That also changes the code a lot and makes for a lot of relearning how the app worked. Simple questions about specific routine seems to be the best thing to try.

It is also very complementary and polite, which is surprising.
 

tsteward

Well-Known Member
Licensed User
Longtime User
I find Gemini Pro work quite well but similar findings also apps.abacus.ai works well and between the two solve most of my problems. AI is lazy though will will leave code out.
AI's are people pleasers which is actually a fault I feel constantly telling me what I great idea I have and that's exactly the right next step etc.
 
the difirence is that this qwen run , found errors , and rewrite correcte code himself , its an ai agent , not ai chat , for ex you can create just a new folder and write create b4j app or b4a ( your idea ) and this will surprise you my bro
 
note that if context pass through 70% you must close cmd and re-run new qwen cmd , because the developers say it hallucinate over 70% because of token and memory of this ai
 
agree with you completly , but if AI gain 50% of work , AI agents gain 95% of work and TIME.
 

Mashiane

Expert
Licensed User
Longtime User
note that if context pass through 70% you must close cmd and re-run new qwen cmd , because the developers say it hallucinate over 70% because of token and memory of this ai
Thanks I noted that on two occasions also and did same. I love that I can just code with this for ours without having to wait for token resets and rate limiting.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…