problem in calling the intent

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

problem in calling the intent

Postby ekambresh » Fri Apr 04, 2008 8:06 am

hi all,in my project i have 10-15 screen in which i have call about class which is comm to all i ahe used the following code but i am getting null pointer exception,can any one guide me how to do it.....


public boolean onOptionsItemSelected(Menu.Item item){
switch(item.getId()){
case 0:
//this.finish();
ComponentName componentName=getCallingActivity();

Intent intent = new Intent();
intent.setClass(about.this,componentName.getClassName().getClass());
Log.i("error","activity");
startActivity(intent);
return true;
}
ekambresh
ekambresh
Junior Developer
Junior Developer
 
Posts: 22
Joined: Fri Feb 08, 2008 8:54 am
Location: Bangalore

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 17 guests