Do you let app updates happen automatically or do you regularly check for them? We're guessing the community will be pretty split here but we're interested in hearing your thoughts. Let us know below!
Learn about Concurrency in Java, and Optimize Your Applications
Understanding the structure of Java code is key to being a good Android programmer. One topic that should be understood better by most developers is concurrency. Every machine can perform more than one task at a time. For example, you are able to listen to music, browse the Internet, and have Android compiling in the background. Java, which is the main language of Android, is perfectly ready to handle more than one process at the same time.
There are two basic units of execution: processes and threads. New CPUs available both on PCs and phones have more than one thread, that’s why some new Intel chips can run up to 12 threads at the same time. The number of processes is greater, and shared among the number of currently available threads. That does not mean that a single-core processor doesn’t support concurrency. It does, but the performance will be lower than on an eight-core machine.
If you want to learn about concurrency in Java, you should check out a guide written by XDA Senior Member sak-venom1997. Sak-venom1997 put forth tremendous effort to thoroughly explain concurrency handling in Java. By following suggestions from this guide, you can get the most performance from your application and optimize it to use all threads available on your device.
The guide can be found in its original thread. If you are an app developer or you are planning to become one, don’t hesitate to go there to learn more.
Want something on the XDA Portal? Send us a tip!
The Google Play Store, weighing in with more than 1.4 million apps at last count, is a vast expanse of quality content and APK duds alike. To put this into context, it would take the average user more than 8 days of continuous scrolling to make it through the whole list at two per second, let alone the added months to click through and check out screenshots, or years to separate the wheat from the chaff via thorough review. Blogs...
Join us in a fun Sunday Debate on New vs. Old. Come with your opinions and feel free to read some of our thoughts, then pick your side or play devil’s advocate to get your voice heard and engage in friendly discussion. You can read our food-for-thought or jump straight into the fray below! Smartphone purchases make for some of the sweetest times of the year for many of us. After all, we are hobbyists of Android and a new...