I have an array of string which contain image URL's and Text which i am showing in image view with text. here i want when user click imageview i want to get that image and will show in android activity.How can I do that
code:-
ImageView m_DealImage;String[] dealText = {"Install Medlife", "Install Voonik", "Install IndigoRummy","Install Chai point"};
String[] arr = new String[]{
"http://media.vcommission.com/brand/files/vcm/3012/Medlife_CPS_MLVC2_336X280.jpg",
"http://media.vcommission.com/brand/files/vcm/3156/Voonik_CPS_Half_Price_Fashion_Sale_728x90.jpg",
"http://media.vcommission.com/brand/files/vcm/3144/IndigoRummy_CPA_starter_banus_100_728x90.gif"};
/*First Step*/
handler = new Handler();
Runnable runnable = new Runnable() {
int i =0;
@Override
public void run() {
Picasso.with(getApplicationContext()).load(arr[i]).into(m_DealImage);
m_ToolTip.setVisibility(View.VISIBLE);
m_DealText.setText(dealText[i]);
i++;
if (i > arr.length - 1) {
i = 0;
}
m_DealImage.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
// Didn't know where to go
}
});
handler.postDelayed(this, 6000);
}
};
handler.postDelayed(runnable, 6000);