public static final int cancelButton=0x7f050006;
public static final int closeButton=0x7f050007;
public static final int deleteButton=0x7f050005;
+ public static final int dialogErrorTitle=0x7f050021;
+ public static final int dialogSystemError=0x7f050022;
public static final int headerEditTitle=0x7f050019;
public static final int headerExplainText1=0x7f05001a;
public static final int headerExplainText2=0x7f05001b;
public static final int headerExplainText3=0x7f05001c;
public static final int headerExplainText4=0x7f05001d;
public static final int mainMenuSetting=0x7f050008;
- public static final int mainTitle=0x7f050021;
+ public static final int mainTitle=0x7f050023;
public static final int noButton=0x7f050003;
public static final int noteListGetting=0x7f050018;
public static final int selectListConfirmDeleteMsg=0x7f05000b;
public static final int selectListConfirmNoteMsg=0x7f05000c;
public static final int selectListConfirmTitle=0x7f05000a;
public static final int selectListTitle=0x7f050009;
- public static final int selectTitle=0x7f050022;
+ public static final int selectTitle=0x7f050024;
public static final int sendButton=0x7f050001;
public static final int settingConfirmNoteMsg=0x7f050011;
public static final int settingConfirmTitle=0x7f05000f;
<string name="toastFailedToWrite">書き込みに失敗しました</string>
<string name="toastNoteDoesNotExist">ノートがありません</string>
<string name="toastFailedToGetList">リストの取得に失敗しました</string>
+
+ <string name="dialogErrorTitle">エラー</string>
+ <string name="dialogSystemError">システムエラーが発生しました</string>
</resources>
<string name="toastFailedToWrite">Failed to write.</string>
<string name="toastNoteDoesNotExist">Note does not exist.</string>
<string name="toastFailedToGetList">Failed to get list.</string>
+
+ <string name="dialogErrorTitle">Error</string>
+ <string name="dialogSystemError">System error has occurred.</string>
</resources>
updateText();
}
- // @Override
- // protected void onResume() {
- // super.onResume();
- // try {
- // InputMethodManager imm =
- // (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
- // imm.showSoftInput(editText, InputMethodManager.SHOW_IMPLICIT);
- // editText.setFocusable(true);
- // }
- // catch (Exception e){
- // // TODO
- // e.printStackTrace();
- // }
- // }
-
private void toggleButtonOnCheckedChanged(CompoundButton buttonView,
boolean isChecked) {
if (checkFlag) {
intent = new Intent(this, (Class<?>) SettingActivity.class);
startActivityForResult(intent, 0);
break;
- // case Menu.FIRST + 1:
- // intent = new Intent(this, (Class<?>) UserPasswordActivity.class);
- // startActivity(intent);
- // break;
default:
break;
}
} catch (Exception e) {
- // TODO
- // terminate(e);
+ terminate(e);
}
return super.onOptionsItemSelected(item);
}
private void sendButtonOnClick() {
try {
- // NoteList noteList = util.getNoteList();
- // List<Note> list = noteList.getNotes();
- // Note note = list.get(0);
-
Note note = noteList.get(selectedIndex);
String guid = note.getGuid();
editText.setText("");
} catch (RuntimeException e) {
- Debug.d(this, null, e); // TODO
+ Debug.d(this, null, e);
throw e;
} catch (Exception e) {
+ // TODO
e.printStackTrace();
}
}
import android.content.Context;
public class Initialize {
- private static boolean isInit = true; // TODO false\82É\82È\82Á\82Ä\82¢\82½\81B\82È\82¼\81B
+ private static boolean isInit = true; // false\82É\82È\82Á\82Ä\82¢\82½\81B\82È\82¼\81B
public static void initialize(Context context){
if (!isInit){
NoteListItem item;
for (com.evernote.edam.type.Note note : notes) {
long l = note.getUpdated();
- // long l = note.getCreated(); // TODO \83\\81[\83g\8f\87\82Í\81A\8dX\90V\93ú?
+ // long l = note.getCreated(); // \83\\81[\83g\8f\87\82Í\81A\8dX\90V\93ú
String title = DateUtils.formatDateTime(this, l,
DateUtils.FORMAT_SHOW_YEAR | DateUtils.FORMAT_SHOW_DATE);
if (!title.equals(oldTitle)) {
import android.view.WindowManager;\r
\r
import com.yuji.em.Initialize;\r
+import com.yuji.em.R;\r
\r
public class BaseActivity extends Activity {\r
@Override\r
if (t != null){\r
Debug.d(target, null, t);\r
}\r
- // TODO\r
-// showDialog(getString(R.string.system_error_title_msg),\r
-// getString(R.string.system_error_msg));\r
+ showDialog(getString(R.string.dialogErrorTitle),\r
+ getString(R.string.dialogSystemError));\r
}\r
\r
public void terminate(Throwable t){\r
}\r
\r
public static void d(Object target, String msg, Throwable t){\r
- // TODO\r
// if (t != null){\r
// l(t.getMessage());\r
// }\r
}
String content = note.getContent();
- // TODO\81@#27970
+ // #27970
// \8c©\82Â\82©\82ç\82È\82¢\8fê\8d\87
String endTag = "</en-note>";
int pos = content.indexOf(endTag);
userStoreTrans);
UserStore.Client userStore = new UserStore.Client(userStoreProt);
- // TODO
+ // #27612
// http://www.antun.net/tips/api/evernote.html
// expiredTime=time.time()+(authResult.expiration/1000.0-authResult.currentTime/1000.0)
// # expiredTime<time.time() \82È\82ç\94F\8fØ\82µ\92¼\82µ\82Ä\81AauthenticationToken
Context.CONTEXT_RESTRICTED);\r
pref = ctxt.getSharedPreferences("EverMemoActivity",\r
Context.MODE_WORLD_READABLE\r
- | Context.MODE_WORLD_WRITEABLE); // TODO \83\82\81[\83h\r
+ | Context.MODE_WORLD_WRITEABLE);\r
} catch (NameNotFoundException e) {\r
// TODO\r
// Debug.l(e.getMessage());\r