As a quick note, this source code shows how to set the data (array) on an Android Spinner from Java code:
android tips and tutorials
Here’s an Android SQLite class I use in an Android app I wrote in 2014-2015. I’m sharing it here so I can easily find an Android SQLiteOpenHelper example:
This page from the Busy Coder’s Guide to Android discusses Android performance, including the Android hardware acceleration setting shown in the image.
One thing I learned about ten years ago is that when I need to memorize things, flashcards work really well for me. More recently, because I often bounce between many technologies, I have been making flashcards as a way of bringing me back up to speed after I’ve been away from a technology for a while.
The image shows one example of this, where I created a stack of flashcards to help me remember/relearn Android, which I haven’t used in several months. In this case I also have my Android cheat sheet to fall back on, but even then I still like using the flashcards. I think the theory is that rather than reading something passively, flashcards force you to try to recall something, and that’s a much more active way of using your brain and memory.
I like the “Google” app on Android — the thing you see if you swipe right on the Android home screen. But a weakness of it is that you can’t get back to a story easily. For instance, this morning I followed a Google Now card to see a story about Tom Ricketts and the Cubs, closed the story, then thought, “Wait, I meant to look at XYZ in that web page.” Once you close a story like this the Now card disappears, and you can’t get back to it easily (which is the weakness).
Solution 1: Going back to Google Now app stories on Android 7
I don’t know if this is the only way to do it, but as a solution, one way to get back to the story on Android 7 is to follow these steps:
Google released Android Studio 2.2 yesterday. Here’s a link to the announcement and details on the Android Developers Blog.
Android 7 comes with a cool new “split screen” feature where you can look at two apps running at the same time. This little pictorial/tutorial shows how to use this split-screen feature.Back to top
How to use Android’s split-screen feature
Step 1: Open two or more apps
The easiest way to get started with this feature is to have two or more Android apps open. You may want to open more than two apps, because some apps won’t support the split-screen feature. For instance, at the time of this writing, Kindle and Netflix don’t support it. I recommend starting a browser like Chrome, and another app like Twitter or an email app.
Tip: When you’re first getting started, open a few Google apps. They are more likely to work in split-screen mode than other apps.
Step 2: Tap the Android “recent apps” icon
Whether you want to write basic Android applications or high-performance Android apps, you really need to know about multi-threading issues. For instance, you don’t want to block the GUI while waiting for a response from a web service. This is a good, short video about the Android ThreadPoolExecutor class:
Google might do well to buy Yahoo Finance, if just that part is available for sale. I was just using the Yahoo Finance app on my Android Nexus 9 tablet, and for a few moments I forgot that I was using an Android app; it was so smooth I thought I was using an iOS app. The more great apps like that on Android, the better.
Conversely, the Yahoo Mail app on Android is just an average Android app, imho. The 2015 release was much better than earlier versions, but it still has a long ways to go to be a great app.