/r/KotlinAndroid
A subreddit to discuss the Kotlin programming language as it pertains to Android development.
A subreddit to discuss the Kotlin programming language as it pertains to Android development.
The Kotlin Programming Language
Getting started with Android and Kotlin
Related Subreddits:
/r/KotlinAndroid
Hello Developer,
Learn how to seamlessly integrate RTMP live streaming into your Kotlin video chat app with this insightful guide.
From setup to implementation, this blog post covers all the essentials, empowering you to enhance user engagement. Don't miss out on this opportunity to level up your app.
https://www.videosdk.live/blog/integrate-rtmp-livestream-in-kotlin-video-chat-app
Hey Kotlin Developers,
Want to enhance your Kotlin video call app with chat functionality? Look no further! Check out this insightful guide on seamlessly integrating chat features into your Kotlin app.
From setup to execution, this blog post covers it all, ensuring a smooth integration process. Don't miss out on enriching your app's user experience. Happy coding!
https://www.videosdk.live/blog/integrate-chat-in-kotlin-video-call-app
I have kotlin script, and I want to make it application for android, so the questions here, can I covert this script to a console app...... is that possible for android 😅, Thanks, note: I don't know a lot about mobile development
Hi, I started learning Kotlin with zero CS or coding knowledge and am completely self taught. I am looking for anything from hints, guidance, to straight up answers. I really enjoy the process of learning but find myself extremely lost and frustrated when it comes to UI and XML formats. My idea was to recreate the clock application with some unique features just to learn. I am attempting to create something that looks like the following.
My current layout looks like this and [this] (https://imgur.com/B7CBWON). I am having trouble figuring out how to create a layout somewhat similar to the first photo, that will allow me to later add a FAB that open an input dialogue to create a new timer (this part I think I can figure out). I need help both with structuring the xml file that goes into the container view and creating the Kotlin classes required for navigation. Any help or guidance is much appreciated as I am lost.
P.S. I recognize my constraints may be wonky because I haven't decided to focus on learning about them.
Hey fellow developers!
Are you looking to enhance your Kotlin video chat app with the power of screen sharing? Look no further! We've got you covered with an in-depth guide on integrating screen sharing seamlessly into your app.
In our latest blog post, we delve into the intricacies of incorporating screen-sharing functionality using Kotlin. Whether you're building a collaborative workspace app, a remote learning platform, or simply want to add more versatility to your video chat application, screen sharing is a game-changer.
https://www.videosdk.live/blog/integrate-screen-share-in-kotlin-video-chat-app
Hi everyone, I'm new to Android development and having difficulty with permission requests
Basically my application should start by itself and perform the following steps
-send a http request to my server to receive a list of videos
-compare this list with the one contained in the specific directory
-if the list of videos is the same, check if the player is already playing the videos
-if yes, finish
-otherwise, open the player with the videos contained in the directory
-if the list is different, send a new http request and download the videos and store them in the directory then check again
The problem is that everything requires permission at runtime
I'm using API 21 and developing for Lollipop 5.1.1, which is the version for available devices.
What do I need for the application to be 100% self-running?
Hi guys , i'm expected to learn Kotlin & jetpack compsoe a my own for a short period of time ,and i'm really struggling with it this program that doesn' t work correctly , wan anyone help ? please
Anyone here managed to see live feed from these glasses not on Facebook/instagram?
🚀 Excited about building your own 1-to-1 video chat app in Kotlin for Android? Look no further! In this guide, we'll cover everything from setting up your development environment to implementing key features like real-time video communication. With a focus on creating a personalized experience, you'll learn design principles, security measures, and how to add extra functionalities. By the end, you'll have the skills to craft a seamless app ready for testing and deployment. Join the journey of coding, testing, and refining your very own video chat app. Let's make communication more personal, one line of Kotlin code at a time! 📱💬
Hi I have started a mobile app development module as part of my part-time foundation degree. We have not been provided any module lecture documentation and we are being directed to android developers Google website to use the paths and labs there to learn. I am finding these rather complicated and our lecturer isn't offering any support or walkthroughs just leaving us to self teach during the timetabled class through the android developers website. Can anyone recommend books, literature or online training I could use to help me understand Kotlin fundamentals better? Thank you for any help in your experience would be greatly appreciated 🙏🏻
Hi I am an final year IT student and I am developing an simple fitness app for one of my course using the kotlin language on the IDE android studio. I have used buttons to navigate to different pages as you can see in the video, right now I am planning to integrate API to nutrition page, so that the user can find macros of the food automatically and I seem to be lost, because I could not find a good resource to learn how to do it. I have signed up for USDA free API and got an api-key with me right now. Can anyone please help with how to implement it or link resources to learn it. I have attached the screen recording of my app below.
Web Assembly is a new technology that allows you to run code written in languages other than JavaScript in the browser. In this article, we will learn how to use Kotlin Multiplatform to write code that runs in the browser using Web Assembly.
https://touchlab.co/kotlin-wasm-getting-started
I want to build a expenses app which will automatically read your transaction messages and automatically add it to your budget. I want to use machine learning to classify the expense as shopping,medical and soo on.. I am having the ideas but not the procedure how to do pls help me.
Hello everyone, I'm developing mobile applications and I wanted to know what the purpose of the compilSDKn is and why it's necessary to always target the latest API level.
Are there any security constraints or other considerations? What are the advantages and disadvantages?
Hi there,
I need some help. I believe the core issue is related to ViewModels. I am unable to find out how to swap between view models, and how to call functions/viewmodels with an argument.
Language: Kotlin
Using Jetpack Compose
App Idea is to get data from API and display this in android app. In link is both app and pdf to assignment. I'm about 80% done.
Data Sharing Link: https://file.io/ixrHSo4wRZxA
(active until 10. March)
I am struggling to get my ContentNegotiation code to work as there is some issue in my gradle files but idk what it is.I get a new error everytime.This is my project level gradle :
buildscript {
dependencies {
classpath("com.google.gms:google-services:4.4.1")
}
}
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id("com.android.application") version "8.2.0"
id("com.google.gms.google-services") version "4.4.1"
kotlin("jvm") version "1.9.22"
kotlin("plugin.serialization") version "1.9.22"
}
and this is my module level gradle :
plugins {
id("com.android.application")
id("org.jetbrains.kotlin.android")
id("com.google.gms.google-services")
}
android {
namespace = "com.example.prosubscriberapp"
compileSdk = 34
defaultConfig {
applicationId = "com.example.prosubscriberapp"
minSdk = 26
targetSdk = 34
versionCode = 1
versionName = "1.0"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
useSupportLibrary = true
}
}
buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
}
buildFeatures {
compose = true
}
composeOptions {
kotlinCompilerExtensionVersion = "1.5.1"
}
packaging {
resources {
excludes += "/META-INF/{AL2.0,LGPL2.1}"
}
}
}
val exposedLibraryVersion: String by project
val h2LibraryVersion: String by project
dependencies {
....}
this is the error i keep getting The 'java' plugin has been applied, but it is not compatible with the Android plugins.
and i dont know how to fix it without ruining my code.All help is appreciated.I am also new to kotlin btw.
Hi everyone ! This my first post on reddit ever haha
I just wanted to share with you the app I've been working on.
I was tired of seeing beautiful widget on iOS with Formulify and Box Box Club, so I decided to create my own version of it, for android. I was heavily inspired by Formulify as you can see haha
I would LOVE to have your feedbacks, and also know if it works on some android devices I couldn't test on !
So if you have any questions or feedback, don't hesitate !
PS: Sorry for my english, it's not my native language
A preview of the widget design :
Smaller JavaScript bundle size helps improve a website's loading speed and performance. In this article, we present two different ways of analyzing and measuring KotlinJS bundle size.
I am an older Android developer getting back into it. I found a tutorial on creating a text based adventure that was in the older-style UI vs Jetpack. After completing the simple tutorial, I thought it would be both useful and a good exercise to recreate it using Jetpack and modern techniques like ViewModel.
I believe I just need some understanding to get over the ignorance hurdle in front of me. I have created the following that I want to use to setup the game scene:
data class GameplayData(
// data fields -> images, text, OnClicks (i still struggle to pass around OnClicks and have them functioning vs directly accessing and setting)
)
class GameplayDataModel : ViewModel() {
private val _gamePlayData = MutableLiveData<List<GameplayData>>()
val gamePlayData: LiveData<List<GameplayData>> = _gamePlayData
init {
_gamePlayData.value = initGamePlayData()
}
}
This is as far as I have been able to get. I believe my next steps are to bring the object into my UI class, set the state, and modify the values to set.
Are there any helpful videos, articles, or tutorials I should look at to better understand? I also want to be able to setup my OnClicks to essentially refresh and update the screen depending on the decision. I appreciate any help and advice.
What are the possible reasons for slow rendering of ads ?
I was trying to add the gradle dependencies described in this testing migration guide in order to write unit tests for my room migrations.
But when syncing I am getting the following error:
In my projects build.gradle I have in the buildscript the following repositories(plugins/dependencies:
buildscript {
ext.versions = [:]
ext.versions.kotlin = "1.9.10"
repositories {
google()
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:8.1.4'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
}
}
plugins {
id 'com.google.devtools.ksp' version '1.9.22-1.0.17' apply false
id 'androidx.room' version '2.6.0' apply false
}
allprojects {
repositories {
google()
mavenCentral()
flatDir {
dirs 'libs'
}
maven {
url "https://jitpack.io"
}
}
}
Am I missing something? any ideas?