Android: Difference between Parcelable and Serializable?

In Android we cannot just pass objects to activities. To do this the objects must either implement Serializable or Parcelable interface. Serializable Serializable is a standard Java interface. You can just implement Serializable interface and add override methods. The problem with this approach is that reflection is used and it is a slow process. This method creates a lot of temporary objects … Read more

Could not find com.android.tools.build:gradle:3.0.1

When I try to build my project with gradle wrapper I get this error: The same project builds OK in Android Studio. I’ve already checked this and this but I’m using gradle wrapper version 4.1, have added google() repository and even tried setting android.enableAapt2=false. Any other tips? Thanks. My root build.gradle file: My gradle-wrapper.properties file: … Read more

What is Dalvik and dalvik-cache?

Dalvik is the virtual machine that is used by Android. It is generally thought of as a Java virtual machine, although this is not precisely correct. It uses an object model that is identical to Java, and its memory model is also nearly equivalent. But the dalvik VM is a register based VM, as opposed … Read more