Offline HTML Reader for Android
Revision | 438ca7d671f33b25f596b3848167d7147a104f1f (tree) |
---|---|
Zeit | 2014-12-30 19:07:41 |
Autor | Kana Koda <kodakana@user...> |
Commiter | Kana Koda |
KitKat で外部ストレージのファイルを開けない問題の修正。
@@ -3,6 +3,7 @@ | ||
3 | 3 | <classpathentry kind="src" path="src"/> |
4 | 4 | <classpathentry kind="src" path="gen"/> |
5 | 5 | <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/> |
6 | - <classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/> | |
6 | + <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/> | |
7 | + <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/> | |
7 | 8 | <classpathentry kind="output" path="bin/classes"/> |
8 | 9 | </classpath> |
@@ -1,12 +1,13 @@ | ||
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | 2 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
3 | 3 | package="org.pulpdust.unnetbrowser" |
4 | - android:versionCode="5" | |
5 | - android:versionName="0.82" | |
4 | + android:versionCode="7" | |
5 | + android:versionName="0.85" | |
6 | 6 | android:installLocation="auto" > |
7 | 7 | |
8 | - <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="14" /> | |
8 | + <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="19" /> | |
9 | 9 | <uses-permission android:name="android.permission.INTERNET"/> |
10 | + <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> | |
10 | 11 | |
11 | 12 | <application |
12 | 13 | android:icon="@drawable/ic_launcher" |
@@ -1,12 +1,13 @@ | ||
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | 2 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
3 | 3 | package="org.pulpdust.unnetbrowser" |
4 | - android:versionCode="5" | |
5 | - android:versionName="0.82" | |
4 | + android:versionCode="7" | |
5 | + android:versionName="0.85" | |
6 | 6 | android:installLocation="auto" > |
7 | 7 | |
8 | - <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="14" /> | |
8 | + <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="19" /> | |
9 | 9 | <uses-permission android:name="android.permission.INTERNET"/> |
10 | + <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> | |
10 | 11 | |
11 | 12 | <application |
12 | 13 | android:icon="@drawable/ic_launcher" |
@@ -1,3 +1,3 @@ | ||
1 | -# cache for current jar dependecy. DO NOT EDIT. | |
1 | +# cache for current jar dependency. DO NOT EDIT. | |
2 | 2 | # format is <lastModified> <length> <SHA-1> <path> |
3 | 3 | # Encoding is UTF-8 |
@@ -11,4 +11,4 @@ | ||
11 | 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt |
12 | 12 | |
13 | 13 | # Project target. |
14 | -target=android-14 | |
14 | +target=android-19 |
@@ -5,11 +5,11 @@ | ||
5 | 5 | <string name="app_name">Unnet Browser</string> |
6 | 6 | <string name="app_desc">オフライン HTML リーダ</string> |
7 | 7 | <string name="version">バージョン</string> |
8 | - <string name="app_ver">0.8</string> | |
8 | + <string name="app_ver">0.85</string> | |
9 | 9 | <string name="address">連絡先</string> |
10 | 10 | <string name="app_author">Kodakana<kodakana.hws@gmail.com></string> |
11 | 11 | <string name="copy">製作・著作</string> |
12 | - <string name="app_copy">© 2012 Kodakana <kodakana.hws@gmail.com></string> | |
12 | + <string name="app_copy">© 2014 Kodakana <kodakana.hws@gmail.com></string> | |
13 | 13 | <string name="license">許諾条件</string> |
14 | 14 | <string name="app_lic">GNU GPL v3</string> |
15 | 15 | <string name="open">開く…</string> |
@@ -5,11 +5,11 @@ | ||
5 | 5 | <string name="app_name">Unnet Browser</string> |
6 | 6 | <string name="app_desc">is an offline HTML reader.</string> |
7 | 7 | <string name="version">Version</string> |
8 | - <string name="app_ver">0.8</string> | |
8 | + <string name="app_ver">0.85</string> | |
9 | 9 | <string name="address">Address</string> |
10 | 10 | <string name="app_author">Kodakana <kodakana.hws@gmail.com></string> |
11 | 11 | <string name="copy">Copyright</string> |
12 | - <string name="app_copy">© 2012 Kodakana <kodakana.hws@gmail.com></string> | |
12 | + <string name="app_copy">© 2014 Kodakana <kodakana.hws@gmail.com></string> | |
13 | 13 | <string name="license">License</string> |
14 | 14 | <string name="app_lic">GNU GPL v3</string> |
15 | 15 | <string name="open">Open…</string> |
@@ -952,46 +952,27 @@ public class UnnetBrowserActivity extends FragmentActivity { | ||
952 | 952 | // } |
953 | 953 | public void textFind(String subject){ |
954 | 954 | fsbj = subject; |
955 | - textview1.setVisibility(View.VISIBLE); | |
955 | + if (Build.VERSION.SDK_INT < 16) textview1.setVisibility(View.VISIBLE); | |
956 | 956 | if (matchs == -1){ |
957 | 957 | webview.clearMatches(); |
958 | 958 | matchs = webview.findAll(subject); |
959 | -// webview.findNext(true); | |
960 | -// match++; | |
961 | 959 | } else {} |
962 | 960 | if (match == 0){ |
963 | -// webview.findNext(false); | |
964 | 961 | match++; |
965 | 962 | } |
966 | 963 | else if (matchs > match){ |
967 | -// webview.findAll(subject); | |
968 | 964 | webview.findNext(true); |
969 | 965 | match++; |
970 | 966 | } else {} |
971 | 967 | if (matchs > 0){ |
972 | - textview1.setText(getString(R.string.match)+" "+String.valueOf(match)+"/"+String.valueOf(matchs)); | |
973 | -// Toast tst = Toast.makeText(this, | |
974 | -// getString(R.string.match)+" "+String.valueOf(match)+"/"+String.valueOf(matchs), | |
975 | -// Toast.LENGTH_SHORT); | |
976 | -// tst.setGravity(Gravity.BOTTOM, 0, 0); | |
977 | -// tst.cancel(); | |
978 | -// tst.show(); | |
968 | + if (Build.VERSION.SDK_INT < 16) textview1.setText(getString(R.string.match)+" "+String.valueOf(match)+"/"+String.valueOf(matchs)); | |
979 | 969 | } else { |
980 | - textview1.setText(getString(R.string.match)+" "+String.valueOf(matchs)); | |
981 | -// Toast tst = Toast.makeText(this, | |
982 | -// getString(R.string.match)+" "+String.valueOf(matchs), | |
983 | -// Toast.LENGTH_SHORT); | |
984 | -// tst.setGravity(Gravity.BOTTOM, 0, 0); | |
985 | -// tst.cancel(); | |
986 | -// tst.show(); | |
970 | + if (Build.VERSION.SDK_INT < 16) textview1.setText(getString(R.string.match)+" "+String.valueOf(matchs)); | |
987 | 971 | match = 0; |
988 | 972 | } |
989 | 973 | if (matchs == match){ |
990 | 974 | matchs = -1; |
991 | 975 | match = 0; |
992 | -// matchs = webview.findAll(subject); | |
993 | -// webview.findNext(true); | |
994 | -// match++; | |
995 | 976 | } |
996 | 977 | } |
997 | 978 | public void shiftDown(){ |
@@ -1312,7 +1293,7 @@ public class UnnetBrowserActivity extends FragmentActivity { | ||
1312 | 1293 | wbsttngs.setSavePassword(false); |
1313 | 1294 | wbsttngs.setLightTouchEnabled(true); |
1314 | 1295 | wbsttngs.setSupportZoom(true); |
1315 | - wbsttngs.setPluginsEnabled(true); | |
1296 | +// wbsttngs.setPluginsEnabled(true); | |
1316 | 1297 | wbsttngs.setBuiltInZoomControls(shrdprfs.getBoolean("show_zoom", true)); |
1317 | 1298 | wbsttngs.setDefaultFontSize(Integer.parseInt(shrdprfs.getString("font_size", "16"))); |
1318 | 1299 | wbsttngs.setJavaScriptEnabled(shrdprfs.getBoolean("en_script", false)); |