• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签

Frequently used words (click to add to your profile)

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

はてなハイク・キーワードの検索と入力アプリ


Commit MetaInfo

修订版dbce3d9c048cc67b7a266d159f97e19720ce0d46 (tree)
时间2012-09-09 21:24:11
作者Kodakana <kodakana@linu...>
CommiterKodakana

Log Message

メモリ不足のときの動作改善を目的とする変更。アイコン作成。その他整理。

更改概述

差异

--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -1,7 +1,7 @@
11 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
22 package="org.pulpdust.kigo"
33 android:versionCode="1"
4- android:versionName="0.3"
4+ android:versionName="0.4"
55 android:installLocation="auto" >
66
77 <uses-sdk
--- a/REDME_EN
+++ b/README_EN
@@ -29,7 +29,7 @@ You can change various settings from the Options menu to open the setting screen
2929 * Tap Behavour(Select from the "Open" "send" copy "," what happens when you tap an item)
3030 * Font Size(Select the size of a font in the list)
3131 * Haiku Host(Select the host that you want to use from h.hatena.ne.jp or h.hatena.com)
32- * Send Template
32+ * Mail Template
3333 * To:(During the "Send" operation, the address is automatically placed in the email To field)
3434 * CC:(Same as above)
3535 * BCC:(..)
--- a/bin/AndroidManifest.xml
+++ b/bin/AndroidManifest.xml
@@ -1,7 +1,7 @@
11 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
22 package="org.pulpdust.kigo"
33 android:versionCode="1"
4- android:versionName="0.3"
4+ android:versionName="0.4"
55 android:installLocation="auto" >
66
77 <uses-sdk
Binary files a/bin/Kigo.apk and b/bin/Kigo.apk differ
Binary files a/bin/classes.dex and b/bin/classes.dex differ
Binary files a/bin/classes/org/pulpdust/kigo/KigoActivity$1.class and b/bin/classes/org/pulpdust/kigo/KigoActivity$1.class differ
Binary files a/bin/classes/org/pulpdust/kigo/KigoActivity$2.class and b/bin/classes/org/pulpdust/kigo/KigoActivity$2.class differ
Binary files a/bin/classes/org/pulpdust/kigo/KigoActivity$3.class and b/bin/classes/org/pulpdust/kigo/KigoActivity$3.class differ
Binary files a/bin/classes/org/pulpdust/kigo/KigoActivity$4.class and b/bin/classes/org/pulpdust/kigo/KigoActivity$4.class differ
Binary files a/bin/classes/org/pulpdust/kigo/KigoActivity$5.class and b/bin/classes/org/pulpdust/kigo/KigoActivity$5.class differ
Binary files a/bin/classes/org/pulpdust/kigo/KigoActivity$6.class and b/bin/classes/org/pulpdust/kigo/KigoActivity$6.class differ
Binary files a/bin/classes/org/pulpdust/kigo/KigoActivity.class and b/bin/classes/org/pulpdust/kigo/KigoActivity.class differ
Binary files a/bin/classes/org/pulpdust/kigo/R$string.class and b/bin/classes/org/pulpdust/kigo/R$string.class differ
Binary files a/bin/classes/org/pulpdust/kigo/R$style.class and b/bin/classes/org/pulpdust/kigo/R$style.class differ
Binary files a/bin/classes/org/pulpdust/kigo/R$xml.class and b/bin/classes/org/pulpdust/kigo/R$xml.class differ
Binary files a/bin/res/drawable-hdpi/ic_launcher.png and b/bin/res/drawable-hdpi/ic_launcher.png differ
Binary files a/bin/res/drawable-ldpi/ic_launcher.png and b/bin/res/drawable-ldpi/ic_launcher.png differ
Binary files a/bin/res/drawable-mdpi/ic_launcher.png and b/bin/res/drawable-mdpi/ic_launcher.png differ
Binary files a/bin/res/drawable-xhdpi/ic_launcher.png and b/bin/res/drawable-xhdpi/ic_launcher.png differ
Binary files a/bin/resources.ap_ and b/bin/resources.ap_ differ
--- a/gen/org/pulpdust/kigo/R.java
+++ b/gen/org/pulpdust/kigo/R.java
@@ -50,33 +50,42 @@ public final class R {
5050 public static final int main_context=0x7f090001;
5151 }
5252 public static final class string {
53+ public static final int address=0x7f070003;
54+ public static final int app_author=0x7f070004;
55+ public static final int app_copy=0x7f070006;
56+ public static final int app_lic=0x7f070002;
5357 public static final int app_name=0x7f070000;
54- public static final int bcc=0x7f070010;
55- public static final int button_find=0x7f070004;
56- public static final int cc=0x7f07000f;
57- public static final int err_fail_get=0x7f070007;
58- public static final int err_no_net=0x7f070006;
59- public static final int hello_world=0x7f070001;
60- public static final int hint_word=0x7f070005;
61- public static final int info_entries=0x7f070016;
62- public static final int info_follows=0x7f070017;
63- public static final int info_title=0x7f070018;
64- public static final int info_word=0x7f070019;
65- public static final int menu_copy=0x7f070011;
66- public static final int menu_info=0x7f070013;
67- public static final int menu_open=0x7f070012;
68- public static final int menu_relat=0x7f070014;
69- public static final int menu_send=0x7f070015;
70- public static final int menu_settings=0x7f070002;
71- public static final int on_load=0x7f070008;
72- public static final int pref_cat_app=0x7f070009;
73- public static final int pref_cat_templ=0x7f07000d;
74- public static final int pref_font=0x7f07000a;
75- public static final int pref_host=0x7f07000c;
76- public static final int pref_tap=0x7f07000b;
77- public static final int relateds=0x7f07001a;
78- public static final int title_activity_kigo=0x7f070003;
79- public static final int to=0x7f07000e;
58+ public static final int app_ver=0x7f070001;
59+ public static final int bcc=0x7f070018;
60+ public static final int button_find=0x7f07000c;
61+ public static final int cc=0x7f070017;
62+ public static final int copy=0x7f070005;
63+ public static final int err_fail_get=0x7f07000f;
64+ public static final int err_no_net=0x7f07000e;
65+ public static final int hello_world=0x7f070009;
66+ public static final int hint_word=0x7f07000d;
67+ public static final int info_entries=0x7f07001f;
68+ public static final int info_follows=0x7f070020;
69+ public static final int info_title=0x7f070021;
70+ public static final int info_word=0x7f070022;
71+ public static final int license=0x7f070008;
72+ public static final int menu_copy=0x7f07001a;
73+ public static final int menu_info=0x7f07001c;
74+ public static final int menu_open=0x7f07001b;
75+ public static final int menu_relat=0x7f07001d;
76+ public static final int menu_send=0x7f07001e;
77+ public static final int menu_settings=0x7f07000a;
78+ public static final int on_load=0x7f070010;
79+ public static final int pref_cat_about=0x7f070019;
80+ public static final int pref_cat_app=0x7f070011;
81+ public static final int pref_cat_templ=0x7f070015;
82+ public static final int pref_font=0x7f070012;
83+ public static final int pref_host=0x7f070014;
84+ public static final int pref_tap=0x7f070013;
85+ public static final int relateds=0x7f070023;
86+ public static final int title_activity_kigo=0x7f07000b;
87+ public static final int to=0x7f070016;
88+ public static final int version=0x7f070007;
8089 }
8190 public static final class style {
8291 public static final int AppTheme=0x7f080000;
Binary files a/res/drawable-hdpi/ic_launcher.png and b/res/drawable-hdpi/ic_launcher.png differ
Binary files a/res/drawable-ldpi/ic_launcher.png and b/res/drawable-ldpi/ic_launcher.png differ
Binary files a/res/drawable-mdpi/ic_launcher.png and b/res/drawable-mdpi/ic_launcher.png differ
Binary files a/res/drawable-xhdpi/ic_launcher.png and b/res/drawable-xhdpi/ic_launcher.png differ
--- a/res/values-ja/strings.xml
+++ b/res/values-ja/strings.xml
@@ -1,6 +1,14 @@
11 <resources>
22
33 <string name="app_name">Kigo</string>
4+ <string name="app_ver">0.4</string>
5+ <string name="app_lic">GNU GPL v3</string>
6+ <string name="address">連絡先</string>
7+ <string name="app_author">Kodakana&lt;kodakana.hws@gmail.com&gt;</string>
8+ <string name="copy">製作・著作</string>
9+ <string name="app_copy">&#169; 2012 pulpdust.org/Kodakana</string>
10+ <string name="version">Ver.</string>
11+ <string name="license">許諾条件</string>
412 <string name="hello_world">ほげえええぇぇぇぇぇ</string>
513 <string name="menu_settings">設定</string>
614 <string name="title_activity_kigo">Kigo</string>
@@ -17,6 +25,7 @@
1725 <string name="to">To:</string>
1826 <string name="cc">CC:</string>
1927 <string name="bcc">BCC:</string>
28+ <string name="pref_cat_about">概要</string>
2029 <string name="menu_copy">コピー</string>
2130 <string name="menu_open">開く</string>
2231 <string name="menu_info">情報</string>
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -1,6 +1,14 @@
11 <resources>
22
33 <string name="app_name">Kigo</string>
4+ <string name="app_ver">0.4</string>
5+ <string name="app_lic">GNU GPL v3</string>
6+ <string name="address">Address</string>
7+ <string name="app_author">Kodakana&lt;kodakana.hws@gmail.com&gt;</string>
8+ <string name="copy">Copyright</string>
9+ <string name="app_copy">&#169; 2012 pulpdust.org/Kodakana</string>
10+ <string name="version">Ver.</string>
11+ <string name="license">License</string>
412 <string name="hello_world">Hello world!</string>
513 <string name="menu_settings">Settings</string>
614 <string name="title_activity_kigo">Kigo</string>
@@ -13,10 +21,11 @@
1321 <string name="pref_font">Font Size</string>
1422 <string name="pref_tap">Tap Behavior</string>
1523 <string name="pref_host">Haiku Host</string>
16- <string name="pref_cat_templ">Send To Template</string>
24+ <string name="pref_cat_templ">Mail Template</string>
1725 <string name="to">To:</string>
1826 <string name="cc">CC:</string>
1927 <string name="bcc">BCC:</string>
28+ <string name="pref_cat_about">About</string>
2029 <string name="menu_copy">Copy</string>
2130 <string name="menu_open">Open</string>
2231 <string name="menu_info">Info</string>
--- a/res/xml/prefs.xml
+++ b/res/xml/prefs.xml
@@ -32,5 +32,23 @@
3232 android:key="bcc"
3333 android:title="@string/bcc" />
3434 </PreferenceCategory>
35-
35+ <PreferenceCategory android:title="@string/pref_cat_about">
36+ <Preference
37+ android:selectable="false"
38+ android:title="@string/app_name"
39+ android:summary="@string/app_ver" />
40+ <Preference
41+ android:selectable="false"
42+ android:title="@string/copy"
43+ android:summary="@string/app_copy" />
44+ <Preference
45+ android:selectable="false"
46+ android:title="@string/license"
47+ android:summary="@string/app_lic" />
48+ <Preference
49+ android:selectable="false"
50+ android:title="@string/address"
51+ android:summary="@string/app_author" />
52+ </PreferenceCategory>
53+
3654 </PreferenceScreen>
\ No newline at end of file
--- a/src/org/pulpdust/kigo/KigoActivity.java
+++ b/src/org/pulpdust/kigo/KigoActivity.java
@@ -80,6 +80,7 @@ public class KigoActivity extends Activity {
8080 String[] send_to = new String[1];
8181 String[] cc = new String[1];
8282 String[] bcc = new String[1];
83+ String svdt = "savedata";
8384 int tpbhvr;
8485 int fntsz = 12;
8586 boolean prvd;
@@ -100,6 +101,7 @@ public class KigoActivity extends Activity {
100101 } else {
101102 prvd = false;
102103 rltd = false;
104+ loadSave();
103105 }
104106 readPrefs();
105107 requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
@@ -367,6 +369,12 @@ public class KigoActivity extends Activity {
367369 setTitle(R.string.app_name);
368370 reLoad(guri);
369371 return true;
372+ } else if (!sbj.equals("")){
373+ edttxt.setText("");
374+ goFind();
375+ return true;
376+ } else {
377+ return super.dispatchKeyEvent(kev);
370378 }
371379 default:
372380 return super.dispatchKeyEvent(kev);
@@ -495,7 +503,14 @@ public class KigoActivity extends Activity {
495503 switch (requestCode){
496504 case 2:
497505 readPrefs();
498- reLoad(guri);
506+ if (obj != null){
507+ arryadpt.clear();
508+ xmlBaker(obj);
509+ } else if (guri != null){
510+ reLoad(guri);
511+ } else {
512+ goFind();
513+ }
499514 break;
500515 }
501516 }
@@ -508,4 +523,33 @@ public class KigoActivity extends Activity {
508523 cc[0] = sprefs.getString("cc", "");
509524 bcc[0] = sprefs.getString("bcc", "");
510525 }
526+ public void loadSave(){
527+ SharedPreferences spref = getSharedPreferences(svdt, 0);
528+ sbj = spref.getString("sbj", "");
529+ obj = spref.getString("obj", null);
530+ guri = spref.getString("guri", null);
531+ }
532+
533+ @Override
534+ public void onStop(){
535+ super.onStop();
536+ SharedPreferences spref = getSharedPreferences(svdt, 0);
537+ SharedPreferences.Editor sedit = spref.edit();
538+ if (obj != null){
539+ sedit.putString("obj", obj);
540+ } else {
541+ sedit.putString("obj", null);
542+ }
543+ if (!sbj.equals("")){
544+ sedit.putString("sbj", sbj);
545+ } else {
546+ sedit.putString("sbj", "");
547+ }
548+ if (guri != null){
549+ sedit.putString("guri", guri);
550+ } else {
551+ sedit.putString("guri", null);
552+ }
553+ sedit.commit();
554+ }
511555 }