• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Simple Notepad Application for Android OS


Commit MetaInfo

Revision8e870967117adc3bb6370a1a5048fd77a8a79492 (tree)
Zeit2012-09-12 11:36:40
AutorMasahiko, SAWAI <say@user...>
CommiterMasahiko, SAWAI

Log Message

notepad-app-level-11 にデバッグ用画面を実装

Ändern Zusammenfassung

Diff

--- a/ToDo.txt
+++ b/ToDo.txt
@@ -20,7 +20,10 @@ Title, Content, Focus
2020 #############################
2121 !! notepad-app
2222
23+* ノート一覧の ListView でファーストスクロールを有効化
24+
2325 * デバッグ用機能
26+** デバッグ用画面を設定画面内に作成
2427 ** データ大量作成機能
2528
2629 * NoteDetailActivity のリファクタリング
--- a/notepad-app-level-11/AndroidManifest.xml
+++ b/notepad-app-level-11/AndroidManifest.xml
@@ -182,6 +182,10 @@
182182 android:label="@string/about_app_title"
183183 />
184184
185+ <!-- Activity : Debug -->
186+ <activity android:name=".debug.DebugFunctionActivity" />
187+ <service android:name=".debug.DummyNoteCreateService" />
188+
185189 <!-- Service : data initialize service -->
186190 <service android:name=".template.NoteTemplateInitializer" />
187191
--- a/notepad-app-level-11/res/xml/notepad_preference.xml
+++ b/notepad-app-level-11/res/xml/notepad_preference.xml
@@ -93,19 +93,19 @@
9393 </PreferenceCategory>
9494
9595
96+ <PreferenceCategory android:title="Debug" >
97+ <PreferenceScreen
98+ android:title="Debug"
99+ android:summary="Debug functions"
100+ >
101+ <intent
102+ android:action="android.intent.action.MAIN"
103+ android:targetPackage="org.routine_work.notepad"
104+ android:targetClass="org.routine_work.notepad.debug.DebugFunctionActivity"
105+ />
106+ </PreferenceScreen>
107+ </PreferenceCategory>
96108 <!--
97- <PreferenceCategory android:title="Debug" >
98- <PreferenceScreen
99- android:title="Debug"
100- android:summary="Debug functions"
101- >
102- <intent
103- android:action="android.intent.action.MAIN"
104- android:targetPackage="org.routine_work.android.battery_logger"
105- android:targetClass="org.routine_work.android.battery_logger.DebugActivity"
106- />
107- </PreferenceScreen>
108- </PreferenceCategory>
109109 -->
110110
111111 </PreferenceScreen>
--- a/notepad-app-level-11/src/org/routine_work/notepad/debug/DebugFunctionActivity.java
+++ b/notepad-app-level-11/src/org/routine_work/notepad/debug/DebugFunctionActivity.java
@@ -44,7 +44,7 @@ public class DebugFunctionActivity extends ListActivity
4444 private static final int ITEM_ID_CREATE_NOTES = 0;
4545 private static final String[] FUNCTION_NAMES =
4646 {
47- "Create Notes",
47+ "Create Dummy Notes",
4848 };
4949
5050 @Override
--- a/notepad-app/res/xml/notepad_preference.xml
+++ b/notepad-app/res/xml/notepad_preference.xml
@@ -1,19 +1,6 @@
11 <?xml version="1.0" encoding="UTF-8"?>
22 <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >
33
4- <!--
5- <PreferenceCategory android:title="@string/dashboard_category_title" >
6- <ListPreference
7- android:key="@string/dashboard_view_mode_key"
8- android:defaultValue="@string/dashboard_view_mode_default_value"
9- android:title="@string/dashboard_view_mode"
10- android:dialogTitle="@string/dashboard_view_mode_title"
11- android:entries="@array/dashboard_view_mode_entries"
12- android:entryValues="@array/dashboard_view_mode_values"
13- />
14- </PreferenceCategory>
15- -->
16-
174 <PreferenceCategory android:title="@string/theme_category_title" >
185 <ListPreference
196 android:key="@string/notepad_theme_key"