Skip to content

Commit

Permalink
remove file chooser fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanjeev committed Sep 4, 2023
1 parent 15e37ee commit b95cac3
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 131 deletions.
11 changes: 0 additions & 11 deletions android/robot/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,6 @@

</activity>

<activity
android:name=".modelManagement.BackHandlingFilePickerActivity"
android:label="@string/app_name"
android:theme="@style/FilePickerTheme"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.GET_CONTENT" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>

<service
android:name=".logging.SensorService"
android:enabled="true"
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -179,29 +179,11 @@ private void processModelFromStorage(List<Uri> files, String fileName) {
}

private void openPicker() {

// Intent i = new Intent(requireActivity(), BackHandlingFilePickerActivity.class);
// // This works if you defined the intent filter
// // Intent i = new Intent(Intent.ACTION_GET_CONTENT);
//
// // Set these depending on your use case. These are the defaults.
// i.putExtra(BackHandlingFilePickerActivity.EXTRA_ALLOW_MULTIPLE, false);
// i.putExtra(BackHandlingFilePickerActivity.EXTRA_ALLOW_CREATE_DIR, false);
// i.putExtra(BackHandlingFilePickerActivity.EXTRA_MODE, BackHandlingFilePickerActivity.MODE_FILE);
//
// // Configure initial directory by specifying a String.
// // You could specify a String like "/storage/emulated/0/", but that can
// // dangerous. Always use Android's API calls to get paths to the SD-card or
// // internal memory.
// i.putExtra(
// BackHandlingFilePickerActivity.EXTRA_START_PATH,
// Environment.getExternalStorageDirectory().getPath());
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.setType("application/octet-stream"); // Specify the MIME type for TFLite files
intent.addCategory(Intent.CATEGORY_OPENABLE);

mStartForResult.launch(intent);

}

@Nullable
Expand Down

0 comments on commit b95cac3

Please sign in to comment.