LOADING...
Log in and
comment
Username or Email
Password
Forgot password?
Or
Join and
publish
You're almost done! Define a user name and password.
Username
Email
Password
Senha
» Tip Us Hey you, we are hiring! Join us if you are an author, developer or designer!

Android Q to allow apps record audio from other apps and monitor device temperature

14 May 2019 3

We rely on several third-party apps so as to make use of some of the features which aren’t available on our devices. In fact, in some cases, we have to root devices as well to take advantage of some advanced features. Some manufacturers use their custom OS to provide some interesting features which aren’t baked inside the stock or nearly stock Android, so they turn out helpful. Well, if Google decides to bring some attributes via its operating system that would be the best decision. Google does bring new fancier things via its Android operating system whenever it thinks it’s desirable to have them onboard but it snatches them as well.

As observed by the folks over at XDA Developers, Google has added two new APIs in Android Q and also removed a few that the developers couldn’t target. The new APIs that have been added to the platform are AudioPlaybackCapture and Thermal APIs.

The first has been added to allow users to record audio from other apps. The facility will allow streaming apps like Twitch or YouTube Gaming to capture the audio being played by games. It’s imperative that Google will impose strict restrictions while allowing the same. With the help of this new addition, users will not only be able to capture videos of their screen but also record audio from other apps. The mobile world is turning its one side at the gaming and Google knows what gamers demand the most. Currently, the MediaProjection API doesn’t allow third-party apps to record the internal audio output in other apps, so the users have to use third-party screen recorders. Some manufacturers like Samsung and Huawei offer the facility to record audio alongside the screen recording but this new feature is only coming now to Android via the latest version.

With Android Q, the only app to use the API is Google’s Live Caption, which adds captions to any video being played on the device.

Another API getting added to Android Q is the Thermal API. This would monitor the throttling and apps can receive callbacks for different stages of performance throttling. As described by XDA Developers, a game could dynamically reduce the resolution to reduce the load on GPU and Maps apps could also disable enhanced features like AR navigation to reduce the load on CPU. Thermal throttling happens whenever performance forces devices to throttle the CPU and GPU speeds. Developers don’t have control on thermal throttling but with new Thermal API in Android Q, apps will be able to receive the callbacks.

XDA Developers notes that developers will be able to use this new API by registering a listener in PowerManager (addThermalStatusListener) and the system will then send the app one of the following thermal status codes:

THERMAL_STATUS_NONE: “Not under throttling.”
THERMAL_STATUS_LIGHT: “Light throttling where UX is not impacted.”
THERMAL_STATUS_MODERATE: “Moderate throttling where UX is not largely impacted.”
THERMAL_STATUS_SEVERE: “Severe throttling where UX is largely impacted.”
THERMAL_STATUS_CRITICAL: “Platform has done everything to reduce power.”
THERMAL_STATUS_EMERGENCY: “Key components in platform are shutting down due to thermal condition. Device functionalities will be limited.”
THERMAL_STATUS_SHUTDOWN: “Need shutdown immediately.”


3

Comments

Join our community » Android Q to allow apps record audio from other apps and monitor device temperature
Android

Top 5 best bezel-less smartphones | May 2019

Android

Top 5 best Android flagship smartphones | April 2019

Software

Android Software updates may soon be available via Play store | Upd: Now rolling out

Tech

Amazon acquires autonomous warehouse robotics startup Canvas Technology