Questions tagged as 'kotlin'

1
answer

How to retrieve the state of a button with SharedPreferences in Android / Kotlin on multiple screens?

Friends, I have two activities, the first one I have a sound button on and off and the second I have some buttons like for example a button of name A and when clicked it should know what the sound button is in the first activity ... if in the fi...
asked by 30.11.2016 / 12:05
1
answer

"Can not be converted to JSON" error when trying to create JSONObject from String

I'm using the Kotlin language together with the GSON library to do parse creation / parsing of JSON objestos. I have the following string that stores a JSON object returned from a server val jsonString = "{"age":22,"height":1.8,"profession"...
asked by 05.05.2016 / 21:14
1
answer

How to check the number of words in a String? [duplicate]

Well, I'm doing a job for college where I need to identify the number of words a string has in Kotlin. Type: texto = "Ola Mundo" The variable numeropalavra s must be equal to 2. Is there a function that checks the number of w...
asked by 23.11.2018 / 16:02
2
answers

Android Studio 3.2.1 does not find "Default Activity"

I've been having this problem since Android 3.2. I have already done the following procedures to try to fix the problem: - I've done clean and rebuild of the project - I already cleared the cache and restarted Android Studio - I already sync...
asked by 20.10.2018 / 20:01
2
answers

How to remove url bar and buttons from a webview browser

Hello, I'm new to kotlin and am using a Project in webview to mirror a site in the App.
asked by 29.09.2018 / 01:47
1
answer

Check app version on Google play [closed]

Is there a Web Service that returns the version of my application? Because for example I have version 1.2 (most current) and when the user opens and for example is version 1.1 do not let him run the application while not updating. I could make a...
asked by 15.08.2018 / 18:21
1
answer

Java fragment call conversion to Kotlin

I am creating an app that will have a main activity and some fragments interleaved, in that case I am trying to launch a fragment_main but I can not frazer this Java code flipping code Koltin: FragmentManager fragmentManager = getFragmentManag...
asked by 20.09.2018 / 03:34