probably, i was unclear. I should move the pictures from my gallery horizontally every 5 sec. I use g.postDelayed(new Runnable() {
@Override public void run() { } }, 300); but I don't know how to move these pictures in run() Can you help me, please? On 15 июн, 16:06, Kumar Bibek <coomar....@gmail.com> wrote: > Threads: Loop(with sleep): Handler: Change images. :) > > On Jun 15, 5:34 pm, "nika-...@ya.ru" <nika-...@ya.ru> wrote: > > > > > > > > > I have to change pictures from my gallery after every 5 seconds. Can > > anyone tell me how to do that? Here is a part of my code: > > > private final Integer[] mImage = { R.drawable.picture, > > R.drawable.picture_1 }; > > > @Override > > public void onCreate(Bundle savedInstanceState) { > > > super.onCreate(savedInstanceState); > > setContentView(R.layout.gallery); > > > final Gallery g = (Gallery) findViewById(R.id.Gallery01); > > g.setAdapter(new ImageAdapter(this)); > > > }` -- 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