hii,
can anybody please guide me how to write the code for opening the new
image after clicking the imagebutton in android.
I have tried something like this:
package com.example.imageButton;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;
public class imageButton extends Activity {
private static ImageButton seqIBtn;//these are the three
imageButton
private static ImageButton vidIBtn;
private static ImageButton infoIBtn;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
seqIBtn = (ImageButton) findViewById(R.id.btnSequence);
vidIBtn = (ImageButton) findViewById(R.id.btnVideo);
infoIBtn = (ImageButton) findViewById(R.id.btnInfo);
}
seqIBtn.OnClickListener(new ImageButton.OnClickListener() {
public void onClick(View v) {
//1.how to code to open new image after clicking imagebutton
seqIBtn
//2.how to code to open video after clicking
imagebutton vidIBtn
//3.how to code to open another image after clicking
imagebutton infoIBtn
}
}
});
}
please guide i am very new in android/java .thankss
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en