private void showUpgradePopup() { AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setMessage(OrgUtils.getStringFromResource(R.raw.upgrade, this)); builder.setCancelable(false); builder.setPositiveButton( R.string.ok, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { dialog.dismiss(); } }); builder.create().show(); }
@Override protected void onCreate(Bundle savedInstanceState) { OrgUtils.setTheme(this); super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_PROGRESS); requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); setContentView(R.layout.outline); Intent intent = getIntent(); node_id = intent.getLongExtra(NODE_ID, -1); if (this.node_id == -1) displayNewUserDialogs(); setupList(); this.syncReceiver = new SynchServiceReceiver(); registerReceiver(this.syncReceiver, new IntentFilter(Synchronizer.SYNC_UPDATE)); refreshDisplay(); }
@Override public boolean isConnectable() { return OrgUtils.isNetworkOnline(context); }