Raspberry Pi has just launched the new Pico microcontroller board. The board includes 264KB of on-chip SRAM, 2MB of on-board QSPI flash and a single USB 1.1 controller and port. The board also supports the addition of 16MB of off-chip flash memory. I/O options include I2C, SPI and PIO.
Two features of the Raspberry Pi Pico of note are the $4 price tag and the fact that it runs on Raspberry Pi’s custom silicon in the form of the RP2040. The RP2040 microcontroller was designed by Raspberry Pi and includes an Arm Cortex-M0+ processor.
Designed to be programmed using C/C++ (time to dust off your old copy of Kernighan and Ritchie) and MicroPython, loading your code onto the device is as simple as connecting to your development system using the USB port and dragging and dropping a .uf2 file onto the device flash storage.
If you haven’t ventured into the world of Raspberry Pi the Pico, at only $4, may just be the chance you were waiting for.
As of Android API 30 (otherwise known as Android 11) the IntentService class has been deprecated. Provided since Android API 3, the purpose of IntentService was to allow asynchronous tasks to be performed without blocking the main thread.
The deprecation is one of a number of steps introduced starting with Android 8.0 (API 26) to limit the actions that can be performed while an app is in the background. This is a concept broadly referred to by Google as “Background Execution Limits”. The main goal of these changes is to prevent background services from degrading the overall performance of the system in terms of resource use (CPU, memory etc) and battery life.
Going forward, background services should be implemented using job scheduling. Developers using IntentServices in their apps should now consider moving to JobIntentService. JobIntentService provides a helper for working with the JobScheduler API and allows IntentService dependent code to be migrated to the job scheduling API with minimal code changes.
Google has now released Android Studio 4.2 Beta 3 for early access testing and is available via the Beta channel. If your copy of Android Studio is already subscribed to the Beta channel, it can be downloaded using the Help > Check for Updates (Android Studio > Check for Updates) menu option.
Rather than introducing any major sweeping changes to Android Studio, the 4.2 release appears so far to focus mainly on bug fixes. This may change as subsequent Beta releases are issued.
If you want to try out this Beta release alongside the current Android Studio 4.1 version, simply download and install a separate copy via the following link:
Red Hat has announced that the end of life date for CentOS 8 will be brought forward to December 31, 2021 after which there will be no further updates. They have also announced that when RHEL 9 ships, there will be no CentOS 9 equivalent.
In place of the “version” based releases, users will need to switch the CentOS Stream, a version of CentOS which will continually update with new features and bug fixes.
This essentially means that CentOS will migrate from being a free version of Red Hat Enterprise Linux (RHEL) to being a testing ground for the next version of RHEL (joining the Fedora distribution in this capacity) consisting of a rolling sequence of updates.
An exciting prospect for users who like to live on the edge, but probably less appealing for production level deployments that need the most stable and secure platform, instead of the latest, untested package updates.
It is hard to predict at this stage the types of users that will stay with CentOS after CentOS 8 reaches EOL. It is also possible, though probably unlikely, that an independent group will emerge to create a new Linux distribution based on the RHEL source code.
If you are writing multi-threaded asynchronous code using Android Studio you can’t help but have noticed that any reference to AsyncTask appears with a strikethrough. This, as we all know, is the dreaded sign that a feature of the Android SDK on which we have relied for years (in the case of AsyncTask it has been a decade) has been deprecated.
It is uncertain how long before the AsyncTask class is removed from a future Android release. All we know is that eventually it will be gone.
From what we have learned the removal of AsyncTask is the result of a tendency for memory leaks to occur when implementing multi-threading using this class.
For Kotlin programmers, the recommended course of action is to switch to using Coroutines. For those still programming in Java, the only option is to directly work with threads, or to use the Java concurrent utilities (java.util.concurrent). For more details read A Basic Overview of Java Threads, Handlers and Executors.
Google has announced that it is changing the version numbering system for Android Studio with the change taking effect after the release of Android Studio 4.2. This means that instead of calling it Android Studio 4.3, it will be called Android Studio Arctic Fox (2020.3.1).
This new system includes a code name representing a major version change using alphabetical names. As such, the code name for the next major release after Arctic Fox will begin with the letter “B”.
For those who don’t already now, Android Studio is based on a product called IDEA from a company named IntelliJ. The change of versioning system is intended to make it easier to find out which version of IntelliJ Idea the current Android Studio release is based on. IntelliJ numbers it versions as follows:
<Release Year>.<Major Version>
So, for example, Android Studio 4.3 will be based on IntelliJ IDEA version 2020.3. The final number is used to identify the major Android Studio version, starting at 1. This gives us the following designation for what would have been called Android Studio 4.3:
Android Studio Arctic Fox (2020.3.1)
If we’ve understood this correctly, we can assume that if what would have been called Android Studio 4.4 were to be based on IntelliJ IDEA 2021.7, then Android Studio may be called something like “Android Studio Baltic Seal (2021.7.2)”.
Google has now released Android Studio 4.2 Beta 2 for early access testing and is available via the Beta channel. If your copy of Android Studio is already subscribed to the Beta channel, it can be downloaded using the Help > Check for Updates (Android Studio > Check for Updates) menu option.
If you want to try out this Beta release alongside the Android Studio 4.1, simply download and install a separate copy via the following link:
After coming under pressure for taking a 30% commission on all App Store sales, Apple has now announced the App Store Small Business Program. Businesses that qualify for the program will see commissions dropped to 15%.
To qualify for this program, your business must have earned less than $1 million for all apps during 2020. If your business was fortunate enough to exceed $1 million in sales after qualifying, Apple will increase the commission to the usual high rate the following year.