Nelson Almendra
09/23/2018, 3:14 PMonCreateView
but it's very elegant I thinklazexe
09/24/2018, 9:33 AM@Dao
interface BottomBarIconDao {
@Query("SELECT * FROM icons")
fun getAll(): List<BottomBarIcon>
@Query("DELETE FROM icons")
fun deleteAll()
@Insert
fun insertAll(vararg icons: BottomBarIcon)
}
Vinicius Carvalho
09/24/2018, 1:53 PMlaunch
should happen at the UI context if we need to update any component from the UI, and any networking call should happen on a CommonPool
context?Vinicius Carvalho
09/24/2018, 1:53 PMat org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:180)
at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:124)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:366)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:560)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:492)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:470)
at com.microsoft.projectoxford.face.rest.WebServiceRequest.get(WebServiceRequest.java:102)
at com.microsoft.projectoxford.face.rest.WebServiceRequest.request(WebServiceRequest.java:78)
at com.microsoft.projectoxford.face.FaceServiceRestClient.listPersons(FaceServiceRestClient.java:605)
at com.microsoft.projectoxford.face.FaceServiceRestClient.listPersons(FaceServiceRestClient.java:623)
at io.igx.lego.MainActivity$onCreate$1$1.doResume(MainActivity.kt:54)
at kotlin.coroutines.experimental.jvm.internal.CoroutineImpl.resume(CoroutineImpl.kt:42)
at kotlinx.coroutines.experimental.DispatchedTask$DefaultImpls.run(Dispatched.kt:149)
at kotlinx.coroutines.experimental.DispatchedContinuation.run(Dispatched.kt:13)
at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1412)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:285)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1152)
at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1990)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1938)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
Vinicius Carvalho
09/24/2018, 1:54 PMcameraSource.takePicture({}, { bytes -> detectFaces(bytes) })
fun detectFaces(bytes: ByteArray) {
launch(CommonPool) {
val faces = facesClient.detect(bytes.inputStream(), true, false, arrayOf(FaceServiceClient.FaceAttributeType.Age))
val results = facesClient.identity("family", faces.map { it.faceId }.toTypedArray(), 4)
results.forEach { r ->
val name = personMap[r.candidates[0].personId.toString()]
Log.i(TAG,"Found $name")
}
}
}
Daniel
09/25/2018, 9:13 AMjurajsolarml
09/25/2018, 10:41 AMmorozov
09/25/2018, 12:00 PMglide
?
Right now i get next error in my logs:
Load failed for <https://upload.wikimedia.org/wikipedia/sco/7/71/Pringles.svg> with size [65x66]
class com.bumptech.glide.load.engine.GlideException: Failed to load resource
LG
09/25/2018, 2:18 PMkenkyee
09/25/2018, 3:27 PMdan.the.man
09/25/2018, 5:12 PMe: Supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath:
For my java class, but if I downgrade to 1.2.60 I'm not seeing this error. Anyone seen something like this?veer
09/26/2018, 12:03 PMThere was a failure while executing work items> A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution > java.lang.reflect.InvocationTargetException (no error message) Note: am trying to enable dataBindind for kotlin in a legacy code which already has Databinding using java, have applied apply plugin: ‘kotlin-kapt’ kapt “com.android.databinding:compiler:3.1.4” please help
rkeazor
09/26/2018, 4:22 PMmatt tighe
09/26/2018, 6:05 PMHong
09/26/2018, 7:00 PMjurajsolarml
09/27/2018, 7:19 AMTsvetozar Bonev
09/27/2018, 7:55 AMribesg
09/27/2018, 11:17 AMvoddan
09/27/2018, 12:40 PMCannot change dependencies of configuration ':app:debugCompile' after it has been included in dependency resolution
after I added kotlin serialization. It goes away if I comment out apply plugin: 'com.google.gms.google-services'
. What can it be?Allan Wang
09/27/2018, 1:50 PMjurajsolarml
09/27/2018, 3:54 PMneuber
09/27/2018, 7:20 PMAllan Wang
09/27/2018, 11:45 PMEnum entry name '_****' should start with an uppercase letter
I tried @Suppress("ALL")
for both the name and the entire enum classlawlorslaw
09/28/2018, 2:54 AMmuralimohan962
09/28/2018, 7:10 AMTudor Luca
09/28/2018, 8:42 PMsfloamfw
09/28/2018, 10:28 PMapply plugin: 'kotlin2js'
compileKotlin2Js {
kotlinOptions.outputFile = "${projectDir}/build/js/module.js"
kotlinOptions.moduleKind = "umd"
kotlinOptions.sourceMap = true
}
as well as other configurations.
When I compile my project, I do not see any .js files generated. Does anyone have any ideas as to why?muralimohan962
09/29/2018, 12:55 PMneuber
09/29/2018, 5:03 PMIcaro Temponi
09/30/2018, 3:49 PMIcaro Temponi
09/30/2018, 3:49 PMgildor
09/30/2018, 4:10 PMlaunch
, just withContext
, but it depends on your caseIcaro Temponi
09/30/2018, 4:12 PMgildor
09/30/2018, 11:17 PMIcaro Temponi
10/01/2018, 2:57 AMgildor
10/01/2018, 3:35 AM