droid
09/04/2020, 4:18 PMWorkManager
to run a workRequest immediately
? If not, are there better ways of performing such tasks, i.e. tasks that should be guaranteed to run, and should start immediately.
Thank you!Alexa_Gal
09/05/2020, 2:25 PMJoshua
09/05/2020, 2:40 PMChristopher Elías
09/05/2020, 7:25 PMmohamadreza jafarzade
09/06/2020, 11:19 AMaddToBackstack()
would help me but it is only responsible for previous fragment not the new one.manlan
09/07/2020, 10:56 AMRafal
09/07/2020, 1:39 PMFlow
Ken Maffei
09/07/2020, 8:49 PMCoroutineScope(<http://Dispatchers.IO|Dispatchers.IO>).launch
or fragment.lifecycleScope.launch(context = Dispatchers.IO)Sudhir Singh Khanger
09/08/2020, 3:58 AMSlackbot
09/08/2020, 12:21 PMdroid
09/08/2020, 2:53 PMif(Boolean.TRUE == someBooleanValue) { .. } else { .. }
, this example is using Boolean.TRUE
from Java and android studio is giving lint warning:Slackbot
09/08/2020, 7:30 PMAfzal Najam
09/09/2020, 2:59 AMWill Nixon
09/09/2020, 1:04 PMUsers/wnixon/keystore
tseisel
09/10/2020, 6:57 AMiBehnia
09/10/2020, 11:24 AMtylerwilson
09/10/2020, 4:05 PMAfzal Najam
09/10/2020, 8:10 PMokhttpclient.newCall(request).execute()
inside a coroutine going to cause any problems, as compared to calling enqueue
wrapped around a suspendCancellableCoroutine
?Sam
09/11/2020, 5:44 AM<data>
<variable name="user" type="com.example.User"/>
</data>
2. We should build XML to be pure , it mean does not include code because easier to management. debug, troubleshoot (Kotlin file for code and XML for UI). we should use Databinding
for binding view to safety-reference. we still achieve the MVVM.
How do you think about these points?
Thanks.Kate Galeru
09/11/2020, 10:01 AMdan.the.man
09/11/2020, 8:13 PMjava.lang.IllegalStateException: Unexpected non-class file: META-INF/versions/9/kotlin/reflect
When upgrading from Kotlin 1.3.72 to 1.4.10
It appears to be related to the Android Gradle plugin, any fixes other than going to an RC version?
https://github.com/firebase/firebase-android-sdk/issues/1888Ian Arbuckle
09/12/2020, 11:50 AMlocal.properties
using groovy.
def properties = new Properties()
properties.load(properties.rootProject.file("local.properties).newDataInputStream()
def key = properties.getProperties("google.map.key")
Does anyone know how to replace it with the gradleLocalProperties
DSL or any documentation on this?gabrielfv
09/12/2020, 2:42 PM@Parcelize
? I mean, I want to easily parcel com.google.gson.JsonObject
, but it can’t be marshalled via simply @RawValue
. I wanted to add a piece of code that translates it into String
than back to JsonObject
so that I can use @Parcelize
with it. I can’t translate it into an specific class because it’s a dynamic field.Sourabh Rawat
09/12/2020, 3:11 PMMehul Kabaria
09/13/2020, 6:28 AMJoshua
09/13/2020, 12:08 PM<FrameLayout xmlns:android="<http://schemas.android.com/apk/res/android>"
xmlns:app="<http://schemas.android.com/apk/res-auto>"
xmlns:tools="<http://schemas.android.com/tools>"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ProductGridFragment">
<LinearLayout
style="@style/Widget.Shrine.Backdrop"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_horizontal"
android:orientation="vertical"
android:paddingTop="100dp"
android:paddingBottom="100dp">
<include layout="@layout/shr_backdrop"/>
</LinearLayout>
Here is the shr_backdrop xml:
<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="<http://schemas.android.com/apk/res/android>">
<com.google.android.material.button.MaterialButton
style="@style/Widget.Shrine.Button.TextButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/shr_featured_label"/>
<com.google.android.material.button.MaterialButton
style="@style/Widget.Shrine.Button.TextButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/shr_apartment_label"/>
<com.google.android.material.button.MaterialButton
style="@style/Widget.Shrine.Button.TextButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/shr_accessories_label"/>
<com.google.android.material.button.MaterialButton
style="@style/Widget.Shrine.Button.TextButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/shr_shoes_label"/>
<com.google.android.material.button.MaterialButton
style="@style/Widget.Shrine.Button.TextButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/shr_tops_label"/>
<com.google.android.material.button.MaterialButton
style="@style/Widget.Shrine.Button.TextButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/shr_bottoms_label"/>
<com.google.android.material.button.MaterialButton
style="@style/Widget.Shrine.Button.TextButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/shr_dresses_label"/>
<View
android:layout_width="56dp"
android:layout_height="1dp"
android:layout_margin="16dp"
android:background="?android:attr/textColorPrimary" />
<com.google.android.material.button.MaterialButton
style="@style/Widget.Shrine.Button.TextButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/shr_account_label" />
</merge>
Karunkumar2023
09/14/2020, 7:24 AML.C
09/14/2020, 9:25 AM./gradlew dokkaHtml
it failed with the following exception.
javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested targetI thought it had something to do with the Java version(1.8.0_261) or no JAVA_HOME set, after attempting to set JAVA_HOME, the problem still happened. I am wondering anyone know of this issue and how to work around it? Thanks in advance!
shusek
09/14/2020, 4:25 PMError: Expected non-nullable value [NullSafeMutableLiveData] androidSingleEvent.value = validationError
.
Probably some lint check from library androidx.lifecycle:lifecycle-*:2.3.0-alpha07
is invalid.
Funfact: when i change validationError
to (validationError)
linter passes without problem.
class TestClass {
val androidSingleEvent = MutableLiveData<String>()
fun test() {
val nullableText = getNullableText(true)
if (nullableText != null) {
androidSingleEvent.value = nullableText
}
}
private fun getNullableText(returnNull: Boolean): String? {
return if (returnNull) {
null
} else {
""
}
}
}
pollux-
09/14/2020, 11:01 PMpollux-
09/14/2020, 11:01 PMIan Lake
09/15/2020, 12:13 AMpollux-
09/15/2020, 1:43 AMCaused by: java.lang.IllegalStateException: Pre-packaged database has an invalid schema: facility(org.kp.m.dashboard.home.data.geofencing.model.Facility).
09-14 18:40:03.805 979 979 E AndroidRuntime: Expected:
09-14 18:40:03.805 979 979 E AndroidRuntime: TableInfo{name='facility', columns={zip=Column{name='zip', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0, defaultValue='null'}, afterHoursInd=Column{name='afterHoursInd', type='INTEGER', affinity='3', notNull=false, primaryKeyPosition=0, defaultValue='null'}, isPreferedFacility=Column{name='isPreferedFacility', type='INTEGER', affinity='3', notNull=false, primaryKeyPosition=0, defaultValue='null'}, hasEmergencyServices=Column{name='hasEmergencyServices', type='INTEGER', affinity='3', notNull=false, primaryKeyPosition=0, defaultValue='null'}, city=Column{name='city', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0, defaultValue='null'}, timezone=Column{name='timezone', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0, defaultValue='null'}, latitude=Column{name='latitude', type='REAL', affinity='4', notNull=false, primaryKeyPosition=0, defaultValue='null'}, hasByAppointment=Column{name='hasByAppointment', type='INTEGER', affinity='3', notNull=false, primaryKeyPosition=0, defaultValue='null'}, cpmFacilityId=Column{name='cpmFacilityId', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0, defaultValue='null'}, hospitalInd=Column{name='hospitalInd', type='INTEGER', affinity='3', notNull=true, primaryKeyPosition=0, defaultValue='null'}, facilityDescription=Column{name='facilityDescription', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0, defaultValue='null'}, street=Column{name='street', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0, defaultValue='null'}, name=Column{name='name', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0, defaultValue='null'}, ncalInd=Column{name='ncalInd', type='INTEGER', affinity='3', notNull=false, primaryKeyPosition=0, defaultValue='null'}, affiliateInd=Column{name='affiliateInd', type='INTEGER', affinity='3', notNull=false, primaryKeyPosition=0, defaultValue='null'}, isHospital=Column{name='isHospital', type='INTEGER', affinity='3', notNull=false, primaryKeyPosition=0, defaultValue='null'}, hasWalkInCare=Column{name='hasWalkInCare', type='INTEGER', affinity='3', notNull=false, primaryKeyPosition=0, defaultValue='null'}, _id=Column{name='_id', type='INTEGER', affinity='3', notNull=false, primaryKeyPosition=1, defaultValue='null'}, state=Column{name='state', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0, defaultValue='null'}, region=Column{name='region', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0, defaultValue='null'}, hasAfterHoursCare=Column{name='hasAfterHoursCare', type='INTEGER', affinity='3', notNull=false, primaryKeyPosition=0, defaultValue='null'}, spotlightKey=Column{name='spotlightKey', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0, defaultValue='null'}, formattedHours=Column{name='formattedHours', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0, defaultValue='null'}, longitude=Column{name='longitude', type='REAL', affinity='4', notNull=false, primaryKeyPosition=0, defaultValue='null'}}, foreignKeys=[], indices=[]}
09-14 18:40:03.805 979 979 E AndroidRuntime: Found:
09-14 18:40:03.806 979 979 E AndroidRuntime: TableInfo{name='facility', columns={afterHoursInd=Column{name='afterHoursInd', type='BOOLEAN', affinity='1', notNull=false, primaryKeyPosition=0, defaultValue='null'}, isPreferedFacility=Column{name='isPreferedFacility', type='BOOLEAN', affinity='1', notNull=false, primaryKeyPosition=0, defaultValue='null'}, city=Column{name='city', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0, defaultValue='null'}, timezone=Column{name='timezone', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0, defaultValue='null'}, latitude=Column{name='latitude', type='REAL', affinity='4', notNull=false, primaryKeyPosition=0, defaultValue='null'}, hasByAppointment=Column{name='hasByAppointment', type='BOOLEAN', affinity='1', notNull=false, primaryKeyPosition=0, defaultValue='null'}, cpmFacilityId=Column{name='cpmFacilityId', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0, defaultValue='null'}, street=Column{name='street', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0, defaultValue='null'}, affiliateInd=Column{name='affiliateInd', type='BOOLEAN', affinity='1', notNull=false, primaryKeyPosition=0, defaultValue='null'}, isHospital=Column{name='isHospital', type='BOOLEAN', affinity='1', notNull=false, primaryKeyPosition=0, defaultValue='null'}, hasWalkInCare=Column{name='hasWalkInCare', type='BOOLEAN', affinity='1', notNull=false, primaryKeyPosition=0, defaultValue='null'}, state=Column{name='state', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0, defaultValue='null'}, hasAfterHoursCare=Column{name='hasAfterHoursCare', type='BOOLEAN', affinity='1', notNull=false, primaryKeyPosition=0, defaultValue='null'}, formattedHours=Column{name='formattedHours', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0, defaultValue='null'}, longitude=Column{name='longitude', type='REAL', affinity='4', notNull=false, primaryKeyPosition=0, defaultValue='null'}, zip=Column{name='zip', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0, defaultValue='null'}, hasUrgentCare=Column{name='hasUrgentCare', type='BOOLEAN', affinity='1', notNull=false, primaryKeyPosition=0, defaultValue='null'}, hasEmergencyServices=Column{name='hasEmergencyServices', type='BOOLEAN', affinity='1', notNull=false, primaryKeyPosition=0, defaultValue='null'}, hospitalInd=Column{name='hospitalInd', type='BOOLEAN', affinity='1', notNull=false, primaryKeyPosition=0, defaultValue='null'}, facilityDescription=Column{name='facilityDescription', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0, defaultValue='null'}, name=Column{name='name', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0, defaultValue='null'}, ncalInd=Column{name='ncalInd', type='BOOLEAN', affinity='1', notNull=false, primaryKeyPosition=0, defaultValue='null'}, _id=Column{name='_id', type='INTEGER', affinity='3', notNull=false, primaryKeyPosition=1, defaultValue='null'}, region=Column{name='region', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0, defaultValue='null'}, spotlightKey=Column{name='spotlightKey', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0, defaultValue='null'}}, foreignKeys=[], indices=[]}
Ian Lake
09/15/2020, 1:46 AMColton Idle
09/15/2020, 2:42 AMpollux-
09/15/2020, 2:59 AM