Skip to content
This repository has been archived by the owner on Dec 2, 2019. It is now read-only.

android should use internal storage, and avoid permissions #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ public void get(String filePath, Promise promise) {
MediaMetadataRetriever retriever = new MediaMetadataRetriever();
retriever.setDataSource(filePath);
Bitmap image = retriever.getFrameAtTime(1000000, MediaMetadataRetriever.OPTION_CLOSEST_SYNC);

String fullPath = Environment.getExternalStorageDirectory().getAbsolutePath() + "/thumb";
String fullPath = reactContext.getFilesDir().getAbsolutePath() + "/thumb";

try {
File dir = new File(fullPath);
Expand Down