Smart Card di firma digitale compatibili CNS

E' passato un bel po' di tempo dal mio ultimo post. Sono stati mesi molto concitati nei quali sono stato oberato di lavoro (e di questi tempi devo dire "per fortuna") e pertanto mi è mancato il tempo da dedicare al mio blog. Dopo tutti questi mesi di cose da scrivere ne avrei davvero tante ma preferisco parlare di una questione che mi ha creato qualche problema con i clienti che usano la mia CNS API.Come avevo scritto in un mio precedente post (La Carta Regionale Servizi) le specifiche CNS definiscono dettagliatamente il file system, il contenuto di una CNS, il formato record dei dati e, cosa molto importante, il formato e il contenuto del certificato di autenticazione. Usando la mia CNS API è possibile accedere a tali contenuti in maniera estremamente semplice ed estrarre, ad esempio, il codice fiscale del titolare della CNS, il suo indirizzo di residenza, il suo certifica... [Prosegue]

Android System Properties

While I was developing an Android app for a customer of mine, I asked to myself:- "which are the system properties available on Android Platform?".I cannot find any exaustive page on internet speaking about that, so I wrote this post to share what I discover.I wrote a simple app that prints in the log the system properties. This is what I found: android.vm.dexfile:true java.runtime.name:Android Runtime java.runtime.version:0.9 java.vendor:The Android Project java.vendor.url:http://www.android.com/ java.vm.version:1.0.1 java.vm.vendor:The Android Project java.vm.name:Dalvik java.vm.vendor.url:http://www.android.com/ java.vm.specification.name:Dalvik Virtual Machine Specification java.vm.specification.vendor:The Android Project java.vm.specification.version:0.9 java.io.tmpdir:/sdcard java.library.path:/system/lib javax.net.ssl.trustStore:/system/etc/security/cacerts.bks jav... [Prosegue]

LWUIT on Android

Last month I ported a couple of my J2ME/LWUIT apps on Android. I used the LWUIT port from Thorsten [1]. I downloaded the source code from LWUIT incubator SVN [2], but I spent a lot of time in merging the LWUIT original classes with the Thorsten's classes needed to port to Andoid and then I spent a lot of time again to produce a .jar usable with Android SDK. In this post I want to share the Eclipse project that I created to compile and jar the Thorsten's LWUIT Android port and I want to show how to write a simple HelloWorld LWUIT-Android project. Requirements: 1) Eclipse Helios or later2) Android SDK3) LWUITPortAndroid eclipse projectnz You can download LWUITPortAndroid from here:LWUITPortAndroid.zipYou may want to update the source code to the latest version of Thorsten's port. If so check out the latest Thorsten's port from the SVN url above and overwrite the classe in my project. I... [Prosegue]

Very poor image scaling in LWUIT? Solved!

Working on a recent project involving the visualization of images from a server on mobile devices' (small) screens, I got in touch with a serious problem: LWUIT has a fast, but very poor scaling algorithm. The quality of the images scaled to be smaller is very poor, as much as texts and numbers cannot be read on the screen. Because I had to solve the problem I looked for a solution and I found the library J2ME Army Knife (http://www.j2mearmyknife.com/) that suppiles several utility classes to manage images.The really interesting classes that helped me to solve my problem was: ImageTransformationResize and ImageTransformationSmooth The following function resize an image to a given width and height: public static Image scaled(Image img, int w, int h){    SmartImage simage =        new SmartImage(img.getRGB(),     &... [Prosegue]