Appcelerator Titanium external libraries - mobile

I am using appcelerator titanium and i am trying to build a mobile app that allows you to change an imageview brightness and contrast by using touch events.
It is not possible by using Titanium standard features, so i am guessing if i can import some external libraries like pixastic that can help me do so.
is it possible? how can i do that?
Thanks

sure. pixastic is a javascript library so just include it with
Ti.include("path/to/pixastic");
if you intent to write a native code for your algorithms you can enrich your project with a objective-c module (or java module).

Related

Overaly image functionality for cn1-codescan lib

I am using this lib https://github.com/codenameone/cn1-codescan to scan QR codes in my application.
As I understand there is no functionality to change scanning/camera view right now in this lib
Currently, scanning view for Android it is just fullscreen camera view and for iOS smth like this http://zbar.sourceforge.net/iphone/userguide/scanning.html
Is there any way to add an overall image or change that camera view? Or is there any plans to add some LayredPane to the camera view in this lib?
This won't work for cn1-codescan since that library is implemented as an external native view. So we're effectively leaving Codename One to perform the scan. You can implement this natively within the library.
Alternatively you can build a library that uses a widget approach instead of moving to a separate activity/view like the current solution. If it uses a peer component (like the camera kit or the Google Maps cn1libs) then you can implement overlays in Codename One.
Notice that we only use zbar on iOS and on Android we use an activity which uses an external app to do the scanning. There's a 3rd party QR scanner (from Little Monkey) which embeds an Android implementation into the cn1lib. I'm not sure about the overlay implementation there.

How to extract metadata from an image

I'm a newbie to codenameone. I'm trying to develop some image-processing app. I need to know if the image has geotagging information and eventually extract those. Is there a way to do that in CodenameOne?
I'm aware of the methods based on plain javax.imageio packages, but I know that those are not available in codenameone.
Thanks for any hints!
We don't have such an API as it's pretty different between Android/iOS. You can write something like this in pure Java and parse the image header which should be relatively simple.
Or you can build a cn1lib on top of native code e.g. see this library, It does that for video which is arguably harder.

Create a library with codenameone to use on iOs and android

I was wondering if it is possible to create a library with codenameone that can be used in a native iOs/Android/... App. This library should contain the business-logic and the rest of the app should be implemented native.
Is thought this isn't possible, but the technical advisor of a client insists that this is possible.
I misread the original question, you are correct its impossible to do this and impractical to do this since the size of the library will be too big. If you want to create a library for iOS with Java the best approach would probably be J2Obj-C which was designed specifically for that purpose: https://code.google.com/p/j2objc/
Originally I had referenced these which allow you to create library projects for use with Codename One which might be the source of the confusion:
http://www.codenameone.com/3/post/2013/07/jaring-and-libraries.html
http://www.codenameone.com/cn1libs.html

choosing 3D library / platform for mobile and Desktop application

I want to build an application for mobile (ios,android) and Desktop (Windows) or Web.
The application will look like this: a 3D object which the user can play with the camera perspective around it and some menus.
What I need is to manipulate a 3D Object like torus or tube. by manipulate I mean: change materials and edit the object like a polygon. of course I also need menus and communication to a server.
*Optional: I am not sure if I need to load 3D model from a file.
What I don't understand is should I look for all in one solution or combine a cross platform framework with other libraries? Are Game engine suitable for this task?
My options so far:
Use Three.js with PhoneGap and write in java script
Use OGRE and write in C++ with some cross-platform framework that allow me to write in C++.
I never developed for mobile and I wonder about those cross-platform frameworks: does the application's size is big? does the application runs well? which obstacles should i have comparing writing separate applications for each platform?
Thank you for your help
Might want to look at libgdx .

PhoneGap or Appcelerator Implementation

This is more of an advice question rather than a specific question. I am developing an application for mobile devices. Its basic functionality will be to open PDF files, Video files, and to open certain webpages. Would this be best implemented in PhoneGap or Appcelerator?
PhoneGap and Appcelerator Titanium are both very popular open-source JavaScript frameworks for packaging and deploying mobile applications. At Universal Mind, we have clients that leverage both and clearly both frameworks have countless successful implementations on numerous platforms. However, there are enough significant differences between the two products that it doesn’t really make that much sense to compare them directly. The fundamental difference is that PhoneGap is a web-based solution where Appcelerator Titanium is a pure JavaScript API that creates native code. At the core, they serve different functions for an organization.
PhoneGap:
JavaScript API that provides access to Native Functions
Supports HTML5/CSS3
Supports Web Standards & Re-use Across Enterprise Apps
Supports DOM based JavaScript Libraries/Frameworks
Supports the most platforms
Appcelerator Titanium:
JavaScript API that provides access to Native Functions
Compiles to Native Code
Could provide better performance.
So as per my view i prefer Phonegap
I think a key difference implied is that PhoneGap uses HTML and CSS to render the user interface while Appcelerator renders platform specific native user interface components.
Phonegap have very small list of api that enables it to adapt itself to all(partially) platform, whereas appcelerator have larger api. That's is why they are emphasized on only two platform(completely).
I think with this understanding i would prefer appcelerator for complex applications and phonegap for multiple platform.

Resources