/r/KotlinAndroid

Photograph via snooOG

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:

Kotlin

Android Dev

/r/KotlinAndroid

6,329 Subscribers

2

How to Integrate RTMP Livestream Feature in Android(Kotlin) Video Chat App?

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

1 Comment
2024/04/02
12:08 UTC

2

How to Integrate Chat Feature in Android(Kotlin) Video Call 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

0 Comments
2024/04/02
10:42 UTC

0

Good evening, a question, how can I refresh my application every 8 minutes, is that I am managing a token that is changed every 8 minutes.

0 Comments
2024/04/02
03:37 UTC

2

First 30-Day Milestone on KMM Video Game App to Modernize Skills

2 Comments
2024/03/30
18:20 UTC

1

I have strange inquiry

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

0 Comments
2024/03/28
13:43 UTC

1

Fragments and xml

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.

3 Comments
2024/03/27
21:19 UTC

2

Learn How to Integrate Screen Share in Your Kotlin Video Chat App!

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

0 Comments
2024/03/27
06:49 UTC

1

android development with kotlin

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?

1 Comment
2024/03/27
00:25 UTC

2

Jetpack compose Help me pls

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

1 Comment
2024/03/18
21:19 UTC

0

Meta Glasses

Anyone here managed to see live feed from these glasses not on Facebook/instagram?

0 Comments
2024/03/18
15:54 UTC

1

Building a Personalized 1-to-1 Video Chat App in Kotlin for Android

🚀 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! 📱💬

1-to-1 Video Chat App in Kotlin for Android.

0 Comments
2024/03/18
09:21 UTC

1

Training Support

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 🙏🏻

5 Comments
2024/03/16
12:14 UTC

2

APi integration process help

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.

0 Comments
2024/03/16
00:53 UTC

3

Deep dive into kotlin map: more readable approach of using kotlin map data structure

0 Comments
2024/03/09
15:20 UTC

5

Getting Started with Web Assembly and Kotlin Multiplatform

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

https://preview.redd.it/ipybb3qxbrmc1.jpg?width=680&format=pjpg&auto=webp&s=fd1a9474170b2530717b54a62cfeeff506384900

0 Comments
2024/03/06
18:29 UTC

0

Android App Error Bluetooth

5 Comments
2024/03/06
15:14 UTC

2

Bluetooth connection error

4 Comments
2024/03/06
09:04 UTC

1

Help with an app which I want to build

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.

4 Comments
2024/03/04
10:58 UTC

1

CompilSDK help!!!

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?

1 Comment
2024/02/29
21:32 UTC

2

Need assistance with a school assignment (ViewModel)

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)

1 Comment
2024/02/28
18:36 UTC

0

Kotlin Serialization Build Gradle Files Help

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.

1 Comment
2024/02/24
10:29 UTC

0

Android Jetpack Compose Hit Dependency Injection Tutorial | Beginner Tut...

0 Comments
2024/02/24
01:08 UTC

2

Android PrePopulated Room Database (Room Hilt Json file) Tutorial | ...

0 Comments
2024/02/21
06:43 UTC

4

I created a F1 widgets app for android !

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 :

Homescreen with Racify

0 Comments
2024/02/20
20:40 UTC

4

Measuring and analyzing the KotlinJS bundle size

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.

https://touchlab.co/measuring-kotlin-js-bundle

0 Comments
2024/02/16
20:43 UTC

2

Struggling to Implement ViewModel

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.

4 Comments
2024/02/14
11:54 UTC

1

Android Jetpack Compose Room Tutorial | Beginner Tutorial |Complete Project

0 Comments
2024/02/13
21:36 UTC

1

Admobs Ads are loading slowly in android

What are the possible reasons for slow rendering of ads ?

0 Comments
2024/02/13
14:25 UTC

3

Kotlin 1.9.20: Streamlining Source Sets in Multiplatform Project

0 Comments
2024/02/08
18:39 UTC

2

[QUESTION] androidx.room gradle plugin not found in any of the repositories error

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:

https://preview.redd.it/a3iby1yl6chc1.png?width=1139&format=png&auto=webp&s=30812ef7b7d5f48dbcf98f9fe34d9cb3a490d22e

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?

9 Comments
2024/02/08
10:13 UTC

Back To Top