Saturday, February 4, 2012

[android-developers] imageview changing

package sample.deneme;

import java.util.Timer;
import java.util.TimerTask;
import android.content.Context;
import android.widget.ImageView;

public class imageS extends ImageView  {

private Timer _destroy;

public imageS(Context context) {
super(context);
// TODO Auto-generated constructor stub

_destroy = new Timer();

_destroy.schedule(new TimerTask() {

@Override
public void run() {
// TODO Auto-generated method stub
setBackgroundResource(R.drawable.ic_launcher);
}
}, 5000, 5000);
}
}

i use this cod but not changing. What is wrong?

--
Salih SELAMETOĞLU
Teknopalas RFID Yazılım Çözümleri / Yazılım Uzman Yardımcısı
İstanbul Üni. Bil. Müh. 4. Sınıf
http://www.linkgizle.com
http://selametoglu.blogspot.com/
http://slideme.org/application/light-show (first application)

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment