https://kotlinlang.org logo
Docs
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
android
  • d

    droid

    09/04/2020, 4:18 PM
    Is there a way to tell
    WorkManager
    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!
    o
    • 2
    • 5
  • a

    Alexa_Gal

    09/05/2020, 2:25 PM
    Hi guys n00b question. What would be the best/right practice to have two viewModels talking each other. I have an object in the viewModelA and I need the ID in the viewModelB to have it on my request Any recommendation?
    o
    • 2
    • 13
  • j

    Joshua

    09/05/2020, 2:40 PM
    This is really strange... So i created a drawable resource file to create corner radius for my button.. If I set the background property to that file I get the corner radius as I want.. however, the background tint is being overwritten by the background property? So I can't set a background color of the button... any idea how to fix this
    c
    • 2
    • 1
  • c

    Christopher Elías

    09/05/2020, 7:25 PM
    Question, how does gradle system work? I am working on a modularized project, What happens when Two Modules contain the same library like... Core Module A and Core Module B both have the android support library, and this core Modules are implemented on a Feature module, this feature module download the support library twice? Or somehow gradle know about it and just download that library once?
    j
    t
    g
    • 4
    • 5
  • m

    mohamadreza jafarzade

    09/06/2020, 11:19 AM
    Hi I have activity A that contains fragment x. then I open fragment y from it. then I open Activity B from fragment y. When i press back from Activity B, it opens fragment y. Is there anyway to open fragment x when i press back from Activity B? i thought that not setting
    addToBackstack()
    would help me but it is only responsible for previous fragment not the new one.
    r
    j
    i
    • 4
    • 6
  • m

    manlan

    09/07/2020, 10:56 AM
    I have to implement the same screen, as a bottom sheet at one place and as a normal fragment in a viewpager at a different place. If I extend BottomSheetDialogFragment for the first case, I cannot use it as a normal fragment in the other case. Any suggestions so I can avoid duplicate logic/classes?
    s
    t
    • 3
    • 2
  • r

    Rafal

    09/07/2020, 1:39 PM
    https://android-developers.googleblog.com/2020/09/prefer-storing-data-with-jetpack.html With the new DataStore library, it makes me wonder - will incorporating first party support for coroutines in new jetpack libraries be the path Google wants to follow now? I mean, most of the time we had sidekick libraries for coroutines/rxjava support and now the DataStore api is built with
    Flow
    g
    a
    • 3
    • 7
  • k

    Ken Maffei

    09/07/2020, 8:49 PM
    I have a network call that gets LiveData. The LiveData is observed with my Fragment's lifecycle owner. Does the coroutine call I make also need to be scoped to the fragment's lifecycleowner? In other words should I use one of these, or does it not matter?
    CoroutineScope(<http://Dispatchers.IO|Dispatchers.IO>).launch
    or fragment.lifecycleScope.launch(context = Dispatchers.IO)
    j
    r
    • 3
    • 21
  • s

    Sudhir Singh Khanger

    09/08/2020, 3:58 AM
    I am using Flow to fetch a list of some objects from the API. I collect in the ViewModel inside a viewModelScope which is then pushed to the UI via a LiveData. I am also supposed to filter this list based on a query. Should I filter at the flow level in the repository or should I filter in the ViewModel once it has been collected and let filtering be part of LiveData instead of flow.
    m
    y
    r
    • 4
    • 11
  • s

    Slackbot

    09/08/2020, 12:21 PM
    This message was deleted.
    a
    n
    • 3
    • 2
  • d

    droid

    09/08/2020, 2:53 PM
    Is there recommended way of doing Boolean object comparison in Kotlin? e.g.
    if(Boolean.TRUE == someBooleanValue) { .. } else { .. }
    , this example is using
    Boolean.TRUE
    from Java and android studio is giving lint warning:
    a
    z
    l
    • 4
    • 10
  • s

    Slackbot

    09/08/2020, 7:30 PM
    This message was deleted.
    a
    • 2
    • 1
  • a

    Afzal Najam

    09/09/2020, 2:59 AM
    Does Android Studio not support the Coroutines tab in the debugger? Not seeing it on AS 4.2 Canary 10 with Kotlin 1.4.0
    :yes: 1
    a
    • 2
    • 2
  • w

    Will Nixon

    09/09/2020, 1:04 PM
    Hi all - is the generated Keystore file meant to have an extension like .jks or .keystore? At the moment, I just see a simple file named keystore with no extension or anything. For context: trying to use Fastlane to sign, build, and deploy aab for internal testing, but keep getting an error and wondering if it might be to do with the keystore pathing
    Users/wnixon/keystore
    :google: 2
    k
    • 2
    • 3
  • t

    tseisel

    09/10/2020, 6:57 AM
    Has anyone here already used the new Dagger Hilt library ? Is it stable enough for use in production ? Does it really simplify config for dependency management ?
    :google: 6
    s
    s
    • 3
    • 3
  • i

    iBehnia

    09/10/2020, 11:24 AM
    Hi I have a question How to create cardview with blur background?
    :google: 2
    d
    s
    m
    • 4
    • 5
  • t

    tylerwilson

    09/10/2020, 4:05 PM
    Any known risks or issues using Kotlin useIR flag on JVM/Android?
    g
    • 2
    • 3
  • a

    Afzal Najam

    09/10/2020, 8:10 PM
    Is putting
    okhttpclient.newCall(request).execute()
    inside a coroutine going to cause any problems, as compared to calling
    enqueue
    wrapped around a
    suspendCancellableCoroutine
    ?
    g
    • 2
    • 2
  • s

    Sam

    09/11/2020, 5:44 AM
    Good day you guys, I have some debate about MVVM with my team/friends with 2 points: 1. Must use Databinding in XML to following architecture MVVM + databinding : Example :
    <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.
    d
    g
    +3
    • 6
    • 46
  • k

    Kate Galeru

    09/11/2020, 10:01 AM
    Hi all, What would be a good solution to implement a screen like google play store? My current screen has a vertical list and each item in the list contains a horizontal scrollable list. I implementing a nested RecyclerView, but the performance isn't great, the vertical scroll is lagging. What would be a better solution to keep in mind the performance? Thanks!
    :stackoverflow: 3
    d
    s
    • 3
    • 3
  • d

    dan.the.man

    09/11/2020, 8:13 PM
    Anyone see this error?
    java.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/1888
    o
    • 2
    • 1
  • i

    Ian Arbuckle

    09/12/2020, 11:50 AM
    Hey guys would appreciate any pointers in the right direction. I'm migrating an Android gradle build script to Kotlin. I extract a build time property from 
    local.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?
    g
    • 2
    • 4
  • g

    gabrielfv

    09/12/2020, 2:42 PM
    Does anybody know if it’s possible to extend
    @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.
    • 1
    • 2
  • s

    Sourabh Rawat

    09/12/2020, 3:11 PM
    Any good tutorial on understanding the android material palette? I get confused by primaryVariant vs primaryLight/Dark etc.
    :google: 2
    a
    a
    • 3
    • 2
  • m

    Mehul Kabaria

    09/13/2020, 6:28 AM
    I want to create chatting application same like WhatsApp provides feature with video and audio calling. Any customized SDK available that give above all features. Your help would be appreciated.
    👨‍🎓 1
    :stackoverflow: 2
    :google: 5
    s
    • 2
    • 1
  • j

    Joshua

    09/13/2020, 12:08 PM
    Can anyone please tell me why the include tag wont show up when I run the app?? This drives me crazy.
    <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>
    :stackoverflow: 7
    :google: 7
    d
    • 2
    • 3
  • k

    Karunkumar2023

    09/14/2020, 7:24 AM
    Hi everyone..please help me. how to upload apk to play store that is having more than 100MB size?
    :stackoverflow: 6
    :google: 5
    l
    g
    • 3
    • 4
  • l

    L.C

    09/14/2020, 9:25 AM
    Hi everyone, this is my first time posting here, I am wondering if anyone know the issue with dokka HTML generation. When I was running dikkaHtml Gradle task in Android Studio (4.2 canary 10 ) terminal,
    ./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 target
    I 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!
    z
    h
    • 3
    • 5
  • s

    shusek

    09/14/2020, 4:25 PM
    Hi, i got really weird error inside android studio 4.0.1 with kotlin 1.4.10. I am not sure if it bug from android lint and where i should report it. In the example below code works normally but android linter return error with message
    Error: 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 {
                ""
            }
        }
    }
    i
    • 2
    • 1
  • p

    pollux-

    09/14/2020, 11:01 PM
    I have a pre packages SQL database. Which has couple of Boolean fields. When I import that DB using Room it's throwing an error staying Pre packaged database has invalid schema I'm guessing problem is that, DB has boolen field type but Room table we can't have Boolean its being used and Integer field. How can I solve this??
    i
    c
    • 3
    • 9
Powered by Linen
Title
p

pollux-

09/14/2020, 11:01 PM
I have a pre packages SQL database. Which has couple of Boolean fields. When I import that DB using Room it's throwing an error staying Pre packaged database has invalid schema I'm guessing problem is that, DB has boolen field type but Room table we can't have Boolean its being used and Integer field. How can I solve this??
i

Ian Lake

09/15/2020, 12:13 AM
The only option is to fix your database to use the same schema that Room expects. You can copy the create table statement out of the schema file that Room generated
p

pollux-

09/15/2020, 1:43 AM
@Ian Lake thank you for your time. This DB file I'm downloading from remote location which has Boolen fields in it. Unfortunately, I can control the schema of the DB that I receive. You mean to say, there is no fix for the issue I'm facing.
Caused 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=[]}
This is the exception I'm getting 🙄🙄
i

Ian Lake

09/15/2020, 1:46 AM
Your schema needs to match exactly
🙄 1
c

Colton Idle

09/15/2020, 2:42 AM
@pollux- the data seems simple enough. Can you just download it and insert it into the database instead? If you don't control it, I don't think there is much you can do like Ian said.
p

pollux-

09/15/2020, 2:59 AM
@Colton Idle 🙏
Thanks guys ✌️ @Colton Idle @Ian Lake
@Colton Idle @Ian Lake I had changed the type matching the SQL lite type and problem solved .. Thanks a lot
👍 2
View count: 6