Quantcast

Does Google TV support JNI?

Discussion in 'Google TV General Discussion' started by Yvgang, Jun 25, 2012.

  1. Yvgang

    Yvgang New Member

    Joined:
    Jun 25, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    We all know Google TV does not support NDK, but does it support JNI?
    Where can I get Google official information about " Google TV doesn't support JNI " ?

    I have searched google with key "JNI google TV " but no valuable information.

    Thanks a lot.

    Yvgang.
     
  2. mcd2000

    mcd2000 Active Member

    Joined:
    Nov 16, 2011
    Messages:
    380
    Likes Received:
    54
    Trophy Points:
    28
    Location:
    Saint-Petersburg, Russia
    Technically, it supports JNI. If you compile a statically linked .so lib, you can use it from Java code.
    Of course, this is not official.
     
  3. Yvgang

    Yvgang New Member

    Joined:
    Jun 25, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    What is statically link .so?


    Dynamically link:
    System.loadLibrary("hello-jni");
     
  4. royfernandez1

    royfernandez1 New Member

    Joined:
    May 24, 2012
    Messages:
    20
    Likes Received:
    1
    Trophy Points:
    0
    You can't statically link shared library (or dynamically link static)
    Flag -static will force linker to use static library (.a) instead of shared (.so)
     
  5. mcd2000

    mcd2000 Active Member

    Joined:
    Nov 16, 2011
    Messages:
    380
    Likes Received:
    54
    Trophy Points:
    28
    Location:
    Saint-Petersburg, Russia
    I mean that you need an .so that does not depend on any other .so (like libm.so, libc.so, etc).
     

Share This Page