Zaraki596
07/12/2018, 12:49 PMrakshith059
07/12/2018, 3:40 PMHammad
07/12/2018, 3:48 PMprivate fun copyDatabase() {
ctx.assets.open(DB_NAME).buffered().use { input ->
ctx.getDatabasePath(DB_NAME).outputStream().buffered().use { output ->
input.copyTo(output, 1024)
}
}
}
muralimohan962
07/13/2018, 10:19 AMMark Buikema
07/13/2018, 2:47 PMMutableLiveData
from my ViewModel
, only LiveData
, in order to prevent the activities and fragments from changing values of the `LiveData`s?neuber
07/14/2018, 3:21 AMAllan Wang
07/14/2018, 5:07 AMHele
07/14/2018, 10:12 AMhttps://youtu.be/53BsyxwSBJk?t=1062▾
Hele
07/14/2018, 10:30 AMAbbas
07/14/2018, 6:17 PMsudhanshu singh
07/15/2018, 12:48 PMdata class Response(
@SerializedName("someVariable") var type: Long?=null)
I can get null value from the server, but in my code I am only bothered with non null value of someVariable. Would it be right approach to write someVariable as nonNullable Response class as
data class Response(
@SerializedName("someVariable") var type: Long=0)
Ayden
07/15/2018, 2:17 PMBoolean
but I am using Boolean?
gaspard
07/15/2018, 5:29 PMpaulex
07/16/2018, 4:05 PMarekolek
07/17/2018, 11:31 AMonCreate
is called, in that case I think lateinit
is a godsendSlackbot
07/17/2018, 11:32 AMgokul
07/18/2018, 6:19 AMAlin B.
07/18/2018, 10:25 AMwith
kotlin, coming from java in android studio and coding for a few days, I can say that kotlin is fun
fradiati
07/18/2018, 12:22 PMAyden
07/18/2018, 3:19 PMadalbert
07/18/2018, 7:33 PMbbade_
07/19/2018, 11:51 PMtigran.babajanyan
07/20/2018, 8:55 AMAyden
07/20/2018, 9:22 AM{
"result": [
{
"id": 1,
"user_id": 1,
"url": "<https://www.brainyquote.com/photos_tr/en/h/hjacksonbrownjr/382774/hjacksonbrownjr1.jpg>",
"author": "H. Jackson Brown, Jr.",
"created_at": "2018-06-18 08:44:57",
"updated_at": "2018-06-18 08:44:57"
},
{
"id": 2,
"user_id": 1,
"url": "<https://www.brainyquote.com/photos_tr/en/h/hjacksonbrownjr/382774/hjacksonbrownjr1.jpg>",
"author": "H. Jackson Brown, Jr.",
"created_at": "2018-06-18 08:44:57",
"updated_at": "2018-06-18 08:44:57"
}
]
}
Hi folks,
If I am getting a result like this. Do I need to use Moshi
to create a typeconverter to convert this JsonArray?Lucas Ł
07/20/2018, 9:24 AMAyden
07/20/2018, 9:40 AMlawlorslaw
07/21/2018, 8:25 AMleosan
07/23/2018, 2:55 PMcompanion object {
fun start(context: Context) {
launch{
if (context.prefs.fooProperty) //ext fun on shared pref{
val intent = Intent(context, Foo::class.java)
context.startActivity(intent)
}
}
}
}
Gta
07/23/2018, 3:03 PMpaulex
07/23/2018, 7:26 PMpaulex
07/23/2018, 7:26 PMSeri
07/23/2018, 8:08 PMpaulex
07/23/2018, 8:32 PMrook
07/23/2018, 9:01 PMoverrides nothing
means that the signature of the thing being overridden doesn’t match anything in the object’s inheritancepaulex
07/23/2018, 9:19 PMrook
07/23/2018, 9:24 PMpaulex
07/23/2018, 11:02 PMoverride fun onSavedInstance(outState:Bundle?)
After updating, it appeared that the parent class is now
public void onSavedInstance(@NonNull outState:Bundle)
Hence kotlin complains that I haven't overriden the proper method e.g overrides nothing
Now imagine going to about 20files to fix thisgildor
07/23/2018, 11:39 PM