Dont override the activity in the cordova android apppliation

My question may be trivial i searched a lot in internet and stack overflow but i could not get perfect answer.Here is my question

I have a cordova function which executes on device ready,What it does is after i start my application ,i go to gmail import my attachment to my application ,store it in a file location and the location of the file in the array and display the file on my application.

When i am again doing for the second time it is overriding the previous one and replacing that activity so i am failing to store more than one attachements path in the array.

Can i know how to change this I am using android platform cordova