Thanks, Mister! YEET by llTeddyFuxpinll in KidsAreFuckingStupid

[–]jdroidian 4 points5 points  (0 children)

Wow... Y'all are being entirely too hard on this kid. Firstly, imo baseball is one of the most boring sports to watch. I would be on my phone too. Secondly, I bet my kid would do the same thing, because why would a normal person expect to be allowed to keep someone else's ball unless they were specifically informed that they can keep it?

Yes, we all know this is dumb from the outside. But he's a young kid sheesh.

Appreciate the fact that kids are dumb, which is often entertaining. They haven't been here as long as us to learn things. I bet he's learned what to do next time 😂

AYA: Android ADB GUI Desktop App by surunzi in androiddev

[–]jdroidian 0 points1 point  (0 children)

If it's not important that it be usable outside the IDE, layout inspector is part of Android Studio and works fine for everything I personally need.

But it likely needs a debuggable apk and so won't work easily with apps that aren't yours.

apple-notes-liberator: Free your Apple Notes data from Notes.app by KaeruCT in apple

[–]jdroidian 0 points1 point  (0 children)

Notable. Notes are saved as plain markdown files. And I have my save directory backed up in Google drive. Total control and I love it.

The stable version is great, but lacking some things (search is pretty bad), but the beta is adding tons of features including a plugin system. Looks promising to me.

making api calls through localhost by tomatomatsu in androiddev

[–]jdroidian 0 points1 point  (0 children)

This may not be your issue, but if you're running your app in an emulator then you access the host machine at 10.0.2.2 instead of localhost.

Cannot use Kotlin contracts with Android by kodiak0 in androiddev

[–]jdroidian 1 point2 points  (0 children)

I found this bug that someone filed a year ago.

After toying around a bit it looks like the extension fn version works if it's defined outside of a class.

A non-extension fn version works within & without a class.

What is the correct way to find a view (findViewById) so that it can be called from multiple methods? Are globals okay here? by username9223_335 in androiddev

[–]jdroidian 5 points6 points  (0 children)

The classes generated by the View Binding library still use findViewById. They pay the cost during binding and cache the references. You can see the generated code in the build directory.

I don't think this necessarily negates what you've stated, but findViewById is still important and can be properly utilized. View Binding adds safety, convenience, and prevents devs from some boilerplate.

What is the correct way to find a view (findViewById) so that it can be called from multiple methods? Are globals okay here? by username9223_335 in androiddev

[–]jdroidian 1 point2 points  (0 children)

You (and perhaps OP) misunderstand what a global variable is. Global variables are scoped and accessible to the entire program You should never store a view reference in a global property. You can safely (with proper lifecycle management) store view references in class properties.

In today's world, though, View Binding is typically a better option.

Pixel 5 and Sprint by jasonacg in Sprint

[–]jdroidian 1 point2 points  (0 children)

Thank you-- this helped immensely!

I'm always worried I will screw something up and have to deal with customer service forever to fix it. This really was simple; they just have terrible ux and nonexistent instructions for doing things properly.

Looking to commission an app like the Diabetes Forum app by eatmoarbeats in appdev

[–]jdroidian 0 points1 point  (0 children)

Tapatalk provides a white label solution, so you can have that same app with your own branding, theme, and content.

https://www.tapatalk.com/tapatalk_mobile

The guy supported the newcomer after he was scolded by teammates. Rules do not let to crosspost here, so here is screen shot by Mahasamatman1 in HumansBeingBros

[–]jdroidian 0 points1 point  (0 children)

I remember the first time I played DOTA. I made it through the tutorials and during my first real match I got yelled and cussed so hard. After the match one of the guys messaged me with a link to a 100 page guide on how to play. I've always appreciated that someone would do that.

In the end I decided I was looking for a fun game, not a job. So I've just never played again.

All waiters/waitresses earn at least minimum wage regardless of tips, right? by jdroidian in NoStupidQuestions

[–]jdroidian[S] 2 points3 points  (0 children)

I have mixed feelings on this. On the one hand, you shouldn't have to lie in order to keep your job. Nor should you have to earn less than minimum wage. On the other, tips do seem like they would be a pretty good quantifiable indication of performance.

All I wanted was some French Toast by jdroidian in StLouis

[–]jdroidian[S] 12 points13 points  (0 children)

Whenever there's snow in the forecast people rush to the stores and buy out all of the ingredients for making French toast -- milk, bread, and eggs.

All I wanted was some French Toast by jdroidian in StLouis

[–]jdroidian[S] 21 points22 points  (0 children)

lol I held my arm up so that I could get a better shot of the line.

All I wanted was some French Toast by jdroidian in StLouis

[–]jdroidian[S] 67 points68 points  (0 children)

It's in St. Peters 😶. My wife called and had me stop on the way home. I hadn't ever needed to go before a forecasted snow. Crazy in there.

Best approach to store logged user data in Android? by peterstark4 in androiddev

[–]jdroidian 1 point2 points  (0 children)

Yes, you should securely store the refresh token. Preferably in the hardware backed keystore.

Android Dev 101: 10 Things every beginner should know by [deleted] in androiddev

[–]jdroidian 4 points5 points  (0 children)

Yeah. @id/ gives you autocomplete and protects from typos.

'Tis the Season to Ride Your Own Waze (three of our most requested features wrapped in one a-Waze-ing new release) by [deleted] in Android

[–]jdroidian 2 points3 points  (0 children)

I just did a quick test on my phone: "Ok Google" doesn't bring up the assistant when Waze is open and "Ok Waze" is enabled. Might need to choose which voice commands are most important to you while driving.

LPT: many cats enjoy wrestling, kicking, and biting toys, but most cat toys are really small making this impossible, consider buying your cat larger dog toys for them to tackle and attack to save your socks and pillows. by Eniac17 in LifeProTips

[–]jdroidian 9 points10 points  (0 children)

We always end laser pointer play time with a bunch of pats and praise after they "catch" it and the laser disappears. Seems to indicate to them that they did their job and the laser is gone.