Title / Description
Code private void setSettingValue() { runOnUiThread(new Runncable() { @Override public void run() { reloadAllText(); mAdapter = new SettingBaseListAdapter(getApplicationContext(), listSetting, listLanguage, listOrder); listView.setAdapter(mAdapter); } }); } @Override public void onClick(View v) { if(v == buttonBack) finish(); } @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { switch (position) { case 0: case 1: case 2: Intent intent = new Intent(this, UnitsCurrency.class); intent.putExtra("requestCode", position); startActivityForResult(intent, position); break; case 3: Intent intentDay = new Intent(this, ExpenseDayOfMonthEndActivity.class); intentDay.putExtra("requestCode", position); startActivityForResult(intentDay, position); break; case 4: case 5: oPenUrl(position); break; case 6: Intent about = new Intent(this, About.class); startActivity(about); break; case 7: Intent sendEmail = new Intent(this, FeedbackAndContact.class); sendEmail.putExtra("requestCode", position); startActivityForResult(sendEmail, position); break; } }
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code