Part of TextView clickable

Today we will discuss about how can we set click listener for some part of your TextView.

As you all know we can set click listener on textview like we use to set in other controls(Button, ImageView etc).

But what if i want listener for some text only. For example “This is demo android program”, now i want click listener just for “android” word. Yes this is possible with using ClickableSpan.
Continue Reading


YouTube Integration with Android Studio

In todays world we are seeing lot of applications having video streaming or demo videos which will give instruction about how your application works. Storing video inside your project will increase apk size, instead of that we can store video on Youtube and stream it.

Today we will learn how to stream youtube video in your android app.

first step we need to do is obtaining Google API Key, follow this steps to obtain Google API Key.

  1. Get SHA-1 fingerprint from your machine using java Keytool. Execute following command in your cmd/terminal.

On Windows

On Linux/MAC

Continue Reading