Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Palm - handle isilo doc launching

  1. #1
    Join Date
    Jan 2004
    Posts
    12

    Default Palm - handle isilo doc launching

    I am working on an isilo document launcher kind of app for use on palm os, using the following function :

    Code:
    //-------------------------------------------
    //  The launchiSiloFileByName function
    //-------------------------------------------
    
    #define kiSiloAppCreator 'Silo'
    #define kiSiloDocCreator 'SilX'
    #define kiSiloDataBaseType 'SDoc'
    
    void launchiSiloFileByName(char *databaseName)
    {
    	Err error = errNone;
    	DmSearchStateType searchState;
    	UInt16 appCard, movieCard;
    	LocalID appID, movieID;
    	Boolean firstTime;
    	SysAppLaunchCmdOpenDBType *launchInfo;
    
    	// find the iSilo application
    	error = DmGetNextDatabaseByTypeCreator(true, &searchState,
    					sysFileTApplication, kiSiloAppCreator, true,
    					&appCard, &appID);
    	if (errNone != error) return;
    
    	// find the Kinoma movie with the requested name
    	firstTime = true;
    	while (true) {
    		char thisName[128];
    
    		error = DmGetNextDatabaseByTypeCreator(firstTime, &searchState,
    					kiSiloDataBaseType, kiSiloDocCreator, false,
    					&movieCard, &movieID);
    		if (errNone != error) return;
    
    		error = DmDatabaseInfo(movieCard, movieID, thisName, NULL, NULL,
    					NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
    		if (errNone != error) return;
    
    		if (0 == StrCaselessCompare(databaseName, thisName))
    			break;
    
    		firstTime = false;
    	}
    
    	// launch the application with the selected database
    	launchInfo = (SysAppLaunchCmdOpenDBType *)
    					MemPtrNew(sizeof(SysAppLaunchCmdOpenDBType));
    	if (NULL == launchInfo) return;
    
    	MemPtrSetOwner((MemPtr)launchInfo, 0);	// SysUIAppSwitch will dispose 
    	launchInfo->cardNo = movieCard;
    	launchInfo->dbID = movieID;
    
    	error = SysUIAppSwitch(appCard, appID, sysAppLaunchCmdOpenDB, launchInfo);
    	if (errNone != error) return;
    }
    It works very well for documents in RAM, but palm os doesn't have any function that handles launching pdb's from an expansion card.

    Kinoma explains in a technote (http://www.kinoma.com/technote01.html, second part) how to do this with kinoma player for palm os. However, they have defined a sysAppLaunchCmdCustomBase in the player to handle this type of launching.

    => Does such a function exist in iSilo? If so, is it publicly available ? If not, would it be possible to write it ?

    Thanks for your consideration,
    P
    Last edited by prion; 06-19-2004 at 07:25 AM.

  2. #2
    Join Date
    Dec 2003
    Posts
    5,129

    Arrow Not yet

    The capability to launch iSilo to open a document from a VFS volume does not yet exist, but is under consideration for a future version.

  3. #3
    Join Date
    May 2004
    Posts
    4

    Default Related (sort of)

    Hi, the last post clearly states there's no support to launch a document from a VFS store, but I'd like to know if there's support for the SysAppLaunchCmdOpenDBType to open a specific pdb document. In essence all I want to know is if I can launch iSilo from my application directly to a specific document in full screen. Is something like that achievable ?

    Thanks,

    Daniel Serrano

  4. #4
    Join Date
    Dec 2003
    Posts
    5,129

    Arrow sysAppLaunchCmdOpenDB

    iSilo supports sysAppLaunchCmdOpenDB for opening a document located in the internal storage memory.

  5. #5
    Join Date
    Jan 2004
    Posts
    12

    Default

    Any news on wether this function (launching documents from VFS) will make it into a future iSilo version ? An ETA ?

  6. #6

    Default

    I can do it!
    (This is an alternative way to do it *without* writting a special program for that).

    I use LauncherX. Launcher X can create individual entries for each iSilo document located in a particular folder into the SD/MMC card.

    1. In LauncherX, create a new category.

    2. Go into LauncherX preferences and specify iSilo as your DOC reader, also checkmark [v]iSilo (one line below on the screen).
    ** My iSilo app lives on the SD card also, so it's the same if it is on RAM or in FLASH or in SD.

    3. On the same screen, press on the "Memory Card" button. This let's you specify the "Document Search Paths" that LauncherX will use to get the documents. I storage all my iSilo docs in "/Palm/Programs/iSilo/", so this is the path that I added to this list.
    **To put your iSilo docs into the card, you can use "iSiloX: Destination - HotSync - Path". Into iSiloX, go to DESTINATION, then press on HOTSYNC, then select your HOTSYNC USER, then check on PATH, and specify the path where your iSilo docs will be. For example you can use:
    macaco://palm/programs/isilo/
    [!] Note the double slash after the hotsync_username (for this example, "macaco"). This means "on the first available card". You can specify the name of the card if you want it. Check on the help of iSiloX.

    4. After that, LauncherX will "scan" the paths specified, and all your iSilo documents will appear as icons. You can customize this more: change the settings of the new tab (category) and set it as "List view" with "Use 1 app column", to get the following configuration:



    ** Did you see the small blue icon to the right of the iSilo icon? That means this document is located on the SD/MMC card.

    Please note that if you have a lot of documents, all those documents will appear as icons. I suggest you to move to another category (you can set it as hidden in LauncherX) all those documents that you DONT read so often... or to use a special folder on your SD card to just those special-and-everyday docs, and just specify this path (as noted in step 3).

    I hope this tip work for you as good as it works for me!

    iSilo is a GREAT reader doc, my favorite since many years, and the only one that I always recommend to my readers and customers. LauncherX is the creation (should I say "legacy"?) of Bozidar Benc, who past away recently in a car accident... and the combination of both programs, working as a team, is just one of those sparks of genuine genius... at least for me.

    - - -
    For a lot of tutorials of iSilo and iSiloX, visit http://tupalmx.com
    TuPalMX is a source of tips and information for spanish-speaking PalmOS users, since 2002. Recently, PalmOne includes us into their "Solutions Guide". Just use the small QuickSearch form (BusquedaRapida), and use "isilo" or "isilox" as your keywords.
    - - - - -
    Samuel F. Montalvo
    TuPalMX / MComm
    Guadalajara, Jalisco MEXICO

  7. #7
    Join Date
    Dec 2003
    Posts
    5,129

    Post 4.15 beta1

    Version 4.15, which has just entered the beta1 test stage, adds support for a launch code for having iSilo start and open a file located on VFS media. Following is the definition of the new launch code and the parameter block to pass:

    Code:
    #define iSiloAppLaunchCmdOpenVFS sysAppLaunchCmdCustomBase // 0x8000
     
    typedef struct
    {
    	UInt16 uStructSize; // sizeof(iSiloAppLaunchCmdOpenVFSType)
    	UInt16 uVolRefNum; // Volume reference number
    	Char szPath[256]; // Max 255 chars plus zero-terminator
    } iSiloAppLaunchCmdOpenVFSType;

  8. #8
    Join Date
    Dec 2003
    Posts
    250

    Default Wanted: iSilo doc launcher

    A add-in launcher application for iSilo documents could be very useful for publishers. Here are features I think would be important in a stand-alone app:

    • Free-standing .prc file that could be installed simultaneously with iSilo.prc and iSilodocument.pdb
    • Ability to associate a customized icon with a specific iSilo document and have this compiled into a single .prc file
    • Ability to find and launch specified iSilo doc regardless of location on PDA (main memory or expansion card)
    • Bonus: PPC version available too.


    It seems like this should be a simple program to develop but I'm no programmer. If anyone has developed something that can do this or feels they could, I'd be interested in hearing from them.

    Regards,

    Andrew Schechtman, M.D.
    aschechtman@meistermed.com

  9. #9
    Join Date
    Jul 2004
    Location
    Rocklin, CA, USA, Earth, Solar System, Galaxy, Universe
    Posts
    32

    Default Launch iSilo Documents

    Quote Originally Posted by aschechtman
    A add-in launcher application for iSilo documents could be very useful for publishers.
    <snip>
    Regards,

    Andrew Schechtman, M.D.
    aschechtman@meistermed.com
    LauncherX can launch iSilo documents, you can go to Preferences, check iSilo; if you store them on a memory card, and add the folder where you store documents on the memory card.
    Any iSilo document in memory will show up, and will be launched if clicked on.
    Jeremie
    Jeremie Lariviere
    Device: Tungsten T3
    A Few Progs:
    LauncherX, MegaLauncher,
    DateBk5, Contacts5, Due Yesterday,
    BibleR+, eReader, iSilo, TomeRaider, Adobe, MobileDB, DataViewer,
    UninstallManager, BackupMan, Card Export II, ScreenShot, TealLock, MegaCommander, ClipPro,
    pocketTunes Deluxe, Audible Player, AlarmMaster, SongBook,
    Regshift's Legacy, PDAMill's Classics, AtomSmash, Aggression (Risk), TrivialPursuit, Xorlix,
    powerOne Graph, ScoreWizard, FactorPad,

  10. #10
    Join Date
    Dec 2003
    Posts
    250

    Default Off-the-shelf launchers would work but are suboptimal

    Thanks for the suggestion to use a standard launcher but using an off-the-shelf launcher program has a number of drawbacks:

    1. Too much overhead for one simple task
    - added expense for every iSilo user who wants to do this
    - added installation hassles and troubleshooting for a complicated launcher app
    - many users (espec. newbies) would be confused by all the extra functions available and would give up rather than figure it out.
    - memory requirements larger than a single-function iSilo launcher
    2. Inability to create a customized icon

    An optimal solution would involve a low-profile, simple, single-function launcher that is invisible to the end-user after installing the .prc.

    Andrew

Page 1 of 2 12 LastLast

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •