Data files

The "files" menu item shows files of the "document directory" whose types are known by g4view. According to the platform, the document directory is :

     UNIX : ~/Documents/g4view
     Windows : C:\Documents and Settings\<user>\Documents\g4view
     Android : /sdcard/Android/data/fr.in2p3.lal.g4view
     iPod/iPhone/iPad : <app dir>/Documents.

The known file types are :

     .gdml : Geant4 GDML files describing a geometry.
     .mac : Geant4 macro file.

iPod/iPhone/iPad

g4view is complient with the "Apple document interchange" protocol for file types known by g4view. Then applications as Dropbox, GoodReader, Mail can "Open in..." a file toward g4view. (Strangely it does not work with all file types from Safari. But it seems to be a common problem...) With this feature you can get data files without the need to connect your iDevice to a desktop.

From a Mac, as g4view had been declared as a "File Sharing" application, you can send data files from a Mac on a connected iDevice by :

      connecting it to a Mac
      launching iTune
      choose the device in the DEVICES list on the left
      choose the "apps" tab in the central panel
      choose g4view in the list of "File Sharing" apps
      use the "add..." button to send files on the device

Note that you can also send files by using from your Mac the free "iPhone Explorer" application. After having launched iPhone Explorer on your Mac, drag the wanted file (or directory in fact) from the Mac Finder onto the Documents directory of the device seen within the iPhone Explorer tree.

Android

g4view should appears as a candidate viewer when choosing a file in Dropbox or from the "Linda Manager" file manager application. (But it is not proposed as a candidate viewer from the "My Files" application on our device under Android 2.1). With this feature you can get data files without the need to connect your device to a desktop.

From a desktop you can nicely "push" files on a connected device by using on your desktop the "adb" tool coming from the Android SDK :

    <source setup adb>
    adb push <file> /sdcard/Android/data/fr.in2p3.lal.g4view/.

You can use also some free FTP app as the AndFTP one to get data files.