TT File Selector

TT File Selector


This is file select application.
It assumes that this application is implicitly called from external application.
Since a background color and a text color can be set up, if the application and the color under development are united, a file selection function is realizable comfortable.

If you call this application from launcher, you just find "File reference"(T_T)

Specifications:
OS Version : Over 2.1
scheme : file
ActionType : action.PICK

uri parameters:
path : First directory.

QueryParameter:
only_directory : If true, only directory is shown.
bgcolor : The Background color.
The format is ARGB such as "FF000000"
fgcolor : The Text color.
The format is ARGB such as "FF000000"
multiple : If true, multiple select is enabled.

Example:
sample1: simple call.
Uri uri = Uri.fromFile
(Environment.getExternalStorageDirectory() );

Intent i = new Intent( Intent.ACTION_PICK, uri );
startActivityForResult( i, 1 );

sample2: Set options.
Uri.Builder b = new Uri.Builder();
b.scheme( "file" );
b.path( "/mnt/sdcard" );
b.appendQueryParameter( "only_directory", "true" );
b.appendQueryParameter( "multiple", "true" );
b.appendQueryParameter( "bgcolor", "FFFFFFFF" );
b.appendQueryParameter( "fgcolor", "FF000000" );
Uri uri = b.build();
Intent i = new Intent( Intent.ACTION_PICK, uri );
startActivityForResult( i, 1 );

sample3: Getting result.( For single select )
protected void onActivityResult
(int requestCode, int resultCode, Intent data) {
if ( resultCode == RESULT_OK ) {
Uri uri = data.getData();
String selectedPath = uri.getPath();
}
}

sample4: Getting result.( For multiple select )
protected void onActivityResult
(int requestCode, int resultCode, Intent data) {
if ( resultCode == RESULT_OK ) {
Uri uri = data.getData();
ListpathList = uri.getPathSegments();
StringBuilder sb = new StringBuilder();
for ( String path : pathList ) {
sb.append( path ).append( "\n" );
}
String multiSelectPath = sb.toString();
}
}

Future:
User request, if it is.

Recent changes:
・Multiple Select.
・Sort by Name.
・Show message at the time of the file selection which cannot be accessed.
Add to list
Free
80
4.0
User ratings
2
Installs
100+
Concerns
0
File size
12 kb
Screenshots
Screenshot of TT File Selector Screenshot of TT File Selector
About TT File Selector
This is file select application.
It assumes that this application is implicitly called from external application.
Since a background color and a text color can be set up, if the application and the color under development are united, a file selection function is realizable comfortable.

If you call this application from launcher, you just find "File reference"(T_T)

Specifications:
OS Version : Over 2.1
scheme : file
ActionType : action.PICK

uri parameters:
path : First directory.

QueryParameter:
only_directory : If true, only directory is shown.
bgcolor : The Background color.
The format is ARGB such as "FF000000"
fgcolor : The Text color.
The format is ARGB such as "FF000000"
multiple : If true, multiple select is enabled.

Example:
sample1: simple call.
Uri uri = Uri.fromFile
(Environment.getExternalStorageDirectory() );

Intent i = new Intent( Intent.ACTION_PICK, uri );
startActivityForResult( i, 1 );

sample2: Set options.
Uri.Builder b = new Uri.Builder();
b.scheme( "file" );
b.path( "/mnt/sdcard" );
b.appendQueryParameter( "only_directory", "true" );
b.appendQueryParameter( "multiple", "true" );
b.appendQueryParameter( "bgcolor", "FFFFFFFF" );
b.appendQueryParameter( "fgcolor", "FF000000" );
Uri uri = b.build();
Intent i = new Intent( Intent.ACTION_PICK, uri );
startActivityForResult( i, 1 );

sample3: Getting result.( For single select )
protected void onActivityResult
(int requestCode, int resultCode, Intent data) {
if ( resultCode == RESULT_OK ) {
Uri uri = data.getData();
String selectedPath = uri.getPath();
}
}

sample4: Getting result.( For multiple select )
protected void onActivityResult
(int requestCode, int resultCode, Intent data) {
if ( resultCode == RESULT_OK ) {
Uri uri = data.getData();
ListpathList = uri.getPathSegments();
StringBuilder sb = new StringBuilder();
for ( String path : pathList ) {
sb.append( path ).append( "\n" );
}
String multiSelectPath = sb.toString();
}
}

Future:
User request, if it is.

Recent changes:
・Multiple Select.
・Sort by Name.
・Show message at the time of the file selection which cannot be accessed.

User reviews of TT File Selector
Write the first review for this app!
Android Market Comments
No comments in the Android market yet