Latest

    • Earn Money Online By Monetizing YouTube Videos

      You can earn money by enable monetization on your youtube videos. Its very simple and easy , so lets get started. Note : You must be from US region or from a region where youtube allow Video monetizaiton. In Asia , Youtube does not allow some countries to monetize their videos. Steps for Evaluation Step 1 : First of all you need to create a Google Account. So I assume that you already have a Google account. Step 2 : You need a video for monetization too. Note : The video you would have for monetization must not contain any violated contents or copyright claims. Otherwise , Youtube would reject your appeal for monetization. Plus you will not draw fake traffic to your monetized video as Youtube constantly crawl your videos. Step 3 : After creating your google account, open  www.youtube.com . Step 4 : Now click on "My Channel" option at the left side of the page. Step 5 : Now you will be confronted by this screen Step 6 : Now click on "Video Manager" option as highlighted in below image Step 7 : Now you will be confronted with below screen. Just click on the "Channel" option on the left side Step 8 : Now a list would open. Select "monetization" option from the list like below Step 9 : Now click on "Enable Monitization" button. In below screenshot , my channel's monitization is already enabled so you have to enable your own. When you click on "Enable Monitization" button , you will be directed to another screen asking for your google account or google adsense account. You must have either of the above accounts. And then give your login credentials and google will review your monitization process. After few days , google will send you message regarding approval or disapproval for your videos monitization. Note  : Remember , you must be from US region or from the region where Google allows monitization. Read Youtube terms and condition for Monitization from here  Youtube Monitization . Step 10 : After your monitization is approved and enabled. Upload the video to youtube and after that enable monitization on each single video you have uploaded. Go Back to "Video Manager" option located on the left side. Select your video and click on "Edit" button like below Step 11 :  Click on the "monitization" button like below Step 12 : Now check "Display ads" option and monitization will be enabled on your video. Now you are able to earn money from the ads displayed on your videos via Google adsense. Note : You can visit Google adsense terms and policies for displaying ads on your videos and regarding earning money via ads.

Powered by Blogger.

Android Intents -Explicit – Tutorial



Android Intents -Explicit – Tutorial

Android intents are very important and they are used to trigger an event or action. For example calling one activity from another activity or its attributes just like in below screenshots…

____________________________________________


layout_thumb[1]

____________________________________________


In above screenshot when you click on button “Select Color ” then activity named as “colorSelectorActivity” is called. A person would select its specified color and when he clicks on “ok” button in “colorSelectorActivity” activity then he will be directed back to the main Activity. This is all done by Intents. There are two types of Intents named as Explicit and Implicit Intents. In this tut I am gonna show you Explicit Intent example. So lets get started …

 Steps for Evaluation

____________________________________________


Step 1 :  Firs of all create a  new Android project with a  name called “ExplicitIntents“.
Step 2 :  In your default package create another activity named as “Activity_2“.
Step 3 :  Rename your “MainActivity” to “Activity_1“.
Step 4 : Now rename your “activity_main.xml” to “activity_1.xml“. and create another xml layout with a name “activity_2.xml.
Step 5 :  Now create a button inside your main XML layout with a name “Go to Second Activity“.
Step 6 :  Now give an id to the button like “navigate“.
Step 7  : Now paste the following code inside your “Activity_1.java” file.

____________________________________________


 Code

____________________________________________

package com.baidar.explicitintent;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;

public class Activity_1 extends Activity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_1);
//when a user would click on the button , intent would trigger the second activity
Button button = (Button) findViewById(R.id.navigate);
button.setOnClickListener(new OnClickListener() {

@Override
public void onClick(View arg0) {
//Transition from activity 1 to activity 2
Intent intent = new Intent(Activity_1.this, Activity_2.class);
startActivity(intent);

}
});
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}

}

____________________________________________


Step 8 : Now add some text to the “activity_2.xml” file by dragging a “TextView” view to the layout. You can write “Welcome ! this is the second activity” or you can write something else.

____________________________________________


 Download the Project

____________________________________________


black-and-white-download-now-button

____________________________________________

- Reference : You can find the same blog at  http://baidartuts.altervista.org/android-intents-tutorial/#sthash.6gcn2bn2.dpuf
  • Blogger Comments
  • Facebook Comments
Item Reviewed: Android Intents -Explicit – Tutorial Description: Rating: 5 Reviewed By: Unknown