Hi,
We are using TeeChart Android Lib and I have the source code. According to your FAQ, We can integrate part of the source code into our application instead of the whole library. How can I do that? Is there any examples here? BTW, we currently only use the Pie Chart in our application.
Thanks,
Alex
How to use fragments of source code in Java
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: How to use fragments of source code in Java
Hi Alex,
Instead of referencing a compiled library you need to set a source code library reference in your project. We don't have a public demo available but that's how we work with the sources most of the time.
Instead of referencing a compiled library you need to set a source code library reference in your project. We don't have a public demo available but that's how we work with the sources most of the time.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: How to use fragments of source code in Java
Hi Narcís,
Thanks for the reply. We will try to used library reference in stead of the apk file. Our main goal is to trim down the package size(it is over 1M). As I mentioned above, we only use the Pie Chart in our application. Could you provide some directions on how to trim the unnecessary code?
Thanks,
alex
Thanks for the reply. We will try to used library reference in stead of the apk file. Our main goal is to trim down the package size(it is over 1M). As I mentioned above, we only use the Pie Chart in our application. Could you provide some directions on how to trim the unnecessary code?
Thanks,
alex
Re: How to use fragments of source code in Java
Hi,
You can start removing the files in the "styles" folder that correspond to the classes you are not using. For the Pie series you only need Pie*.java, Circular.java, and some general classes like Series.java, SeriesCollection.java, SeriesMarks.java,...
And you can probably remove everything in the "functions" folder, "editors", "exports", "themes", "tools",...
To get the "as little as possible", I'd remove everything but Pie.java. And then, looking at the errors you get, I'd start adding the missing classes.
You can start removing the files in the "styles" folder that correspond to the classes you are not using. For the Pie series you only need Pie*.java, Circular.java, and some general classes like Series.java, SeriesCollection.java, SeriesMarks.java,...
And you can probably remove everything in the "functions" folder, "editors", "exports", "themes", "tools",...
To get the "as little as possible", I'd remove everything but Pie.java. And then, looking at the errors you get, I'd start adding the missing classes.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: How to use fragments of source code in Java
Thank you very much for the detailed instruction. Really appreciate it. I will do as you suggested.
Thanks,
Alex
Thanks,
Alex