Click here to Skip to main content
15,888,454 members
Everything / Programming Languages / Kotlin

Kotlin

Kotlin

Great Reads

by Ivan Osipov
We'll discuss why Kotlin is a great tool for domain specific language building
by ookami.kb
Turn Android app into Kiosk App
by Igor Kushnarev
Native windows with Kotlin Native for Linux and Windows platforms
by Igor Kushnarev
Using Vulkan API with Kotlin Native example

Latest Articles

by Petrov Vladimir
Smart Android Template for Data Performance with International Signals Code as a Sample
by Ayat Rakhishev
A walkthrough of dynamic programming
by Ivan Osipov
We'll discuss why Kotlin is a great tool for domain specific language building
by AmrDeveloper
How to get any Adapter class from model class easily and quickly

All Articles

Sort by Updated

Kotlin 

2 Jan 2022 by 0x01AA
How is about to check wheter val bmp = BitmapFactory.decodeResource(context.getResources(), resourceId, opts) returns a 'not null' value? And in case it returns null you need to investigate why...
10 Jul 2020 by Abdelrhman khaled
**I tried 2 Codes with php Script and get > *//////// so I need help please Thanks What I have tried: **I tried 2 Codes with php Script and get Same Result ** **java code ** ``` FileInputStream fileInputStream = new...
31 Aug 2022 by Abhishek Tibrewal
Hi, I am working on a network monitoring app in kotlin, android. I need the ISP name for my network. Thanks. What I have tried: I have searched through developers.android.com but cannot find anything that gives me the correct answer can you...
23 Sep 2022 by Abubakar Abdurrahman
I am converting my wordpress website in to android application using webview in kotlin, and I want to remove(hide) the header of the website in the app version. What I have tried: I have try so many search and i found a way to did it by...
3 Aug 2019 by Afzaal Ahmad Zeeshan
Did you try to convert it to String and then applying? num1TextE.text = result.toString() Basically what Kotlin is doing is just providing a high-level abstraction over Java, so in Java what you do is you normally set the text field of an EditText control with a String value... Just an integer...
20 Dec 2022 by Akshay Jain Dec2022
Hi guys, I have to make a custom view for my project ..there is a app inshot video editor ,there is a sticker section which help user to add sticker on their video and I have to make the same user interface as they have used in their app .If...
7 Apr 2021 by AmrDeveloper
How to use CodeViewAndroid Library in many projects features
4 Mar 2022 by AmrDeveloper
How to get any Adapter class from model class easily and quickly
18 Apr 2021 by AmrDeveloper
How to create a simple bot creator in Kotlin using only 33 lines of code
13 Feb 2023 by Andre Oosthuizen
Solution was given at Stack - Calculate age from BirthDate[^] Using Kotlin fun getAge(year: Int, month: Int, dayOfMonth: Int): Int { return Period.between( LocalDate.of(year, month, dayOfMonth), ...
31 Jul 2021 by Attaullah Khan 2021
Hi! I'm trying to create a class that accepts a class parameter and its print function prints the name of provided class. class A(val t: T) { fun print() { println(t!!::class.java.simpleName) } } class B {} fun main() { ...
16 Feb 2023 by Ayat Rakhishev
A walkthrough of dynamic programming
8 Feb 2024 by Ayush Thakur from New Delhi
I want to make a simple data entry application where the app starts with the main activity and asks the user for their info and image URI from the gallery, after getting all the inputs when the user enters submit it opens up a new activity that...
15 Sep 2021 by Bayare Singh ASET, Jaipur
I am working on an android app which request Mars photos ans use it to display it on screen. To make an request.And trying to use A public Api object that exposes the lazy-initialized Retrofit service. below is source code with error import...
14 Nov 2019 by Bloody Chicken
Algorithm for printing an bitmap image with textwrapping and alignment in ESC/POS thermal printer.
30 Dec 2023 by Carlos Ramos Dec2023
I am doing a backend server and I am having some trouble while testing /register route. I think that I have configured everything correctly but it gives me the 406 error when I try to do a POST method on Postman this is the link that I am using...
17 Sep 2020 by ChandraSaiMohan bhupati
I have a requirement where I need to use a custom TextView across all modules in App . When user enters XML attribute as "large" ,custom textview should pickup value from dimen.xml and set as 40sp . I am facing issues while doing this: What I...
17 Jul 2019 by CHill60
@Richard-MacCutchan presents a compelling argument - study Kotlin so you can find out what the code does. See Kotlin for Android - Kotlin Programming Language[^] Debugging is usually an excellent way of finding out what code does too - see Debugging - Kotlin Programming Language[^]
31 Jan 2023 by chilly45
I am working on an app using kotlin in android studio. I have two activities. One activity accepts the age the the user inputs and then it takes me to another activity that would show the age, birthstone, and Chinese Zodiac sign. What i am having...
13 Feb 2023 by chilly45
There is to be two activities , one activity should accept name and D.O.B and then i click the submit button which will take me to another activity where it shows the age (just the number nothing else) , the zodiac sign or picture and the...
16 Mar 2020 by Coding Notes
How to use VideoView and MediaController in Kotlin
1 Apr 2020 by CPallini
As far as I guess (I may be wrong), you cannot do that. Here you may find typical usage of the Scanner in Kotlin: Read Data Input using Scanner in Kotlin - Kotlin Programming[^].
6 Dec 2022 by Daniel89089
#include #define SWAP(a,b) {int temp = a; a = b; b = temp;} #define N 10 void perm(char str[],int count,int t) { if (t==count-1){ for (int i=0;i
31 Aug 2022 by Dave Kreskowiak
You're not going to find anything to give you the ISP information in any SDK. You need to be able to get your outside IP address, which you cannot do from your client without a server. Once you have that address, you need to look that address up...
25 Dec 2023 by Dave Kreskowiak
Without the error message printed to the console window by the e.printStackTrace method in your trry/catch block, it's impossible for anyone to tell you what's going wrong.
30 Dec 2023 by Dave Kreskowiak
I don't know Kotlin at all, but it seems you're catching an exception but completely ignoring it, only returning a generic response: } catch (e: Exception) { // Handle registration errors call.respond(HttpStatusCode.BadRequest,...
11 Aug 2021 by Deepesh Mhatre 2021
I am trying to create an auction app , where every 4-5 minutes a new product is shown to the users which they can either participate or reject from entering. So what I want to do is run a global counter every 4-5 minutes for all the users i.e all...
25 Dec 2023 by eva joly fabiola yepgwa takedo
When i click the button to save user's informations, the app just close and i can't access the database to see if the infos got saved or not because of that. When i comment the "verifyUser(mail)" part, i only get the toast as an answer but the...
25 Dec 2023 by eva joly fabiola yepgwa takedo
Logs : KeyboardViewController.show():438 Requesting to show sub view with id 2131428318(key_pos_password_header_numbers) which doesn't exist in current keyboard view ...
16 Sep 2020 by F-ES Sitecore
Go through it on paper, or line by line in a debugger var x=0 So x is 0 for(outer in 1..3) everything in this for will loop with outer being 1 then 2 then 3. So for the first pass outer is 1; x = 0 outer = 1 for(inner in 4 downTo 2) ...
20 Mar 2023 by Fatema Shawki
I'm working on a real-time object detection mobile application using kotlin. I trained a yolo v5 model on a custom dataset of 4 classes, then converted the model to a .tflite file. I used this line to convert the yolo model to tflite: !python...
14 Apr 2023 by Fatema Shawki
I am currently working on an Android app that involves camera object detection. However, I have encountered some issues that need to be addressed: - The app displays a black screen after granting camera permission, requiring one or two app...
7 Jul 2020 by Garth J Lancaster
Quote: but my codes were not working. that's about as useful as 'tits on a bull' for a description - please use 'Improve solution' to modify your question and explain what you get, what you expect to get, and where you think the problem is ...
22 Jul 2020 by Gerry Schmitz
Quote: The design editor can preview your layout on different Android devices and versions, and you can dynamically resize the layout to be sure it works well on different screen sizes. Build a UI with Layout Editor �|� Android Developers[^]
16 Apr 2023 by Graeme_Grant
If you want someone to write code for you, then there are these services: * fiverr[^] * Upwork[^] * Freelancer[^] * Guru[^] * PeoplePerHour[^] * TaskRabbit[^] * Karat[^]