On Wed, Nov 17, 2010 at 12:37 AM, Alok Upadhyay <maddy.luck...@gmail.com>wrote:

> Problem:i am able to load images in next button click but as i click on
> back button no image got loaded.
>

Look at the code you posted:

case R.id.next:
>        Log.i("Tag","tag");
>        if(imageCounter < 25)//if(imageCounter < arrayList.length())
>        {
>            imageCounter++;
>            imagePath = imageList[imageCounter];
>        }
>        break;
>    case R.id.back:
>        if(imageCounter > 0)
>        {
>            imagePath = imageList[imageCounter];
>        }
>        break;
>


Now ask yourself: "What am I doing in case R.id.next that I'm not doing in
case R.id.back?"

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

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

Reply via email to