• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Forms

 
Vihanga Raj
Greenhorn
Posts: 16
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OnClickListener clickListener=new OnClickListener() {

@Override
public void onClick(DialogInterface arg0, int arg1) {
import abc;
}
};





I don't know what's wrong but I want to go to another form when I click on a biutton..please help me with this
 
Winston Gutkowski
Bartender
Pie
Posts: 10259
59
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vihanga Raj wrote:I don't know what's wrong

Surely you got an error message when you tried to compile that.

What was it?

but I want to go to another form when I click on a biutton...

Well that's not the way to do it. What did you imagine that code would do?

Winston

PS: Welcome to JavaRanch.
 
Vihanga Raj
Greenhorn
Posts: 16
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Winston Gutkowski wrote:
Vihanga Raj wrote:I don't know what's wrong

Surely you got an error message when you tried to compile that.

What was it?

but I want to go to another form when I click on a biutton...

Well that's not the way to do it. What did you imagine that code would do?

Winston

PS: Welcome to JavaRanch.

What is the way to do it??
 
Manuel Petermann
Ranch Hand
Posts: 177
Hibernate Linux Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please do yourself a favour and do some tutorials in plain java before jumping to android. At least I think this is for android.
You are helping no one by just typing words into your editor.
I have never programmed for the android jvm before but i would say that "import abc;" is never a valid statement in that scope.
 
Winston Gutkowski
Bartender
Pie
Posts: 10259
59
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vihanga Raj wrote:What is the way to do it??

Vihanga,

Please EaseUp. This site is NotACodeMill, and we are not in the habit of simply handing out answers. We are also all volunteers here.

I suggest you read the HowToAskQuestionsOnJavaRanch page and come back when you have a specific question.

Winston
 
Vihanga Raj
Greenhorn
Posts: 16
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I figured it out... Thanks a lot
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic