InLineJava snippets...

Discussion in 'Forum Discussion' started by Cableguy, Feb 22, 2015.

  1. Cableguy

    Cableguy Expert Licensed User

    Hi guys

    Erel gave us (some of us), the ability of adding In Line Java code to simplify native calls... I think...

    It would be of great help to have at least a sticky with some "common usage" examples so that people like me, to whom JAVA is just evidence of extra terrestrial intelligence, can take a small degree advantage of it...

    For simplicity of usage it should be simple call to execute very objective things...

    What do you JAVA aliens... I mean... Gurus, think???
     
  2. thedesolatesoul

    thedesolatesoul Expert Licensed User

    I think its a can of worms.
    If you are adding code that you cannot understand then you are taking a lot of risk.
    Its better to learn java than copy pasting snippets.

    Now Erel will have to spend time on both explaining B4A code and Java code?
     
  3. Cableguy

    Cableguy Expert Licensed User

    I do agree with the worms... Still there are some general use JAVA snippets that can be used without risk in substitution of using reflection... at least it's how I understand it...

    I never did implied that support would be Erel's responsability...
    each snippet should come with a brief description of what it's meant to do and it's publisher should be responsible for the support.
    A bit like the languages sub forums...
     
  4. thedesolatesoul

    thedesolatesoul Expert Licensed User

    Yes, the good point you mention is getting rid of refelction and javaobject.

    Actually now I do see your point (not very clearly though!).
     
    Cableguy likes this.
  5. Cableguy

    Cableguy Expert Licensed User

    I think what I'm trying to get to is, there are lots of JAVA code samples that you guys, the lib developers, use as base for creating those libs... some of these samples can/could be used as stand alone snippets allowing us getting/setting some forgotten property unaccessible within b4x products without using reflection and/or javaobject...

    hummm, any clearer now?
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice