Hi Rajesh,
If working in the IDE, then copy the "Shared Data" example and un-comment the line that says app.SetSharedApp( "My AppName" ) and change it to the name of your app and save the code. Don't run your app, but just switch to a file explorer and open a .txt file or .jpg file and choose DroidScript as the target app when prompted. You should then see your app launched and the path of the chosen file displayed in the lower text box.
When building an APK, you need to create a build.json file to allow your app to handle your chosen file types. Search for 'pathPattern' on this forum to see how to do that.
Regards
David