コード例 #1
0
  @Override
  protected void onCreate(Bundle state) {
    overridePendingTransition(R.anim.slide_from_right, R.anim.fade_scale_out);
    dynamicTheme.onCreate(this);
    dynamicLanguage.onCreate(this);
    super.onCreate(state);

    setContentView(R.layout.conversation_activity);
    getSupportActionBar().setDisplayHomeAsUpEnabled(true);

    initializeReceivers();
    initializeResources();
    initializeDraft();
    initializeTitleBar();
  }
コード例 #2
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    dynamicTheme.onCreate(this);
    dynamicLanguage.onCreate(this);
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    System.out.println("We started!!");

    this.masterSecret = getIntent().getParcelableExtra("master_secret");

    //        new Thread(new Runnable() {
    //            public void run() {
    //                Client client = new Client();
    //                client.start();
    ////                }
    //            }
    //        }).start();
  }
コード例 #3
0
  @Override
  protected void onResume() {
    super.onResume();
    dynamicTheme.onResume(this);
    dynamicLanguage.onResume(this);

    initializeSecurity();
    initializeScreenshotSecurity();
    initializeTitleBar();
    initializeEnabledCheck();
    initializeMmsEnabledCheck();
    initializeIme();
    initializeCharactersLeftViewEnabledCheck();
    calculateCharactersRemaining();

    MessageNotifier.setVisibleThread(threadId);
    markThreadAsRead();
  }
コード例 #4
0
  @Override
  protected void onResume() {
    super.onResume();
    dynamicTheme.onResume(this);
    dynamicLanguage.onResume(this);

    //        if(clientThread == null) {
    //            clientThread = new Thread(new Runnable() {
    //                public void run() {
    //                    Client client = new Client(getFilesDir().getPath()+"/statefile",
    //                            "RX4SBLINCG6TUCR7FJYMNNSA33QAPVJAEYA5ROT6QG4IPX7FXE7Q",
    // "127.0.0.1:9050");
    //                    client.start();
    //                    Client client = Client.getInstance();
    Client.getInstance(); // .start(getFilesDir().getPath()+"/statefile", getApplicationContext());
    //                }
    //            });
    //            clientThread.start();
    //        }
  }