Hi,
when you are inside OnClickListener, use

Intent i = new Inent(ClassName.this, NoteEdit.class);

If you simple gave "this", the context is button, not class....





On Wed, Apr 22, 2009 at 11:37 AM, jeondaeh...@gmail.com <
jeondaeh...@gmail.com> wrote:

>
> How to use Intent funtion in OnClickListener()...
>
>
>
> ImageButton button = (ImageButton) findViewById(R.id.appointment);
>        button.setOnClickListener(new OnClickListener() {
>                public void onClick(View v) {
> Intent i = new Intent(this, NoteEdit.class);
> startActivityForResult(i, ACTIVITY_CREATE);
> >
>


-- 
Thanks
Nithin
smartandroidians.blogspot.com
+919739146701

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"android-framework" group.
To post to this group, send email to android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to