Mobile Cross Platform was==>Android openCard not firing
Thomas McGrath III
mcgrath3 at mac.com
Thu Apr 18 15:01:39 EDT 2013
I will keep this list as a gotcha list.
Thanks Ralph,
Tom
-- Tom McGrath III
http://lazyriver.on-rev.com
mcgrath3 at mac.com
On Apr 18, 2013, at 1:19 PM, Ralph DiMola <rdimola at evergreeninfo.net> wrote:
> Tom,
>
> I use the same code base and stack/card for Android and iOS. I live with
> this funny and also a couple of (if the platform =)s rather than having 2
> stacks/cards. Here's my list:
>
> 1) mergeMK for iOS. Apple rejected me for using a browser for maps. I use
> the browser for Android.
> 2) In App purchasing minor diffs.
> 3) Calculating native input field font size.
> 4) Hide "Exit" button on iOS. Again an Apple approver complaint. I replace
> the "Exit" button with an "Menu" button so iOS user can get to the options
> like an Android user can via the HW menu button.
> 5) mobileSetAllowedOrientations difference for Android 2.2
> 6) For IOS I call iphoneSetDoNotBackupFile for any large files like SQLite
> DBs.
> 7) In iOS the native single line input control does not recognize the
> multiline property. One must use the "multiline" option when creating the
> control.
> 8) When navigating a directory tree in iOS you must start at line 2 when
> parsing the result of "put the files into tFileList". On Android start at
> line 1.
> 9) When calculating the rect for a native input control.
> 10) When setting the vscroll of a native scroller. If you want to set it to
> any place other than the top you must wait 1 second after the scroller is
> created before setting it on iOS or it will not change. On android .5
> seconds will suffice.
> 11) And like I said.... delete any iOS externals from the copy file pane
> when linking up an apk.
>
> I know this list look big but it's better that 2 stacks or cards and light
> years shorter then writing the app in both Java AND Objective C.
>
>
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdimola at evergreeninfo.net
>
>
> -----Original Message-----
> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf
> Of Thomas McGrath III
> Sent: Thursday, April 18, 2013 12:11 PM
> To: How to use LiveCode
> Subject: Re: Android openCard not firing
>
> Ralph, thanks for this. I am checking now. I also found that a behavior left
> over from tmControl was attached to the background. I gotta figure out if it
> is possible at all to have both an iOS and Android card in this stack (using
> tmControls as I do now for the iOS card)..
>
> Thanks
>
> Tom
>
> -- Tom McGrath III
> http://lazyriver.on-rev.com
> mcgrath3 at mac.com
>
> On Apr 18, 2013, at 12:02 PM, Ralph DiMola <rdimola at evergreeninfo.net>
> wrote:
>
>> Tom,
>>
>> Having a iOS external in the copy files pane will do this. When I make
>> an apk I have to delete them then add back for the iOS version.
>>
>> Ralph DiMola
>> IT Director
>> Evergreen Information Services
>> rdimola at evergreeninfo.net
>>
>> -----Original Message-----
>> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On
>> Behalf Of Thomas McGrath III
>> Sent: Thursday, April 18, 2013 11:37 AM
>> To: How to use LiveCode
>> Subject: Android openCard not firing
>>
>> Using LC 5.5.4:
>> I am trying to figure why my openCard is not firing on an Android
>> simulator test app.
>>
>> I am using tmControls (for the iPhone side) but I commented out the
>> preOpenCard for it to test this. I was hoping to have one stack with
>> the iPhone and Android cards in it.
>>
>> So, I do know that tmControls has a front script (don't know if it has
>> a openCard handler in it though) but I commented out the entire
>> preOpenCard that has the initialization script in it. So it shouldn't
>> be loading - right?
>>
>> Then what else could interfere with openCard on Android????
>>
>> I put in a button that calls openCard and selecting that after launch
>> on the simulator works.
>>
>> Stumped????
>>
>> Tom
>>
>> -- Tom McGrath III
>> http://lazyriver.on-rev.com
>> mcgrath3 at mac.com
>>
>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list