Questions tagged as 'kotlin'

1
answer

Doubt about Kotlin language

Why and for what the function main is written in the following way: fun main(args: Array<String>) { println("Hello, World!") }     
asked by 27.10.2018 / 02:53
1
answer

How do I get the View in a Fragment?

I'm starting to program on Android with Kotlin and I'm a bit confused with the Null Safety. The main problem comes when wanting to do a findViewById from the getView () (view in kotlin) in a fragment, I have been consulted and I have only fou...
asked by 28.04.2018 / 17:36
1
answer

How to save pdf

How can I save a .PDF file in / my_folder with the current date as file name? val date = Date() val timeStamp = SimpleDateFormat("dd-MM-yyyy HH:mm:ss", Locale.getDefault()).format(date) val dir = "${Environment.getExternalStorageD...
asked by 31.03.2018 / 20:48
1
answer

Fragment Volley

Why this code works properly for me if it is an activity and if it is a fragment, it does not give me errors or show me anything, is it just the progressbar? class FragJornadaActual1 : Fragment() { val TAG = "json_request" val URL = "...
asked by 17.01.2018 / 10:32
2
answers

Problem with recyclerView (Kotlin)

At the moment of creating an adapter for a recyclerView I could not make it recognize the layout that happened to it and the elements that are in it. class adapter_wpHome(val mItems: List<content_wallp>, val context : Context) : Recycler...
asked by 23.01.2018 / 05:13
0
answers

import internal classes in Kotlin

I am trying to translate an exercise from the codewars site of
asked by 29.12.2018 / 03:08
0
answers

Filter in adapter

How can I do it? What I want is for me to show only the items that within the holder.textEstado.text = filtro.estadoPartido contain the string "Pending" and this is what I do: import android.annotation.SuppressLint import android.content.Con...
asked by 23.12.2018 / 10:19
0
answers

Link BLE Bluetooth device

I am working with a BLE bluetooth device and I am already able to list the enclosing devices, connect to it as long as I have previously linked the device with Android, read and write, etc ... But the problem that I find is that I am not able...
asked by 19.12.2018 / 11:48
0
answers

How to disable "update" in the "save" method of JpaRepository

I'm trying to insert a new user into my user table and I want to have control if we insert an existing user that does not update it. Currently it seems that the save method or saveFlush derivatives try to insert and if they already exist they...
asked by 17.12.2018 / 16:49
0
answers

org.kodein.di.Kodein $ NotFoundException: No binding found for bindApixuWeatherApiService () with? {? }

I'm doing an Android project using Android Studion 3.3 Canary that uses Kodein and when I run it I get the following error: Caused by: org.kodein.di.Kodein$NotFoundException: No binding found for bind<ApixuWeatherApiService>() with ? { ?...
asked by 09.12.2018 / 21:26