Uma Shankar Pathak
03/25/2021, 10:56 AMbacktrace:
#00 pc 00000000034529dc /data/app/com.google.android.webview-vsrMEcv18S4LBJhFw8XnvA==/base.apk!libmonochrome.so (offset 0x2d3000)
it is crashing on all android devices. maybe this is bad chrome update rolled out by Google. Can anyone please confirm that please 🙏🏽Jimmy
03/25/2021, 11:45 AMIfvwm
03/25/2021, 1:13 PMSlackbot
03/25/2021, 8:22 PMTiago Nunes
03/26/2021, 11:18 AMkotlinx-coroutines-android
dependency...Can
03/26/2021, 11:50 AMCompanionDeviceService
(Android 12 DP2) while bonding with a Wifi (via SSID) and feel quite confident with my current setup. I get the following logs but my CompanionDeviceService is never called.
2021-03-26 12:49:13.000 6062-7194/? I/CompanionDeviceManagerService: Updating associations: {Association { userId = 0, deviceMacAddress = b2:e7:e5:f7:3e:91, packageName = de.quartettmobile.companionapppoc, deviceProfile = null, notifyOnDeviceNearby = false, timeApprovedMs = Fri Mar 26 12:49:12 GMT+01:00 2021 }} --> {Association { userId = 0, deviceMacAddress = b2:e7:e5:f7:3e:91, packageName = de.quartettmobile.companionapppoc, deviceProfile = null, notifyOnDeviceNearby = true, timeApprovedMs = Fri Mar 26 12:49:12 GMT+01:00 2021 }}
2021-03-26 12:49:13.006 6062-6093/? I/CompanionDeviceManagerService: Writing associations to disk: {Association { userId = 0, deviceMacAddress = b2:e7:e5:f7:3e:91, packageName = de.quartettmobile.companionapppoc, deviceProfile = null, notifyOnDeviceNearby = true, timeApprovedMs = Fri Mar 26 12:49:12 GMT+01:00 2021 }}
Slackbot
03/26/2021, 6:06 PMKshitij Patil
03/27/2021, 6:13 AMFreedom
03/27/2021, 4:18 PMmehul bisht
03/27/2021, 11:18 PMLiveData
with a backing property (MutableLiveData) inside the ViewModel to Observe
and Add
to an ArrayList can cause a race condition and a Lock
is required? Provided that the ArrayList will get its value from a callback.andylamax
03/28/2021, 11:19 AMSimon Lin
03/29/2021, 1:59 AMviewModelScope
, it would be clear when view destroy.
Using Globalscope
is a good idea?Steffen Funke
03/29/2021, 11:36 AMaddRepeatingJob
API for safely consuming Flows from ViewModel (thanks @Manuel Vivo !): https://medium.com/androiddevelopers/a-safer-way-to-collect-flows-from-android-uis-23080b1f8bda
I am mostly observing multiple Flows from my ViewModel, e.g. one for the UI-State, and another one for One-Shot operations, like Toasts, Navigation, ...
Would it be safe to consume them like this, with launching sub-coroutines inside addRepeatingJob
? Or would it be better to have one viewLifecycleOwner.addRepeatingJob(Lifecycle.State.STARTED)
-Block for each observation?
viewLifecycleOwner.addRepeatingJob(Lifecycle.State.STARTED) {
launch {
viewModel.uiState.collect { uiState ->
// configure UI here
}
}
launch {
viewModel.events.collect { event ->
// react to one-shot events
}
}
}
dewildte
03/29/2021, 11:39 PMViewModel
collect from a Flow<T>
given to it by a View
, Activity
or Fragment
?
I.E.
// MyView.kt
val events: Flow<Event> = flowOf(Event1, Event2)
viewModel.handleEvents(events)
Slackbot
03/30/2021, 4:16 AMDeepak Gahlot
03/30/2021, 9:46 AMMuruganandham
03/30/2021, 1:26 PMknthmn
03/30/2021, 1:45 PMShakil Karim
03/30/2021, 6:54 PMGuilherme Delgado
03/31/2021, 10:46 AMAndroid Studio Arctic Fox | 2020.3.1 Canary 12
Build #AI-203.7148.57.2031.7226969, built on March 22, 2021
Runtime version: 11.0.8+10-b944.6842174 x86_64
VM: OpenJDK 64-Bit Server VM by N/A
macOS 10.16
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 4
Registry: ide.windowSystem.autoShowProcessPopup=true, external.system.auto.import.disabled=true, debugger.watches.in.variables=false, ide.images.show.chessboard=true
Non-Bundled Plugins: com.intellij.marketplace, mobi.hsz.idea.gitignore, com.atlassian.bitbucket.references, com.thoughtworks.gauge, com.google.mad-scorecard, com.jetbrains.kmm, com.squareup.sqldelight
If I have a class that has it dependencies by field injection:
private val logger: Kermit by inject()
I cannot attach the debugger, any break point shows this icon: 🚫 (the gray one)
If it’s constructor injection it attaches ok 🤔
I’m using Koin because this is a KMM project and the code is in the commonModule. Any ideia?
Thanks.mehul bisht
03/31/2021, 1:37 PMAndrew Ebling
03/31/2021, 3:43 PMNullPointerException
?
val macAddress = MacAddress.fromString(“aa:bb:cc:dd:ee:ff”)
...I’m passing a non-null value to an @NonNull
Java method? What gives?!Slackbot
03/31/2021, 6:51 PMLilly
03/31/2021, 7:49 PMinterface Foo {
val bar: Map<String, String>
get() = mapOf("1" to "1")
}
I would say yes but not sureMuhammad Zaryab Rafique
04/01/2021, 3:47 PMpeekandpoke
04/01/2021, 8:10 PMJustin Tullgren
04/01/2021, 11:31 PMBradleycorn
04/02/2021, 7:53 PMnavigation
project ... But when I run tests according to the guide (I've made zero changes. Just cloned the repo, open the project build, run tests), they fail...
cd navigation
# Run device side and host side tests
./gradlew test connectedCheck
.....
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':navigation:navigation-safe-args-gradle-plugin:test'.
> There were failing tests.
Am I doing something wrong?vapoyan
04/03/2021, 3:13 PMsuspend
methods and returning a Double
result.
How I can organise the code so calculateResult()
method is called ONLY when resultDoSomething1
and resultDoSomething2
are received from the server. (without booleans)
val resultDoSomething1: Double = 0.0
val resultDoSomething2: Double = 0.0
fun doSowmthing1() {
iewModelScope.launch {
resultDoSomething1 = downloadDataFromServer1()
}
}
fun doSowmthing2(){
iewModelScope.launch {
resultDoSomething2 = downloadDataFromServer2()
}
}
fun calculateResult() {
val res = resultDoSomething1 + resultDoSomething2
}
aniruddha dhamal
04/04/2021, 8:58 PM