Hi in the below code am selecting the mColorTemp seekbar .am checking if selecting colortemp then control should move to next activity. But it is not working
mColorTemp = (SeekBar) findViewById(R.id.intensity1);
mScheduler.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
boolean swichAction=false;
if(mColorTemp.isSelected()==true){
swichAction=true;
Intent intent = new Intent(mContext, SchedulerActivity.class);
intent.putExtra("swichAction",swichAction);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
startActivity(intent);
}
}
});
Aucun commentaire:
Enregistrer un commentaire