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).
|
textview.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { } }); |
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 →
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. Make a video with this editing software at makewebvideo.com/en/make/3d-text-intro-video, and then link your video, which’ll lead the user to Youtube.
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.
- Get SHA-1 fingerprint from your machine using java Keytool. Execute following command in your cmd/terminal.
On Windows
|
keytool -list -v -keystore "%USERPROFILE%.androiddebug.keystore" -alias androiddebugkey -storepass android -keypass android |
On Linux/MAC
|
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android |
Continue Reading →