@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
if(Tb.isChecked()){
android.appwidget.AppWidgetManager.ACTION_APPWIDGET_UPDATE.equals("120000");
}else{
android.appwidget.AppWidgetManager.ACTION_APPWIDGET_UPDATE.equals("300000");
}
}
I'm developing a widget which has the option for getting updates every 2 min and 30 min. so I made a toggle button to switch between time. The above block of code I'm using to enable the Toggle button known as Tb. The app is not showing errors, but it doesn't seem to be working. Can somebody check my code for errors.