• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Forms

 
Greenhorn
Posts: 16
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 10780
71
Hibernate Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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??
 
Ranch Hand
Posts: 177
Hibernate Python Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 10780
71
Hibernate Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I figured it out... Thanks a lot
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic