Quantcast
Channel: BTSoru.com - Bilisim ve Yazilim Teknolojileri Soru/Cevap Platformu - latest questions
Viewing all articles
Browse latest Browse all 4270

Togglle Button içinde servis tanımlama sorunu nasıl aşılır?

$
0
0

Merhaba bir toggle button içinde service başlatmak istiyorum ancak bana ; " The constructor Intent(new CompoundButton.OnCheckedChangeListener(){}, Class<dinlemeservisi>) is undefined" şeklinde bir hata veriyor.

ToggleButton play_Stop = (ToggleButton) findViewById(R.id.tglBtnPlayStop);

play_Stop.setOnCheckedChangeListener(new OnCheckedChangeListener() {

@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {

    if (isChecked) {
        Toast.makeText(getApplicationContext(), "Başladı", 1500).show();
        Log.d(Sinif, "Başladı");
        startService(new Intent(this,DinlemeServisi.class));
        } else {

        }

    }
    });

Viewing all articles
Browse latest Browse all 4270

Trending Articles


Mide ağrısı için


Alessandra Torre - Karanlık Yalanlar


Şekilli süslü hazır floodlar


Flatcast Güneş ve Ay Flood Şekilleri


Gone Are the Days (2018) (ENG) (1080p)


Yildiz yükseltme


yc82


!!!!!!!!!! Amın !!!!!!!!!


Celp At Nalı (Sahih Tılsım)


SCCM 2012 Client Installation issue