Photo by Diana Orey on Unsplash

Back in 2019, Google announced in I/O 2019 a new “extension” for the notifications that would replace and deprecate the API.

Photo by Kelvin Valerio on Pexels

The Android emulator has improved a lot these years (for reference how it was before, see this old StackOverflow question).

Nowadays the emulator is much faster with better performance and with easy settings option.

Photo by Clark Tibbs on Unsplash

It is often said that developers are lazy and that is (usually) a good thing. It just means that instead of repeating the same task or code over and over they tend to find ways to prevent that repetition and optimising their time.

Android developers for several years have tried to avoid the boiler plate code regarding findViewById . Let’s imagine you have the following layout:

If you needed to access the views above in your code and use the good old Java you would probably do something like this:

Sounds familiar ? 😅

findViewById — “the old way”

In order to skip…

Photo by Brendan Church on Unsplash

There is no doubt that Kotlin is here to stay for a long time, even more now that Google just announced in the last Google I/O 2019 that Kotlin is now Google’s preferred language for Android app development.

Today we’re announcing another big step: Android development will become increasingly Kotlin-first. Many new Jetpack APIs and features will be offered first in Kotlin. If you’re starting a new project, you should write it in Kotlin; code written in Kotlin often mean much less code for you–less code to type, test, and maintain.

Kotlin is a modern programming language and so today…

Photo by Chris Ried on Unsplash

As you may have noticed by my previous posts i am a huge fan of ADB, so today i decided to talk about a small project that i have started a few years a ago.

If you don’t what the h*ell is ADB please have a look at my first post of the ADB Commands — Part I ,it is a good place to start 😃 .

During the Android development many times you have to fill forms or open certain links in the browser, basically tasks that involves you to type something using the virtual keyboard.

Some of these…

I’m back again with the final post of ADB Commands. In this final post, I will show ‘extra’ commands, that can be like a ‘Swiss army knife’ and save you hours of despair (at least I hope so 😃).

All the previous commands presented are very useful but the dumpsys is probably at the 🔝.

dumpsys allows you to get diagnostic output for all system services running on a connected device. Most of the time the output is more verbose than you may want, so you should use the command line options of dumpsys to get output for only the…

In ADB Commands — Part I i made a small intro to the adb commands. In this part i will show some more commands available, some off them very useful for debugging situations .

  • List all the installed packages in the device
adb shell pm list packages

The Android Debug Bridge also known as adb is powerful tool for the developers.

Besides being the basic tool to deploy the Android applications that you develop it also provides several commands that can be very useful.

Here are some of those commands.

  • If you want to see how many devices/emulators are attached you can do it with:
adb devices
  • Send a file to the device:
adb push /home/myhome/image.png /sdcard/Download/

The first argument after the push command is the local path of the file that is in your computer and that you want to send. …

Many people does not know but it is possible to enable ADB over WiFi .

Connect you’r Android device to you’r computer.
Also make sure you already have the android-sdk.
Open your terminal and type:

cd android-sdk-path/platform-tools/
adb tcpip 5555

After that you should receive the following output:

restarting in TCP mode port: 5555

Go to your terminal again and type:

adb connect <Device IP adress>


adb connect

After that you should receive the following output:

connected to

To get back to USB mode again, just type:

adb usb

After that you should receive the following output:

restarting in USB mode

Originally published at on January , 2014.

Sometimes when you have a WebView and you are loading a page (that you don’t have control) there maybe some content that you want to remove or change the aspect.
In these situations, when you have no control over the page you are loading, inject javascript to manipulate HTML elements could be one good option. let’s see how to do it.

Assuming that you already have your WebView first of all, we must tell the WebView to enable the JavaScript execution


Then we must set the WebViewClient in order to receive the onPageFinished event.

webView.setWebViewClient(new WebViewClient(){…

Filipe Batista

[Android Developer 💻] [Japan addicted🇯🇵] [Music enthusiast 🎵🎶][Traveler 🛩 and coffee ☕ person]

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store