CLICK HERE TO EARN MONEY FREE

Wednesday, November 28, 2012

Intent


 Intents are used as a data-passing or navigation that
works both within application or between applications

New Page Settings

New Page Settings


New Page Settings

package com.nav6.intent;

public class page2 extends Activity{

}

New Page Settings


New Page Settings


New Page Settings

public class page2 extends Activity{

       @Override
       protected void onCreate(Bundle savedInstanceState) {
               // TODO Auto-generated method stub
               super.onCreate(savedInstanceState);
       }

}

New Page Settings


New Page Settings


New Page Settings

public class page2 extends Activity{

       @Override
       protected void onCreate(Bundle savedInstanceState) {
               // TODO Auto-generated method stub
               super.onCreate(savedInstanceState);

   setContentView(R.layout.page2);
       }

}

Intent Sample Code
Intent i = new Intent(IntentActivity.this,page2.class);
startActivity(i);



and you just need to discribe in android mainfest as activtiy class name

0 comments:

Post a Comment

 

TEKONOLOGY Copyright © 2011 -- Template created by TEKONOLOGY -- Powered by Blogger