android externals
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, LCMark
Re: android externals
Wohoo... Did you ever get a chance to look at my post/send parameter stuff? Works nicely.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
Re: android externals
Yes - it's a neat idea... Have half-finished integrating it into the externals_api_v5 branch - will hopefully finish doing that today. (My changes to the support code broke the patch as written - and I had an idea about generalizing slightly).Wohoo... Did you ever get a chance to look at my post/send parameter stuff? Works nicely.
Re: android externals
GreatYes - it's a neat idea... Have half-finished integrating it into the externals_api_v5 branch - will hopefully finish doing that today. (My changes to the support code broke the patch as written - and I had an idea about generalizing slightly).
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
Re: android externals
@monte: Have merged and pushed an initial version of the Send/Post parameters. I changed the signature of the LC.Object.Post/Send methods to use a variadic parameter list:
This has the advantage that Java does automatic boxing of primitive types, so you can do things like:
Code: Select all
void Post(String message, Object... parameters)
Code: Select all
t_my_object.Post("myHandler", 1, true, 2.0, "foobar")
Re: android externals
Nice!
Your message contains 5 characters. The minimum number of characters you need to enter is 10.
Your message contains 5 characters. The minimum number of characters you need to enter is 10.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
Re: android externals
And a further tweak - moved the class/method id initialization to external startup and added a mapping for byte[] to C-data.
Re: android externals
Ha... I don't think anything I wrote is still in there
Nice one with the byte[] or ByteBuffer.
I wonder if we could reduce some more code replication by using this before the loop:
Nice one with the byte[] or ByteBuffer.
I wonder if we could reduce some more code replication by using this before the loop:
Code: Select all
jvalue t_java_value;
if (t_mapping -> java_method != nil)
t_java_value = (jobject)env -> CallObjectMethod(t_param, t_mapping -> java_method);
else
t_java_value = t_param;
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
Re: android externals
I don't think that would work since the JNI method you need to call to invoked the method depends on the return-value of the method (i.e. Int, Double, Boolean, Object).I wonder if we could reduce some more code replication by using this before the loop:
Re: android externals
woops...
Code: Select all
jvalue t_java_value;
if (t_mapping -> java_method != nil)
t_java_value = (jvalue)env -> CallObjectMethod(t_param, t_mapping -> java_method);
else
t_java_value = t_param;
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
Re: android externals
ah... forget it... I see what you mean. Dumb moment sorry.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
Re: android externals
I think you still have blame for a few linesHa... I don't think anything I wrote is still in there
Re: android externals
You left me 9 lines ;-(
BTW is there any way we can add sdks to the git ignore file? I'm surprised it's not bothering you guys.
BTW is there any way we can add sdks to the git ignore file? I'm surprised it's not bothering you guys.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
Re: android externals
Sorted - I pulled in the request you sent ages ago with the change into runrevmark/externals_api_v5, and then iterated to develop and master (in runrev) with a few other additions.BTW is there any way we can add sdks to the git ignore file? I'm surprised it's not bothering you guys.
Re: android externals
Great, thanks
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
Re: android externals
It looks like LCObjectPost might be broken on desktop again in 6.1.1 rc 2. While the beachball stopped happening in 6.1 apparently the message was only getting through 50% of the time. Now apparently it's not getting through at all. Let me know if you need more testing and a proper bug report or if it's something you can easily spot.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/