This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Java in General and the fly likes Forms Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Forms" Watch "Forms" New topic
Author

Forms

Vihanga Raj
Greenhorn

Joined: Feb 03, 2013
Posts: 7

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


Vihanga R.
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 8049
    
  22

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.

Isn't it funny how there's always time and money enough to do it WRONG?
Articles by Winston can be found here
Vihanga Raj
Greenhorn

Joined: Feb 03, 2013
Posts: 7

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

Joined: Jul 19, 2011
Posts: 175

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.


Please correct my English.
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 8049
    
  22

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Forms