From 09741b02863b138846f3747a19dc40a3518b9aa0 Mon Sep 17 00:00:00 2001 From: Thialfihar Date: Sat, 17 Apr 2010 23:36:47 +0000 Subject: use OI File Manager intents to handle open/save file selection --- src/org/openintents/intents/FileManager.java | 78 ++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 src/org/openintents/intents/FileManager.java (limited to 'src/org/openintents/intents/FileManager.java') diff --git a/src/org/openintents/intents/FileManager.java b/src/org/openintents/intents/FileManager.java new file mode 100644 index 000000000..3a5cc0d86 --- /dev/null +++ b/src/org/openintents/intents/FileManager.java @@ -0,0 +1,78 @@ +/* + * Copyright (C) 2008 OpenIntents.org + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.openintents.intents; + +// Version Dec 9, 2008 + +/** + * Provides OpenIntents actions, extras, and categories used by providers. + *

+ * These specifiers extend the standard Android specifiers. + *

+ */ +public final class FileManager { + + /** + * Activity Action: Pick a file through the file manager, or let user + * specify a custom file name. Data is the current file name or file name + * suggestion. Returns a new file name as file URI in data. + * + *

+ * Constant Value: "org.openintents.action.PICK_FILE" + *

+ */ + public static final String ACTION_PICK_FILE = "org.openintents.action.PICK_FILE"; + + /** + * Activity Action: Pick a directory through the file manager, or let user + * specify a custom file name. Data is the current directory name or + * directory name suggestion. Returns a new directory name as file URI in + * data. + * + *

+ * Constant Value: "org.openintents.action.PICK_DIRECTORY" + *

+ */ + public static final String ACTION_PICK_DIRECTORY = "org.openintents.action.PICK_DIRECTORY"; + + /** + * The title to display. + * + *

+ * This is shown in the title bar of the file manager. + *

+ * + *

+ * Constant Value: "org.openintents.extra.TITLE" + *

+ */ + public static final String EXTRA_TITLE = "org.openintents.extra.TITLE"; + + /** + * The text on the button to display. + * + *

+ * Depending on the use, it makes sense to set this to "Open" or "Save". + *

+ * + *

+ * Constant Value: "org.openintents.extra.BUTTON_TEXT" + *

+ */ + public static final String EXTRA_BUTTON_TEXT = "org.openintents.extra.BUTTON_TEXT"; + +} -- cgit v1.2.3