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