Home » Android » Android Core

Android Core

Exclusive Book Offers (75% off): Mastering Android Application Development, Expert Android Programming, Android High Performance Programming

Hello fellow Geeks! Today, we have some exciting news for you! Java Code Geeks and Packt have teamed up to offer you weekly discounts on their extensive library of books. This week, we are offering discounts on three books to help you understand and master Android. Check them out! Mastering Android Application Development Antonio Pachón Ruiz There are millions of ...

Read More »

Mocking Static Methods in Android: Let’s Wrap it up

When writing local unit tests in Android, one of the limitiations that you face is that the tests are run against a version of android.jar that does not have any code. As the documentation explains, any dependency on Android code must be mocked. A quick example of a simple unit test: public class ClassUnderTest { public String methodUnderTest(String str) { ...

Read More »

Android Studio 3.0 – Initial Impressions of Tool Support

I have been using Android Studio 3.0 since since the alpha versions, and it is good to see it finally released. This is just some initial comments on using some common and new Android tools and libraries with the 3.0 version of Android Studio and the associated Android Gradle plugin. Hopefully this will be useful for anyone thinking of upgrading ...

Read More »

Building a Restful API interface using Android Things

Building a Restful API interface using Android Things is useful whenever we have to connect Android Things to an external system. This article explains how to build a Restful API interface using Android Things so that other apps or applications can invoke this API. There are several scenarios, where Android Things has to be integrated with external systems and it ...

Read More »

Applying Google’s Android architecture with ObjectBox database

If you haven’t seen Google’s architecture, you can learn more about it here. Also, if you’re not familiar with ObjectBox, check out this post. Introduction The goal with the architecture is to end up with something like this:           The main difference is that I’ll be using ObjectBox instead of Room. The architecture doesn’t enforce any ...

Read More »

Activation UI and the Builder Pattern

I wrote two posts about the SMS activation process. In the first I discussed using the Twilio API via REST and in the second I discussed the native interfaces for SMS interception we can use in Android. Now it’s time to put this all together and create a single API that’s fluid. It should include the full UI process but ...

Read More »

ObjectBox, a modern and easy to use Android database

If you’re familiar with libraries like greenDAO or EventBus, you may have heard of the company that created them: greenrobot. If not, I recommend checking them out. In short, they build high quality open source libraries for app developers. Recently, they have come out with a new library called ObjectBox. It is used to help manage your app’s local data ...

Read More »