Integration with Samsung pressure-sensitive pen

Hi,

I have a new project where I have to use the Samsung pressure-sensitive pen input library.

The SDK from Samsung is easy to implement but only works on Android SDK…

There is any way to use the Samsung Pen using Corona SDK?

Thanks in advance [import]uid: 14556 topic_id: 31188 reply_id: 331188[/import]

Yes, you have to buy Corona Enterprise which is VERY expensive … [import]uid: 108334 topic_id: 31188 reply_id: 124717[/import]

You can with the Corona Enterprise version for Android. With this version, we distribute Corona as a JAR file that you can include in your own Android app projects (using the Android SDK) and it allows you to extend Corona’s Lua API with your own in Java. It just requires you to be knowledgeable with how to develop apps using the Android SDK and Java. [import]uid: 32256 topic_id: 31188 reply_id: 124720[/import]

I am not sure I 100% what you mean.
I have a game on the market developed in native Java and it would be really outstanding if the Corona Enterprise would be affordable to Indy developers (which is not the case).

If you have a complete game developed in Corona (non-Enterprise) and now would like to add third-party SDKs.

What needs to be done ?
Regards,
Damir. [import]uid: 108334 topic_id: 31188 reply_id: 124727[/import]

Damir,

How it works is you set up an Android app project via the Android SDK or via Eclipse with the Android plugin. You would then include the Corona library just like how you would include any other library in an Android project, plus set up a “corona” folder under the Android project which would be compiled into your APK during a “prebuild” step. That “corona” folder would include all of the scripts and assets just like how you are doing it today, minus the “build.settings” file and the application icon files since you can set those up via your Android project according to Google’s development guidelines.

Since you would be developing your Android app using the Android SDK, you would have FULL control over how to set up your app. This means that you can set up your AndroidManifest.xml file any way that you like (including permissions and other manifest settings), exclude libraries that Corona normally includes with Corona Simulator builds (provided that your scripts don’t depend on them), and include any 3rd party library that you want (such as the Samsung Pen library). Our Corona library provides a CoronaActivity class which runs your Corona project and you would just set up your app to run that CoronaActivity. Simple.

Now, if you wanted to provide access to 3rd party library, then you would just add them to your Android app project. If you want to provide access to that 3rd party library’s APIs, then we provide Java classes in the Corona library that allow you to extend the Lua API in your Java code, just like how we do it internally in our code. This means that you can create your own Lua functions and globals that are accessible in your scripts to access anything in the Android OS or to access 3rd party libraries. You’ll have full control.

The reason that the Corona Enterprise version exists is because we’ve been receiving way too many features requests and demands over the past couple years. We don’t have the time and resources to implement everything. Especially for features that are low in demand (ex: QR codes support) or features that are region or cellular service specific. So, for the core Corona version we have to prioritize and focus on what will satisfy the majority. The Enterprise version is for those who need functionality that is not in our core APIs or for those who want full control of their Android/iOS apps.

I don’t know all of our pricing details (nor do I set the prices), but I would recommend that you contact us for pricing and a trial version if this interests you. It sounds like you are already familiar with Android development, so it might be worth a look.
http://www.coronalabs.com/about/contact/ [import]uid: 32256 topic_id: 31188 reply_id: 124736[/import]

Is there any Enterprise edition of Corona witch is the same Corona that I’m using now in sulimulator but allows to include C modules?
There a a lot of free C modules on internet and LUA website that allows reading jpg exif data, croping and resizing images and a lot of other basic things. [import]uid: 138389 topic_id: 31188 reply_id: 124745[/import]

Thank you Joshua for your detailed explanation.
That sounds awesome but I am afraid it is not affordable to me.

Is there a similar process for iOS ?

Regards,
Damir. [import]uid: 108334 topic_id: 31188 reply_id: 124749[/import]

vovasoft,

You “can” include native C/C++ libraries with Corona Enterprise, but you wouldn’t actually load them via Corona. On Android, you would compile these libraries via the Android NDK and in your Java code you would load those libraries and then access their extern/static functions via JNI. Google’s NDK documentation covers how to do this. You would then use Corona’s Java classes to extend the Lua API so that when a Lua function gets called, your Java called would receive that call and you in turn would call the C/C++ library’s function. The idea is that your Java code is in charge and is responsible for bridging the gap between the Corona library and that 3rd party library that you are using, whether it be written in C/C++ or Java.

You can do the same with our iOS version, but just remember that Apple does not allow you to load libraries on iOS, so you must statically link all native libraries into your app bundle. [import]uid: 32256 topic_id: 31188 reply_id: 124763[/import]

Damir,

Corona Enterprise includes an SDK for both iOS and Android.

Our iOS SDK works a bit different. My understanding is that it includes a tool that generates an Xcode iOS template which has all of the hooks and generated code to make a Corona project work. Unfortunately, I don’t know all of the details since I’m the Android developer here at Corona Labs, but you can get more details if you contact us via the link I posted earlier. [import]uid: 32256 topic_id: 31188 reply_id: 124764[/import]

@ Joshua Quick
Thank you for explanation. We should finish our business app main project first on Android. If it we will have a lot of downlods we will think about Corona Enterprise because we have to include C modules and create a widget.
Will it be possible to connect the widget with my corona app that previuosly was developed in lua ? [import]uid: 138389 topic_id: 31188 reply_id: 124772[/import]

>> Will it be possible to connect the widget with my corona app that previuosly was developed in lua ?

I’m not sure. How do you currently register the C library’s functions into Lua now? Do you just need access to the lua_State? If so, we provide access to it via a Java wrapper using the JNLua library. The Java [lua]LuaState[/lua] class is documented here…
http://docs.coronalabs.com/native/enterprise/android/html/index.html
[import]uid: 32256 topic_id: 31188 reply_id: 124787[/import]

Hi guys - I wanted to chime in very quickly.

I won’t add any more on how Corona Enterprise works since Josh already did a great job.

But I did want to comment on the pricing. Damir, Corona Enterprise does indeed cost more than Corona SDK, but we think the price is very reasonable for the value, especially for small/indie developers. In fact, well over 50% of our current Corona Enterprise customers are small/indies.

Happy to talk with anyone about Corona Enterprise. Feel free to email me at davidATcoronalabs

[import]uid: 10668 topic_id: 31188 reply_id: 124808[/import]

Yes, you have to buy Corona Enterprise which is VERY expensive … [import]uid: 108334 topic_id: 31188 reply_id: 124717[/import]

You can with the Corona Enterprise version for Android. With this version, we distribute Corona as a JAR file that you can include in your own Android app projects (using the Android SDK) and it allows you to extend Corona’s Lua API with your own in Java. It just requires you to be knowledgeable with how to develop apps using the Android SDK and Java. [import]uid: 32256 topic_id: 31188 reply_id: 124720[/import]

I am not sure I 100% what you mean.
I have a game on the market developed in native Java and it would be really outstanding if the Corona Enterprise would be affordable to Indy developers (which is not the case).

If you have a complete game developed in Corona (non-Enterprise) and now would like to add third-party SDKs.

What needs to be done ?
Regards,
Damir. [import]uid: 108334 topic_id: 31188 reply_id: 124727[/import]

Damir,

How it works is you set up an Android app project via the Android SDK or via Eclipse with the Android plugin. You would then include the Corona library just like how you would include any other library in an Android project, plus set up a “corona” folder under the Android project which would be compiled into your APK during a “prebuild” step. That “corona” folder would include all of the scripts and assets just like how you are doing it today, minus the “build.settings” file and the application icon files since you can set those up via your Android project according to Google’s development guidelines.

Since you would be developing your Android app using the Android SDK, you would have FULL control over how to set up your app. This means that you can set up your AndroidManifest.xml file any way that you like (including permissions and other manifest settings), exclude libraries that Corona normally includes with Corona Simulator builds (provided that your scripts don’t depend on them), and include any 3rd party library that you want (such as the Samsung Pen library). Our Corona library provides a CoronaActivity class which runs your Corona project and you would just set up your app to run that CoronaActivity. Simple.

Now, if you wanted to provide access to 3rd party library, then you would just add them to your Android app project. If you want to provide access to that 3rd party library’s APIs, then we provide Java classes in the Corona library that allow you to extend the Lua API in your Java code, just like how we do it internally in our code. This means that you can create your own Lua functions and globals that are accessible in your scripts to access anything in the Android OS or to access 3rd party libraries. You’ll have full control.

The reason that the Corona Enterprise version exists is because we’ve been receiving way too many features requests and demands over the past couple years. We don’t have the time and resources to implement everything. Especially for features that are low in demand (ex: QR codes support) or features that are region or cellular service specific. So, for the core Corona version we have to prioritize and focus on what will satisfy the majority. The Enterprise version is for those who need functionality that is not in our core APIs or for those who want full control of their Android/iOS apps.

I don’t know all of our pricing details (nor do I set the prices), but I would recommend that you contact us for pricing and a trial version if this interests you. It sounds like you are already familiar with Android development, so it might be worth a look.
http://www.coronalabs.com/about/contact/ [import]uid: 32256 topic_id: 31188 reply_id: 124736[/import]

Is there any Enterprise edition of Corona witch is the same Corona that I’m using now in sulimulator but allows to include C modules?
There a a lot of free C modules on internet and LUA website that allows reading jpg exif data, croping and resizing images and a lot of other basic things. [import]uid: 138389 topic_id: 31188 reply_id: 124745[/import]

Thank you Joshua for your detailed explanation.
That sounds awesome but I am afraid it is not affordable to me.

Is there a similar process for iOS ?

Regards,
Damir. [import]uid: 108334 topic_id: 31188 reply_id: 124749[/import]

vovasoft,

You “can” include native C/C++ libraries with Corona Enterprise, but you wouldn’t actually load them via Corona. On Android, you would compile these libraries via the Android NDK and in your Java code you would load those libraries and then access their extern/static functions via JNI. Google’s NDK documentation covers how to do this. You would then use Corona’s Java classes to extend the Lua API so that when a Lua function gets called, your Java called would receive that call and you in turn would call the C/C++ library’s function. The idea is that your Java code is in charge and is responsible for bridging the gap between the Corona library and that 3rd party library that you are using, whether it be written in C/C++ or Java.

You can do the same with our iOS version, but just remember that Apple does not allow you to load libraries on iOS, so you must statically link all native libraries into your app bundle. [import]uid: 32256 topic_id: 31188 reply_id: 124763[/import]

Damir,

Corona Enterprise includes an SDK for both iOS and Android.

Our iOS SDK works a bit different. My understanding is that it includes a tool that generates an Xcode iOS template which has all of the hooks and generated code to make a Corona project work. Unfortunately, I don’t know all of the details since I’m the Android developer here at Corona Labs, but you can get more details if you contact us via the link I posted earlier. [import]uid: 32256 topic_id: 31188 reply_id: 124764[/import]