It´s possible call to another "executable" into mobile Devices from an executabl

Previous topic - Next topic

Hark0

Quote from: Kitty Hello on 2012-Apr-12
GLBasic supports these file types on iOS. You get them with GETCOMMANDLINE$() then.

Well well.... Currently my game are paused about this topic: share maps on iOS with mail... and add filetype definition of my map file format...

My friend @Dacarsoft are working on this.... he's are a "monster developer" =D

;)
http://litiopixel.blogspot.com
litiopixel.blogspot.com - Desarrollo videojuegos Indie · Pixel-Art · Retroinformática · Electrónica Development Indie Videogames · Pixel-Art · Retrocomputing · Electronic

DaCarSoft

Quote from: Kitty Hello on 2012-Apr-12
GLBasic supports these file types on iOS. You get them with GETCOMMANDLINE$() then.

Quote from: Kitty Hello on 2012-Apr-12
I can't remember anymore, but I think I made this work properly.


I was testing that, but no, it is not working :(

Firstly, I added to the XCode project all the parameters needed into the info.plist (exported types UTIs, iTunes file sharing, and URL types), then I tested to open an attachment from the mail app, tapping in the "Open with (my application name)" without luck: The game closes without showing any graphic or info from GLBasic... it only crashes showing a black screen for a while. Just like here:

http://www.glbasic.com/forum/index.php?topic=7974.0

After that, I checked the documents folder within the application directory, and the file was there, it was correctly imported into the "Documents/Inbox" folder generated by iOS.

I tested also to open the application using hyperlinks like "MyApp://" or "MyApp://hello_world", without luck, one more time: The App opens but it instantaneously crashes in the same way as before.

I think that GLBasic have a problem when it founds a parameter. I suppose that there is a problem in the "internal" AppDelegate of GLBasic.
I was trying to make a workaround writing code into the main.m file from XCode.
I added my own and new AppDelegate, and now I can detect the URL parameter at the "DidFinishLaunchingWithOptions" event showing an alert (for example), but (OBVIOUSLY) I can't launch the GLBasic part when I add my own AppDelegate...

Gernot (Kitty Hello): A little help?   XD

TIA

"Si quieres resultados distintos... no hagas siempre lo mismo" - Albert Einstein.

Kitty Hello