To send list of file via intent, in sender activity:
ArrayList<File> fileList = new ArrayList<File>();
...
Intent intent = new Intent(MainActivity.this, secondActivity.class);
intent.putExtra("FILES_TO_SEND", fileList);
startActivity(intent);
In receiver activity:
ArrayList<File> filelist =
(ArrayList<File>)getIntent().getSerializableExtra("FILES_TO_SEND");
Related Posts :
Draw rotated oval, canvas.drawOval + canvas.rotateRefer to last article Draw oval on canvas, canvas.drawOval(), we can draw oval vertically or horizontally. So, how can we draw a rotated ova… Read More...
Draw text along pathTo draw text along path, we can call Canvas.drawTextOnPath(text, path, hOffset, vOffset, paint). Example:Create a new class MyView extends V… Read More...
Create transparent foreground SurfaceViewStart reading here: Create a SurfaceView Game step-by-stepIn previoud posts, we have created a custom SurfaceView(MyGameSurfaceView.java) wi… Read More...
Example of using CheckBoxPreference- Create a xml file, to define the CheckBoxPreference, /res/xml/checkboxpref.xml.<?xml version="1.0" encoding="utf-8"?><PreferenceS… Read More...
Detect Orientation using Accelerometer and Magnetic Field sensorsThe post Detect Android device rotation, using Accelerometer sensor base on accelerometer only. It is another method to obtain it using both… Read More...
0 Response to "Send list of file between activities"
Posting Komentar