Back to project page PreCTS.
The source code is released under:
Apache License
If you think the Android project PreCTS listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.androidhuman.prectsandroidsettingsapp; /* w w w. j a v a 2 s .c om*/ import android.app.Activity; import android.content.ContentResolver; import android.os.Bundle; import android.widget.TextView; public class MainActivity extends Activity { TextView tvMsg; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); tvMsg = (TextView)findViewById(R.id.tv_message); try{ ContentResolver.setMasterSyncAutomatically(false); tvMsg.setText(R.string.msg_disabled_sync_settings); }catch(Exception e){ tvMsg.setText(e.getMessage()); } new FinishHandler().setActivity(this).sendEmptyMessageDelayed(0, 3000); } }