Recent

Author Topic: more android sample  (Read 3563 times)

irw10062

  • New Member
  • *
  • Posts: 31
more android sample
« on: October 07, 2012, 09:11:50 am »
is android always run using library .so like sample androidlcl
i still not understand how to create src\com\pascal\lcltest\LCLActivity.java
is .apk file possible build from nonandroidtest (program, not libarary format)

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: more android sample
« Reply #1 on: October 07, 2012, 10:15:48 am »
Quote
is android always run using library .so like sample androidlcl
Yes, if you take Native/LCL Custom Drawn approach.
Quote
i still not understand how to create src\com\pascal\lcltest\LCLActivity.java
You don't, it's prepared and aren't meant to be changed.
Quote
is .apk file possible build from nonandroidtest (program, not libarary format)
Sorry, I don't understand this question. The .apk is NOT created by the compiler, but by Android SDK tools.

irw10062

  • New Member
  • *
  • Posts: 31
Re: more android sample
« Reply #2 on: October 07, 2012, 11:30:27 am »
Quote
is android always run using library .so like sample androidlcl
Yes, if you take Native/LCL Custom Drawn approach.
Quote
i still not understand how to create src\com\pascal\lcltest\LCLActivity.java
You don't, it's prepared and aren't meant to be changed.
Quote
is .apk file possible build from nonandroidtest (program, not libarary format)
Sorry, I don't understand this question. The .apk is NOT created by the compiler, but by Android SDK tools.

src\com\pascal\lcltest\LCLActivity.java build manually, if prepared what command to build it in build_debug_apk.bat
its contain :

Quote
  static
  {
    try
    {
      Log.i("lclapp", "Trying to load liblclapp.so");
      System.loadLibrary("lclapp");
    }
    catch(UnsatisfiedLinkError ule)
    {
      Log.e("lclapp", "WARNING: Could not load liblclapp.so");
      ule.printStackTrace();
    }
  }

Quote
Sorry, I don't understand this question. The .apk is NOT created by the compiler, but by Android SDK tools.
i mean, there are two sample
androidlcltest.lpi --> library
and nonandroidtest.lpi --> program
so, nonandroidtest could run on android ?

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: more android sample
« Reply #3 on: October 07, 2012, 02:08:15 pm »
Quote
i mean, there are two sample
androidlcltest.lpi --> library
and nonandroidtest.lpi --> program
so, nonandroidtest could run on android ?
No, it's a sample to show that same base source can be used to create programs for android and desktop system using custom drawn interface.

 

TinyPortal © 2005-2018