Questions tagged as 'kotlin'

0
answers

finish a PolyLine and open another activity in kotlin and google maps

My question is from my location and when I reach the goal I finish the polylinea and launch another activity I share my code private fun cargarURL(url:String){ val queue = Volley.newRequestQueue(this) val solictud = StringRequest(Reque...
asked by 10.03.2018 / 01:55
1
answer

How to send POST data to a server. in kotlin

My question is how can I send certain parameters that have to go back to the server if the event is done on    val store_id = 5463       val option = playsong       val play_now = true       val song_id = 163309       These are data that I h...
asked by 27.03.2018 / 02:20
2
answers

Get Android application version?

I have the name of my application in strings.xml of the folder res/values : <string name="app_name">Liturgia+</string> I would like to change that value, adding the current version of the app. Assuming the current v...
asked by 25.10.2017 / 14:45
0
answers

How to delete external SD card file using SAF (storage access framework)

Basically I need to delete a file that I have in a recylcerView, the path I have is /storage/0617-4585/Imagenes/myimagen.jpg but at the time of doing file.delete() the file is still ... I was reading that I must have writable pe...
asked by 15.02.2018 / 18:44
0
answers

Failed with the Fragment in AndroidStudio Kotlin

Good, my mistake is the following. I'm doing an app that when I start to show a screen (MainActivity) with a button, this button when I press it takes me to another screen (MainActivity2). This works all right. Now what I wanted was to work with...
asked by 05.02.2018 / 19:47
1
answer

Load variable value into a function in another function

I'm doing a simple game to learn how to program for Android with Kotlin. I am afraid of an activity (game) of the game and when you find a number it takes you to another atcivity (Finish), passing two information, that are in OnCreate. overrid...
asked by 13.01.2018 / 18:18
1
answer

Kotlin compile error: Only classes are allowed on the left side of a class literal

How are generics managed in Kotlin?: I have an interface and its corresponding implementation generated with IntelliJ from java code. The interface that has generated me is: package com.oesia.mako.commons.repository import com.oesia.mako.c...
asked by 16.08.2017 / 12:27
1
answer

Error using @POST with @Body in interface Retrofit on Android

I have a problem using Retrofit in a project that manages Java and Kotlin at the same time and I can not find information about it, I explain ... I already have my service generator for Retrofit and my interface, both in Java; aside I have my...
asked by 09.07.2017 / 23:52
2
answers

Inaccessible methods from application class (kotlin)

As it turns out, from the class that extends from Application () I access the other classes of the project but I do not see their methods (unresolved reference). This is the application class: package com.fernando.lanatelar import android.a...
asked by 02.07.2018 / 09:21
1
answer

Kotlin javascript dataset

I have an HTML button with a data attribute: <button data-shop-listing='{"name": "Towel", "description": "Sunny days and warm weather - you clearly need it after a refreshing jump into the cool sea.", "price": 10.00}'>Add to cart</but...
asked by 27.02.2017 / 12:31