I am developing document editor in android which has DashBoard as MainActivity and i will open Editor which is another activity for editing. I also allow to open the documents in sdcard by putting entries like
<data
android:host="*"
android:mimeType="*/*"
android:pathPattern=".*\\.doc"
android:scheme="file" />
Now the issue is, first I opened DashBoard, then i pressed device home button which makes the activity pause state. I move to sdcard and open the document which creates another DashBoardActivy to import the file. How to avoid creating two instances?