β οΈ Caution β οΈ
I've Tested This Sketchware Pro Nightly Build On realme RMX3381 Android13 Device & I Have Not Found Any Bugs(Except The Local Library Downloader Bug). But There May Be Some Unstablity Issues In Other Android Versions. So I Highly Recommend You To Backup Your .sketchware Folder Before Trying This One. If You Want The Latest Stable Build Of Sketchware Pro You Can Download It From Here. Otherwise Enjoy The New Features & Bug Fixes.
@SE_BIBEL_MEK
π @androiddevstutorial
I've Tested This Sketchware Pro Nightly Build On realme RMX3381 Android13 Device & I Have Not Found Any Bugs(Except The Local Library Downloader Bug). But There May Be Some Unstablity Issues In Other Android Versions. So I Highly Recommend You To Backup Your .sketchware Folder Before Trying This One. If You Want The Latest Stable Build Of Sketchware Pro You Can Download It From Here. Otherwise Enjoy The New Features & Bug Fixes.
@SE_BIBEL_MEK
π @androiddevstutorial
π1
How To Install Kotlin In Android Using Termux
Kotlin is a modern programming language developed by JetBrains, designed to be fully interoperable with Java and enhance the development experience for Android and other applications. Here are some key features of Kotlin:
* Concise Syntax: Kotlin aims to reduce boilerplate code, making it more concise and readable compared to Java.
* Null Safety: It includes built-in null safety features, helping to eliminate the risk of null pointer exceptions by distinguishing between nullable and non-nullable types.
* Interoperability: Kotlin can seamlessly interact with Java code, allowing developers to use existing Java libraries and frameworks.
In This Post We're Going To Learn How To Install Kotlin & Run Our First Kotlin Program In Android Using Termux.
Step1. If You Don't Have Termux App Installed On Your Android Device You Can Install It From Here.
Kotlin is a modern programming language developed by JetBrains, designed to be fully interoperable with Java and enhance the development experience for Android and other applications. Here are some key features of Kotlin:
* Concise Syntax: Kotlin aims to reduce boilerplate code, making it more concise and readable compared to Java.
* Null Safety: It includes built-in null safety features, helping to eliminate the risk of null pointer exceptions by distinguishing between nullable and non-nullable types.
* Interoperability: Kotlin can seamlessly interact with Java code, allowing developers to use existing Java libraries and frameworks.
In This Post We're Going To Learn How To Install Kotlin & Run Our First Kotlin Program In Android Using Termux.
Step1. If You Don't Have Termux App Installed On Your Android Device You Can Install It From Here.
Step2. After Installing Termux Open The Terminal & Install JDK (Java Development KIT) Using This Command Since Kotlin Runs On JVM(Java Virtual Machine).
* You Can Check If JDK Is Correctly Installed On You Termux Environment Using This Command.
If It's Installed It Should Print The Version Like This.
openjdk 21.0.5 2024-10-15
OpenJDK Runtime Environment (build 21.0.5)
OpenJDK 64-Bit Server VM (build 21.0.5, mixed mode)
Step3. After Installing JDK Successfully Let's Install Kotlin Using This Command.
* You Can Check If Kotlin Is Correctly Installed On You Termux Environment Using This Command.
kotlin -version
If It's Installed It Should Print The Version Like This.
Kotlin version 2.0.21-release-482 (JRE 21.0.5)
Step4. After Kotlin Installation Is Done Let's Create Our First Program. For Instance I've Created This One.
pkg install openjdk
* You Can Check If JDK Is Correctly Installed On You Termux Environment Using This Command.
java --version
If It's Installed It Should Print The Version Like This.
openjdk 21.0.5 2024-10-15
OpenJDK Runtime Environment (build 21.0.5)
OpenJDK 64-Bit Server VM (build 21.0.5, mixed mode)
Step3. After Installing JDK Successfully Let's Install Kotlin Using This Command.
pkg install kotlin
* You Can Check If Kotlin Is Correctly Installed On You Termux Environment Using This Command.
kotlin -version
If It's Installed It Should Print The Version Like This.
Kotlin version 2.0.21-release-482 (JRE 21.0.5)
Step4. After Kotlin Installation Is Done Let's Create Our First Program. For Instance I've Created This One.
β€1
Now Save This File As Kotlin File Using .kt Extension.
Step5. Now Let's Back To Termux & Navigate To The Directory Where We Stored The Kotlin File Using cd (Change Directory) Command. For Instance I've Saved The Kotlin File In My SD Card Entry.
Step6. After Navigating Type kotlinc Followed By The Kotlin Class File Name To Compile The Kotlin File To Bytecode. For Instance Main.kt.
Step7. After Compiling If Your Kotlin Program Doesn't Have Any Compilation Error It Will Generate The Compiled Bytecode File For Your Kotlin Program.
Step8. Run The Generated Bytecode Using This Command.
Step9. Now It Will Print The Output In The Terminal.
In This Way You Can Install & Run Kotlin In Android Using Termux. For More Detailed Information You Can Watch The Video Below.
@SE_BIBEL_MEK
π @androiddevstutorial
Step5. Now Let's Back To Termux & Navigate To The Directory Where We Stored The Kotlin File Using cd (Change Directory) Command. For Instance I've Saved The Kotlin File In My SD Card Entry.
cd /sdcard/
Step6. After Navigating Type kotlinc Followed By The Kotlin Class File Name To Compile The Kotlin File To Bytecode. For Instance Main.kt.
kotlinc Main.kt
Step7. After Compiling If Your Kotlin Program Doesn't Have Any Compilation Error It Will Generate The Compiled Bytecode File For Your Kotlin Program.
Step8. Run The Generated Bytecode Using This Command.
kotlin MainKt
Step9. Now It Will Print The Output In The Terminal.
In This Way You Can Install & Run Kotlin In Android Using Termux. For More Detailed Information You Can Watch The Video Below.
@SE_BIBEL_MEK
π @androiddevstutorial
How To Send Test API Request To Gemini API In Android Using Termux
To Send Test API Request To Google Gemini API Follow The Following Steps.
Step1. If You Don't Have Termux App Installed On Your Android Device You Can Install It From Here.
* You Can Get Your Gemini API Key Here.
https://aistudio.google.com
Step2. Check If CURL(Client URL) Is Installed On Your Termux Environment Using This Command.
If It Installed It Should Print The Version Like This(On Most Cases It Should Come Pre installed On Termux By Default).
If It Doesn't Installed You Can Install It Using This Command.
Step3. Copy & Paste This Command To Send Test API Request To Google Gemini API Using CURL.
Step4. If The Request Succeeded You Will Get A JSON Encoded Response Like This.
To Send Test API Request To Google Gemini API Follow The Following Steps.
Step1. If You Don't Have Termux App Installed On Your Android Device You Can Install It From Here.
* You Can Get Your Gemini API Key Here.
https://aistudio.google.com
Step2. Check If CURL(Client URL) Is Installed On Your Termux Environment Using This Command.
curl --version
If It Installed It Should Print The Version Like This(On Most Cases It Should Come Pre installed On Termux By Default).
curl 8.8.0 (aarch64-unknown-linux-android) libcurl/8.8.0 OpenSSL/3.2.1 zlib/1.3.1 libssh2/1.11.0 nghttp2/1.62.1 nghttp3/1.4.0
Release-Date: 2024-05-22
Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS HSTS HTTP2 HTTP3 HTTPS-proxy IPv6 Largefile libz NTLM SSL threadsafe UnixSockets
If It Doesn't Installed You Can Install It Using This Command.
pkg install curl
Step3. Copy & Paste This Command To Send Test API Request To Google Gemini API Using CURL.
curl \
-H 'Content-Type: application/json' \
-d '{"contents":[{"parts":[{"text":"What Is Large Language Model"}]}]}' \
-X POST 'https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash-latest:generateContent?key=YOUR_API_KEY'
Step4. If The Request Succeeded You Will Get A JSON Encoded Response Like This.
How To Convert APK To AAB(Android App Bundle) File In Android
An AAB (Android App Bundle) file is a publishing format introduced by Google to optimize app delivery for Android devices. Unlike the traditional APK (Android Package), which contains the entire app with all resources, an AAB file allows Google Play to create optimized APKs tailored to the user's device configuration.
An AAB (Android App Bundle) file is a publishing format introduced by Google to optimize app delivery for Android devices. Unlike the traditional APK (Android Package), which contains the entire app with all resources, an AAB file allows Google Play to create optimized APKs tailored to the user's device configuration.
β€1