PROBLEM IN NAVIGATION

Put your problem here if it does not fit any of the other categories.

PROBLEM IN NAVIGATION

Postby rockey_syntel » Fri Jun 25, 2010 11:18 am

HI,
I M FRESHER IN ANDROID APPLICATION.
I M FACING PROBLEM IN LINKING OF PAGE.
I HAVE SUCCESSFULLY LINK THE FIRST PAGE WITH SECOND BUT UNABLE TO LINK FROM SECOND TO THIRD.
PLEASE HELP ME



REGARDS
ROCKEY
rockey_syntel
Junior Developer
Junior Developer
 
Posts: 18
Joined: Fri Jun 25, 2010 11:12 am

Top

Re: PROBLEM IN NAVIGATION

Postby nicholas.hauschild » Sat Jun 26, 2010 4:14 am

Why caps lock??? Also, are you referring to not being able to go to the third activity??? Post some code or a stacktrace and we will see if we can help.
nicholas.hauschild
Master Developer
Master Developer
 
Posts: 310
Joined: Fri Dec 04, 2009 4:50 am

Re: PROBLEM IN NAVIGATION

Postby rockey_syntel » Sat Jun 26, 2010 5:18 am

ya i m able to go to the third activity.
public class MyVIS extends Activity implements OnClickListener {
/** Called when the activity is first created. */
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Button button = (Button)findViewById(R.id.Button01);
button.setOnClickListener((OnClickListener) this);





}

@Override
public void onClick(View v) {
setContentView(R.layout.form);


}




}
this is my first page code and button click move to second page .but from second i m writing the same code only changing setcontentview but it is not navigating
rockey_syntel
Junior Developer
Junior Developer
 
Posts: 18
Joined: Fri Jun 25, 2010 11:12 am

Re: PROBLEM IN NAVIGATION

Postby nicholas.hauschild » Sat Jun 26, 2010 6:32 am

I will recommend reading this page.

http://developer.android.com/guide/topi ... ntals.html

There is a lot of information there, but it is well worth it to read and know. It will make developing in Android a lot easier. Please post with some questions after you read that.

Good Luck!
-Nick
nicholas.hauschild
Master Developer
Master Developer
 
Posts: 310
Joined: Fri Dec 04, 2009 4:50 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 14 guests