1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-03 09:49:19 +02:00

added android-filechooser library

This commit is contained in:
Nikolay Pultsin 2014-04-13 16:51:35 +01:00
parent 03f3e765b8
commit a26d373a74
239 changed files with 7305 additions and 0 deletions

View file

@ -13,3 +13,4 @@ java.encoding=utf-8
target=android-14
android.library.reference.1=third-party/AmbilWarna
android.library.reference.2=third-party/drag-sort-listview/library
android.library.reference.3=third-party/android-filechooser/code

18
third-party/android-filechooser/LICENSE vendored Executable file
View file

@ -0,0 +1,18 @@
Copyright (C) 2012 Hai Bison
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

273
third-party/android-filechooser/NOTICE vendored Executable file
View file

@ -0,0 +1,273 @@
android-filechooser
Version: 5.0
===========
Feel free to contact us at:
- Homepage : http://www.haibison.com
- E-mails :
+ haibison.apps(@)gmail(.)com
+ support(@)haibison(.)com
Or you can join this forum for discussion, and to receive news (new version,
bugs...), your e-mail address will be kept private:
- https://groups.google.com/forum/#!forum/android-filechooser
And here is history:
+++ Version 5.0 +++
- Release: October 21, 2012
- We don't use Apache License 2.0 anymore. Now the library is released under
MIT license.
+++ Version 4.9 +++
- Release: October 20, 2012
- Improves the speed of formatting file time;
- Uses a unique filename of SharedPreferences instead of default application's
SharedPreferences;
- Uses Context.MODE_MULTI_PROCESS for storing global preferences;
- Uses a Runnable + setSelection() to select item of list view of files.
Because if the list view is handling data, only setSelection() might not
work;
- Updates NOTICE;
+++ Version 4.9 beta +++
- Initialize: October 12, 2012
+++ Version 4.8.1 +++
- Release: October 12, 2012
- Fixes a bug that file item does not draw properly after flinging it to delete
files;
+++ Version 4.8 +++
- Release: October 12, 2012
- Fixes a small bug that last location or selected file will be not pushed into
history;
+++ Version 4.7 +++
- Release: October 12, 2012
- All date formatting utilities were moved from /IFileAdapter to
/utils.DateUtils;
- Removes key /FileChooserActivity._UseThemeDialog;
- Adds options for single tapping/ double tapping to choose files;
- Auto remembers last location;
- Adds key /FileChooserActivity._SelectFile to select a specific file on
startup;
- Updates new mime types;
- UI for footer;
- Minor changes;
+++ Version 4.7 beta +++
- Initialize: October 02, 2012
+++ Version 4.6.2 +++
- Release: October 01, 2012
- Fixes: View does not reload after changing view type between list view and
grid view.
+++ Version 4.6.1 +++
- Release: October 01, 2012
- Fixes: View does not reload after changing view type between list view and
grid view.
+++ Version 4.6 +++
- Release: October 01, 2012
- Updates UI;
- Removes deprecated method History.push(A, A);
- Keeps and shows full history to the user (wherever they have been gone to);
- Removes button Cancel in dialogs. Users can tap Back button or touch outside
of the dialogs to cancel them;
- Moves [/]io.LocalFile to [/]io.localfile.LocalFile;
- Fixes:
+ Issue #6 (thanks to @buckelieg);
+ Issue #10;
+++ Version 4.6 beta +++
- Initialize: September 08, 2012
+++ Version 4.5 +++
- Release: September 07, 2012
- New icons for menu Home, Reload and for file types audio, image, video,
plain text and compressed;
+++ Version 4.5 beta +++
- Initialize: August 31, 2012
+++ Version 4.4 +++
- Release: August 30, 2012
- Added languages: Spanish, Vietnamese. Special thanks to C. - a kind friend
who helped us translate the library into Spanish;
+++ Version 4.3 +++
- Release: August 29, 2012
- Fixed issue #2 (http://code.google.com/p/android-filechooser/issues/detail?id=2);
- Upgraded UI;
- Added history viewer;
- Improved some minor code;
+++ Version 4.3 beta +++
- Initialization: May 19, 2012
+++ Version 4.2 +++
- Release: May 15, 2012
- due to this bug: http://code.google.com/p/android/issues/detail?id=30622,
so we prefix all resource names with 'afc_';
- add small text view below location bar, to show current location's full name
if it is truncated by the view's ellipsize property;
- save and restore state after screen orientation changed (except selected items
in multi-selection mode);
- add menu Reload;
- some UI fixes/ updates;
+++ Version 4.2 beta +++
- Initialization: May 13, 2012
+++ Version 4.1 +++
- Release: May 12, 2012
- update UI messages;
- if the app does not have permission WRITE_EXTERNAL_STORAGE, notify user
when he creates or deletes folder/ file;
- make location bar hold buttons of directories, which user can click to
go to;
+++ Version 4.1 beta +++
- Initialization: May 11, 2012
+++ Version 4.0 - Tablet +++
- Release: May 11, 2012
- add Home button;
- add grid view/ list view mode;
- allow creating new directory;
- allow deleting a single file/ directory by flinging its name;
- use android-support-v13.jar:
+ show menu items as actions from API 11 and up;
+ support new Android layout;
- change to new icons;
- some minor changes;
+++ Version 4.0 beta +++
- Initialization: May 08, 2012
+++ Version 3.5 +++
- Release: May 01, 2012
- remove button Cancel (use default Back button of system)
- hello May Day :-)
+++ Version 3.4 +++
- Release: March 23, 2012
- fix serious bug: hardcode service action name of local file provider;
the service will be called as a remote service, which will raise
fatal exception if there are multiple instances of the library installed
on the device;
+++ Version 3.3 +++
- Release: March 22, 2012
- fix bug in LoadingDialog: if the user finishes the owner activity,
the application can crash if the dialog is going to show up or dismiss;
- improve FileChooserActivity: make its height and width always fit the
screen size in dialog theme;
+++ Version 3.2 +++
- Release: March 16, 2012
- add package io: IFile and LocalFile;
- use IFile instead of java.io.File;
- remove FileContainer and package bean;
+++ Version 3.1 +++
- Release: March 15, 2012
- add FileProviderService;
+++ Version 3.0 +++
- Release: March 15, 2012
- move file listing functions to external service;
- change project name from FileChooser to android-filechooser :-D
- some minor changes:
+ UI messages;
+ icons;
+ make LoadingDialog use AsyncTask instead of Thread;
+ ...
+++ Version 2.0 +++
- Release: Feb 22, 2012
- change default date format to "yyyy.MM.dd hh:mm a";
- try using sdcard as rootpath if it is not specified; if sdcard is not available, use "/";
- add sorter (by name/ size/ date);
- show directories' date (last modified);
+++ Version 1.91 +++
- Release: Feb 06, 2012
- Add: show file time (last modified);
+++ Version 1.9 +++
- Release: Feb 06, 2012
- Fix: crash if cast footer of listview to DataModel;
+++ Version 1.8.2 +++
- Release: Feb 06, 2012
- enable fast scroll of the list view;
+++ Version 1.8.1 +++
- Release: Feb 05, 2012
- Fix: it doesn't remember the first path (rootpath) in history;
+++ Version 1.8 +++
- Release: Feb 05, 2012
- Shows progress dialog while listing files of a directory;
- Adds flag max file count allowed, in case the directory has thousands of files,
the application can harm memory. Default value is 1,024;
- TODO: let the user cancel the method java.io.File.listFiles().
It seems this is up to Android developers :-)
+++ Version 1.7 +++
- Release: Jan 22, 2012
- add function to check if filename (in save dialog mode) is valid or not;
- change name FilesAdapter to FileAdapter;
+++ Version 1.6 +++
- Release: Jan 13, 2012
- check and warn user if save as filename is a directory;
- when finish, return some flags for further use (in case the
caller needs);
+++ Version 1.5 +++
- Release: Jan 13, 2012
- apply Apache License 2.0;
- set result code to RESULT_CANCELED when user clicks button Cancel;
+++ Version 1.4 +++
- Release: Jan 08, 2012
- first publishing;
- choose file(s) dialog;
- choose file(s) and/or directory(ies) dialog;
- save as dialog;

View file

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) 2012 Hai Bison
See the file LICENSE at the root directory of this project for copying
permission.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="group.pals.android.lib.ui.filechooser"
android:versionCode="44"
android:versionName="5.0" >
<uses-sdk
android:minSdkVersion="4"
android:targetSdkVersion="16" />
</manifest>

View file

@ -0,0 +1,85 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="android-filechooser" default="help">
<!-- The local.properties file is created and updated by the 'android' tool.
It contains the path to the SDK. It should *NOT* be checked into
Version Control Systems. -->
<property file="local.properties" />
<!-- The ant.properties file can be created by you. It is only edited by the
'android' tool to add properties to it.
This is the place to change some Ant specific build properties.
Here are some properties you may want to change/update:
source.dir
The name of the source directory. Default is 'src'.
out.dir
The name of the output directory. Default is 'bin'.
For other overridable properties, look at the beginning of the rules
files in the SDK, at tools/ant/build.xml
Properties related to the SDK location or the project target should
be updated using the 'android' tool with the 'update' action.
This file is an integral part of the build system for your
application and should be checked into Version Control Systems.
-->
<property file="ant.properties" />
<!-- The project.properties file is created and updated by the 'android'
tool, as well as ADT.
This contains project specific properties such as project target, and library
dependencies. Lower level build properties are stored in ant.properties
(or in .classpath for Eclipse projects).
This file is an integral part of the build system for your
application and should be checked into Version Control Systems. -->
<loadproperties srcFile="project.properties" />
<!-- quick check on sdk.dir -->
<fail
message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through an env var"
unless="sdk.dir"
/>
<!-- extension targets. Uncomment the ones where you want to do custom work
in between standard targets -->
<!--
<target name="-pre-build">
</target>
<target name="-pre-compile">
</target>
/* This is typically used for code obfuscation.
Compiled code location: ${out.classes.absolute.dir}
If this is not done in place, override ${out.dex.input.absolute.dir} */
<target name="-post-compile">
</target>
-->
<!-- Import the actual build file.
To customize existing targets, there are two options:
- Customize only one target:
- copy/paste the target into this file, *before* the
<import> task.
- customize it to your needs.
- Customize the whole content of build.xml
- copy/paste the content of the rules files (minus the top node)
into this file, replacing the <import> task.
- customize to your needs.
***********************
****** IMPORTANT ******
***********************
In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
in order to avoid having your file be overridden by tools such as "android update project"
-->
<!-- version-tag: 1 -->
<import file="${sdk.dir}/tools/ant/build.xml" />
</project>

View file

@ -0,0 +1,20 @@
# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

View file

@ -0,0 +1,40 @@
-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
-keep public class * extends android.app.Service
-keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.content.ContentProvider
-keep public class * extends android.app.backup.BackupAgentHelper
-keep public class * extends android.preference.Preference
-keep public class com.android.vending.licensing.ILicensingService
-keepclasseswithmembernames class * {
native <methods>;
}
-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet);
}
-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet, int);
}
-keepclassmembers class * extends android.app.Activity {
public void *(android.view.View);
}
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}
-keep class * implements android.os.Parcelable {
public static final android.os.Parcelable$Creator *;
}

View file

@ -0,0 +1,12 @@
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system use,
# "ant.properties", and override values to adapt the script to your
# project structure.
# Project target.
target=android-14
android.library=true

Binary file not shown.

After

Width:  |  Height:  |  Size: 407 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 487 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 276 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 722 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 999 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,001 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 744 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 599 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 596 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 765 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 638 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 553 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 761 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 718 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 766 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 655 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 612 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 660 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 600 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 593 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 501 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 616 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 590 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 514 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 825 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 345 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 302 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 415 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 553 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 518 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 525 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 516 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 569 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 590 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,019 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 752 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 831 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,009 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,000 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 999 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 792 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 874 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 519 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 997 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,009 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 443 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 378 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 B

Some files were not shown because too many files have changed in this diff Show more