我正在尝试从select A.Name, A.ID, B.kid_id, B.Entry_dt
FROM Table1 A
LEFT JOIN Table2 B ON A.ID= B.Kid_id
调用此类。我尝试了AlertDialog
,但我总是得到Intent
。
调用Switchoff类的代码:
exception
我要呼叫的班级:
Intent intent = new Intent(Premium.this, Switchoff.class );
startActivity( intent );
}
错误:
public class Switchoff extends AppCompatPreferenceActivity{
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
final SwitchPreference vibrateSwitch = (SwitchPreference) findPreference( getString( R.string.pref_vibrate_switch_enabled ) );
vibrateSwitch.setChecked(false);
}
PS:-我需要同时保留findPreference()和onCreate()方法 -这两个类(Premium.class,Switchoff.class)都注册在清单文件中
感谢您的帮助!