|
Hey how do I check what the android emulator is getting stuck on through the command line? I've got a jenkins server that is supposed to run one on builds, but it doesn't seem to be booting.quote:12:28:03 $ /var/lib/jenkins//platform-tools/adb start-server quote:12:42:49 $ /var/lib/jenkins//platform-tools/adb -s emulator-5736 wait-for-device shell getprop init.svc.bootanim
|
# ¿ Mar 3, 2018 20:48 |
|
|
# ¿ Apr 28, 2024 21:06 |
|
The plugin that does that randomly generates the ports on each job, and does not give an option to set them manually. Edit: this plugin https://wiki.jenkins.io/display/JENKINS/Android+Emulator+Plugin brand engager fucked around with this message at 08:01 on Mar 5, 2018 |
# ¿ Mar 5, 2018 07:53 |
|
I'm running a copy of it manually to see how long it takes to boot. Been 30 minutes so far and it hasn't finished. This instance doesn't have virtualization features so no hardware acceleration. Edit: Still wasn't done booting after an hour and a half. brand engager fucked around with this message at 18:04 on Mar 5, 2018 |
# ¿ Mar 5, 2018 16:36 |
|
Volmarias posted:It should take no longer than 5 minutes at the worst, sanity check that you can start ANY emulator on the build system first. Remove all the arguments and make a standard API 26 target or something. I was running this avd quote:Name: hudson_en-US_120_QVGA_android-25_google_apis-armeabi-v7a_10 code:
|
# ¿ Mar 5, 2018 19:26 |
|
Trying some stupid poo poo Edit: it boots now brand engager fucked around with this message at 02:50 on Mar 8, 2018 |
# ¿ Mar 8, 2018 02:38 |
|
Is there any way to change the colors used for specific days in a CalendarView widget? Most of the color related methods are deprecated, and subclassing the widget hasn't exposed anything that can change colors.
|
# ¿ Mar 29, 2018 00:05 |
|
Volmarias posted:You might want to use the material backport on GitHub and customize it in this case. Not sure how far back you need to support or how much you care about device L&F Our minimum API level is at 15 right now. I might just abandon the color thing for now since this is for a class group project.
|
# ¿ Mar 29, 2018 20:12 |
|
Been working on a bug at work where a ContentProvider is dying or not being started up or something. The app is split into multiple processes so it's probably some awful concurrency bullshit. I think we also have parts of the code that just get the database itself and then interact with it which might be a nono. Anyone got some dos+don'ts for working with these that arent in the official ContentProvider guide?
|
# ¿ May 21, 2019 01:39 |
|
I don't know why, it was before I worked there
|
# ¿ May 21, 2019 01:48 |
|
It runs in three processes. We've got one that has all the activities, one that has network stuff and native c/c++ junk, and a "utility" process that I cant remember what it's responsible for.
|
# ¿ May 21, 2019 02:25 |
|
lmao
|
# ¿ Jun 6, 2019 22:25 |
|
Why bother manually assigning primaries, doesn't every db have an autoincrement for that
|
# ¿ Aug 27, 2019 01:02 |
|
if you can't depend on the row number or whatever you could embed something unique to that data into the pendingIntent for the notification using Extras
|
# ¿ Aug 27, 2019 01:13 |
|
Does android studio's debugger work with native code? Maybe ours is just too busted for it to attach, but I haven't been able to get it working.
|
# ¿ Sep 5, 2019 02:19 |
|
PokeJoe posted:yes it does. are you sure the code you're break pointing is actually running? It wasn't even attaching to the process last time I tried
|
# ¿ Sep 5, 2019 04:33 |
|
Anyone have experience with the Compose library in jetpack? It looks like their version of swiftUI view building but I don't know how complete it is.
|
# ¿ Oct 21, 2020 20:05 |
|
FAT32 SHAMER posted:it isn't very complete yet, but it's extremely promising and the moment it's stable and fully released we are planning on tearing all xmls that we possibly can out to replace it Does it work with the databinding stuff since you need to have a <layout> tag at the root for databinding to generate the class?
|
# ¿ Oct 21, 2020 20:14 |
|
FAT32 SHAMER posted:i believe databinding exists solely to prevent bullshit npe's from occurring with xmls by generating classes that call findViewById for you to statically reference, so whatever the name of the view you declare it as in compose is what you reference in your fragment logic and it ~just works~ I think i'll be stuck with xml since we're already redoing our UI. I've been working only on our ios app since late last year, so getting moved back to android has been a mess. UI stuff is already slower than any other work, and I'm also trying to remember how to do anything in android.
|
# ¿ Oct 21, 2020 20:32 |
|
We're also supposed to change to a model-viewmodel-view architecture so I'll need to figure that out too
|
# ¿ Oct 21, 2020 20:55 |
|
Do you need the 4.1 plugin for something?
|
# ¿ Oct 24, 2020 01:39 |
|
I didn't see any mention of it in the release notes. Anyways the trick to gradle is to use the oldest version that both has the features you need and isn't busted, and just dont update it until you absolutely have to.
|
# ¿ Oct 24, 2020 16:01 |
|
What causes android 10 to automatically grant the camera permission? I have some test app that only declares uses-permission for android.permission.camera, and when I install it the camera permission is already granted. Everything I've found in the documentation says the camera permission can only be granted by asking at runtime. Edit: it's loving gradle doing it somehow. Doesn't happen if I install manually with adb, but using the installDebug task automatically grants the camera permission. brand engager fucked around with this message at 22:26 on Apr 28, 2021 |
# ¿ Apr 28, 2021 22:16 |
|
kitten smoothie posted:What version of the Gradle plugin are you using, looks like this may have been fixed in 4.2. The idea was to auto grant permissions for instrumented tests but it just granted whatever was in the manifest all the time It was a new project so just whatever version it defaults to now
|
# ¿ Apr 29, 2021 02:53 |
|
We have a multi-process app, and recently we found out that a bunch of classes that implement Parcelable were being stored to the filesystem and in a database in the marshalled form. Don't do this, it really sucks to fix
|
# ¿ Jul 21, 2021 01:40 |
|
Does DataStore<Preferences> not work across processes? Getting the feeling that google really wants people to stop using multiple processes for a single app
|
# ¿ Sep 30, 2021 21:46 |
|
Volmarias posted:I know it's not an answer, but I'm genuinely curious what your reason is for multiple processes in your application. We have one of those apps that runs other apps in a container. Other apps get spawned as separate processes. But in this case I was trying to use datastore from the normal app process and a second process we have a bunch of our backend code running in. E: anyways I ended up putting the datastore access in a content provider and writing the boilierplate stuff to do contentresolver calls interacting with it
|
# ¿ Oct 1, 2021 01:35 |
|
Cool if you try to dismiss a DialogFragment from an activity's onStop the dialog throws a runtime exception. loving clown OS
|
# ¿ Oct 1, 2021 22:04 |
|
Can they quit hopping architectures for like 5 minutes
|
# ¿ Feb 26, 2022 23:06 |
|
Does compose not have something to wrap an existing activity or fragment into a compose hierarchy? AndroidView only works for views, which isn't that useful since the activity/fragment and its viewmodel do the useful work on views
|
# ¿ Mar 17, 2022 19:21 |
|
FAT32 SHAMER posted:Your option is to “inflate” a composable in a fragment (I.e. use the fragment as the composable host which is then hosted by your activity) and nuke any viewbinding and xml associated with it, or go whole hog and use your activity to host composables and map their flow using the new jetpack composable navigation and nuke all of your fragments and refactor large swathes of your view models That's the opposite of what I meant but it's not possible anyways. They just don't have an equivalent of UIViewControllerRepresentable
|
# ¿ Mar 18, 2022 05:47 |
|
Aren't you supposed to do all this setup in the onBind or whatever it's called? The recyclerView is probably messing with those viewHolders every time it recycles one so I wouldn't count on handlers set in a constructor
|
# ¿ Jul 20, 2022 21:05 |
|
Had to dig up our old app that still uses recyclerviews, we only did view inflating in onCreateViewHolder and we setup any handlers in onBindViewHolder
|
# ¿ Jul 20, 2022 21:14 |
|
LongSack posted:Except that the Java version works. It probably shouldn't have
|
# ¿ Jul 20, 2022 21:35 |
|
this spot where you're making a state object further down in the composable is gonna create a new state every time the library checks if it needs to recompose, that's gonna cause some weird issuesKotlin code:
Kotlin code:
|
# ¿ Aug 4, 2022 15:46 |
|
Also that StateFlow class isn't a Compose state, it just happens to have use state in the name. I don't think it'll cause recomposing like the actual androidx.compose.runtime.State type will
|
# ¿ Aug 4, 2022 16:08 |
|
LongSack posted:The state object is created in the viewmodel which is injected into the composable, and should be scoped to the lifetime of the composable You're also making one in the spot I quoted though which is a problem for reasons already mentioned LongSack posted:That's where the LazyColumn gets its items from Oh ok thought you had created your own forEach()
|
# ¿ Aug 4, 2022 17:18 |
|
Usually I do code reviews in android studio, and piecing the whole thing together from different posts is kinda a pain. Think you're gonna have to figure out the issue yourself lol
|
# ¿ Aug 4, 2022 18:38 |
|
This isn't related to the bug, but you can remove that backing property for the state by changing toKotlin code:
|
# ¿ Aug 5, 2022 15:45 |
|
Why is StateFlow still in the viewmodel? You don't seem to be using the actual flow parts of it. You're also still recreating state objects on every attempted recompose https://github.com/vjkrammes/ToDoPl...Activity.kt#L31, that's gonna cause problems like mentioned before.
|
# ¿ Aug 5, 2022 23:21 |
|
|
# ¿ Apr 28, 2024 21:06 |
|
Feel like i'm losing my mind, this coroutine runs but never recomposes after the state changeKotlin code:
|
# ¿ Nov 9, 2022 16:18 |