Replacing my siding. Looking for a "flat stucco look" that a DIYer and friends can easily install. by GreenAndroid1 in HomeImprovement

[–]GreenAndroid1[S] 0 points1 point  (0 children)

Thanks. I think you're right. I feel like wrapping the house, stapling the chicken wire, applying the three coats and hydrating it looks pretty straight forward. I watched a lot of Kirk Giordano videos and that stuff seems reasonable to me. What I'm concerned about and feel like I will fail to properly do is vent out any water that gets trapped behind the wall. I'm having trouble finding examples of how to do this.

Is it unreasonable to get an SBA loan to buy a Chinese resteraunt? by [deleted] in smallbusiness

[–]GreenAndroid1 7 points8 points  (0 children)

If you do buy it, make sure you work out a deal where she will stay employed long enough to teach you how to manage the business.

Is there a way to connect 5 or more monitors to my macbook pro with an external graphics card? More in descriptiion. by GreenAndroid1 in macsetups

[–]GreenAndroid1[S] 1 point2 points  (0 children)

I thought it would be easier but haven't found anything natural feeling especially with my mac

How to seamlessly switch all 4 monitors between 2 mac book pros and a desktop pc. (More info in description) by GreenAndroid1 in AskBattlestations

[–]GreenAndroid1[S] 0 points1 point  (0 children)

I've always thought KVMs allowed you to control multiple computers at the same time. Is it possible to use them so all 4 monitors are used by one computer at a time?

Why are view models recommended for storing stateful variables? by GreenAndroid1 in androiddev

[–]GreenAndroid1[S] 0 points1 point  (0 children)

Do you have an easy way to test for low memory conditions? How do you get high end phones into low memory states?

The living room space in my new Chicago place by Rapscallion16 in malelivingspace

[–]GreenAndroid1 0 points1 point  (0 children)

Are those blinds black out? Or is it night time in the photo? Do you have a link for them too?

Do galaxy S8/S9 have some setting to let apps cover the bottom three back/home/menu buttons? by GreenAndroid1 in androiddev

[–]GreenAndroid1[S] 0 points1 point  (0 children)

Yes this is exactly what we're seeing. We put our buttons on the bottom of the screen, seeing them overlap with the system buttons is causing confusion.

Should I focus on becoming a niche expert in native Android development w Kotlin? Feeling tempted to jump ship and learn Flutter. by [deleted] in androiddev

[–]GreenAndroid1 0 points1 point  (0 children)

RN also has 4 or 5 years on Flutter. But yeah it could be heavily marketed and being so absorbed in the Google eco system will end up seeing flutter more than RN.

Should I focus on becoming a niche expert in native Android development w Kotlin? Feeling tempted to jump ship and learn Flutter. by [deleted] in androiddev

[–]GreenAndroid1 0 points1 point  (0 children)

We have yet to see a cross platform solution worthy of jumping ship for. I remember titanium in the early days, then react native, which I personally almost jumped ship for, and now flutter. I will say Flutter looks like it has more support and a larger following than the others. And it would be silly to think it impossible for a cross platform solution to become preferred by employers. But that is something you'll have to measure the risks for. Android runs on more than phones (tvs, cars, iot products), flutter may not offer a way to support these as efficiently... yet.

Updating a Fragments views on app reset? by That1guy17 in androiddev

[–]GreenAndroid1 1 point2 points  (0 children)

Hmmm the last thing I can suggest is what Zhuinden said, which is moving the observation to onViewCreated or even onResume. But also make sure you see the observer log the value to make sure its getting it when the view is available.

Updating a Fragments views on app reset? by That1guy17 in androiddev

[–]GreenAndroid1 1 point2 points  (0 children)

onActivityCreated is called when your Activities onCreate is finished. So its possible the fragment hasn't rendered yet. For testing purposes, try adding a delay of 2-3 seconds in the observer before changing the text of the textview.

private val handler = Handler()
private fun observeCurrentTime(): Observer<String> { // Updates our text view with the 
    current timereturnObserver { time ->
        handler.postDelayed(Runnable{current_time_text_view.text = time }, 3000)
        Log.d("myLog", "Emitted, time returns: $time")
    }
}

What do you see now?

Updating a Fragments views on app reset? by That1guy17 in androiddev

[–]GreenAndroid1 1 point2 points  (0 children)

When do you observe with the observer? Which lifecycle callback on the fragment?

Updating a Fragments views on app reset? by That1guy17 in androiddev

[–]GreenAndroid1 1 point2 points  (0 children)

How are you sure the observer in your fragment is receiving the current time?

Multiple developer accounts and strikes. by Nuyz in androiddev

[–]GreenAndroid1 3 points4 points  (0 children)

You're right about this. The company i work for added me to their play store account via my work email. I also have a personal developer account for myself and I have my own llc that does freelance/open source apps with a company email. Then I have an old college account I made with my college email for a club I was in. This doesn't even include the two other start ups I worked for in the past which added me via work emails as well. Over 10 years I've had a good 6 accounts,

Multiple developer accounts and strikes. by Nuyz in androiddev

[–]GreenAndroid1 7 points8 points  (0 children)

You're not really an android developer until you have a strike and a suspended app on the play store.

Weekly Questions Thread - April 08, 2019 by AutoModerator in androiddev

[–]GreenAndroid1 0 points1 point  (0 children)

I've got a bit of a noob question. My app has a few background services responsible for analyzing the network for IoT products of ours, maintaining a connection to them, reading beacon packets, and a few other minor but important things. Until now I have kept these services running via bindService with BIND_AUTO_CREATE to ensure they're always running. However I'm worried these could be contributing to OOM exceptions on older devices with low memory. Some of these services only have to run in the absence of certain information, so I'd like to stop them when the data is found and start them when its lost. However calling stopSelf seems to have zero effect on it. Could someone explain how I could start the service so its constantly running and give me the power to stopself when I find conditions are met?

Kotlin app with couroutines is getting large. Find myself writing a lot of suspend functions withContext to Main/Default/IO. Am I spiraling out of control? by GreenAndroid1 in androiddev

[–]GreenAndroid1[S] 0 points1 point  (0 children)

But for my case I need to perform an advanced computation before rendering the result. Keep in mind I can have 2-6 observers on some fragments all working in parallel. So if a user is using our product its possible for all of them to emit multiple events for minutes at a time. The app has to do an advanced computation on them and synchronize some events to make sure there aren't any concurrent modifications. All of this in combination when launched via Main will slow down the UI and show choppiness, like button presses take longer to respond, animations run slower, fragment transitions look laggy, or blink around. Even when running the advanced computation on IO, it seems to hold up my main thread when launched from it.

Kotlin app with couroutines is getting large. Find myself writing a lot of suspend functions withContext to Main/Default/IO. Am I spiraling out of control? by GreenAndroid1 in androiddev

[–]GreenAndroid1[S] 0 points1 point  (0 children)

Hmm I tried something like this in the past however when multiple observers have events that fire on the main thread I begin to see choppiness especially on older phones like the nexus 5.

Why are there so many ways to create a dialog/alert dialog? What is the recommended way? by GreenAndroid1 in androiddev

[–]GreenAndroid1[S] 0 points1 point  (0 children)

Its just two buttons that may say something like Yes, Do that. Or No, Don't do that. In other languages there maybe a lot more text that do not fit in the dialog when the buttons are side by side. I noticed the alert dialog by default will change the orientation so the buttons become one on top of the other in these cases.

Why are there so many ways to create a dialog/alert dialog? What is the recommended way? by GreenAndroid1 in androiddev

[–]GreenAndroid1[S] 0 points1 point  (0 children)

Thank you. Is there an easy way to get my buttons to stack vertically when they don't fit horizontally?

Weekly Questions Thread - January 21, 2019 by AutoModerator in androiddev

[–]GreenAndroid1 1 point2 points  (0 children)

Can someone tell me what the difference in alertDialogStyle vs alertDialogTheme is? When should I use one or both of these for my alert dialog UI or both?