I just tried replacing
/external_files/ by
/sdcard/ and it seems to work.
Here the version I used:
function OnStart()
{
lay = app.CreateLayout( "Linear", "VCenter,FillXY" )
lay.SetChildMargins( 0, 10, 0, 10, "dip" )
txt = app.CreateText( "shared cvs:",.9,-1,"Multiline")
txt.SetTextSize( 14 )
lay.AddChild( txt )
txt1 = app.CreateText( "content:",.9,-1,"Multiline")
txt1.SetTextSize( 14 )
lay.AddChild( txt1 )
app.AddLayout( lay )
extractpath = "/sdcard/mappoints"
zipfile = app.GetSharedFiles()
txt.SetText( txt.GetText() + "\n" + zipfile )
// txt is as expected: /external_file/Android/media/np.com.softwel.swmaps/Export/Project 1 CVS.zip
if( zipfile )
{
zipfile = zipfile[0].replace( "/external_files/", "/sdcard/" )
app.UnzipFile(zipfile,extractpath)
//WARNING: App.UnzipFile() failed! (/external_files/Android/media/np.com.softwel.swmaps/Export/Project 1 CSV.zip: open failed: ENOENT (No such file or directory)
file = app.ListFolder( extractpath, ".csv", 1, "FullPath" )[0]
txt1.SetText( txt1.GetText() + "\n" + app.ReadFile( file ) )
}
}