1. Download our Official Android App: Forums for Android!

How do I transfer five strings from C++ to Java?

Discussion in 'Android Development' started by INGSS1, Sep 5, 2017.

  1. INGSS1

    INGSS1 Lurker
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    4
    Joined:
    Sep 3, 2017

    Sep 3, 2017
    4
    0
    15
    How do I transfer five strings from C++ to Java?
     

    Advertisement

  2. LV426

    LV426 I say we take off and nuke this place from orbit
    Moderator
    Rank:
     #11
    Points:
    1,988
    Posts:
    7,462
    Joined:
    Oct 16, 2015

    Oct 16, 2015
    7,462
    10,749
    1,988
    Male
    Software developer
    South West of England
    Your question is not clear. Can you please clarify what you're trying to do?
     
  3. INGSS1

    INGSS1 Lurker
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    4
    Joined:
    Sep 3, 2017

    Sep 3, 2017
    4
    0
    15
    I'm trying to move color hex values as strings, from c++ to Java. Perhaps using an h file.
     
  4. LV426

    LV426 I say we take off and nuke this place from orbit
    Moderator
    Rank:
     #11
    Points:
    1,988
    Posts:
    7,462
    Joined:
    Oct 16, 2015

    Oct 16, 2015
    7,462
    10,749
    1,988
    Male
    Software developer
    South West of England
    In an Android app project, there's a specific file which contains color constant values, which is /res/values/colors.xml.
    This is where you should put your hex strings.
     
  5. INGSS1

    INGSS1 Lurker
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    4
    Joined:
    Sep 3, 2017

    Sep 3, 2017
    4
    0
    15
    From C++ somehow? I'm running C++ code because it is a high memory amount of code. I'm making an app that translates names or words into aura color information. So, somehow I must route strings that change. I'll check this colors.xml out though.
     
  6. LV426

    LV426 I say we take off and nuke this place from orbit
    Moderator
    Rank:
     #11
    Points:
    1,988
    Posts:
    7,462
    Joined:
    Oct 16, 2015

    Oct 16, 2015
    7,462
    10,749
    1,988
    Male
    Software developer
    South West of England
  7. INGSS1

    INGSS1 Lurker
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    4
    Joined:
    Sep 3, 2017

    Sep 3, 2017
    4
    0
    15
    The strings have to be changing variables. The colors of some panels, have to change. That is why I need to transfer strings from c++ to java.
     

Share This Page

Loading...