Multipage TIF to PDF

17 February 2011

Recently I’ve continued the porting of iText adding the support for a new image type: multipage tif. The only problem with this update is that actually it’s really slow and probably with very complex image files it can hang the player for too long. Probably I should modify the ImageElement.getInstance method and make it asynchronous [...]

Read the full article →

purePDF and transparent BitmapData

14 January 2011

Recently I’ve updated purePDF to a new version fixing one bug which caused problems with PNG images. However when you’re trying to add BitmapData with transparency  to a pdf document you probably get black backgrounds to your images. This is because internaly purePDF converts bitmapdata into 24bit tiff images, so no alpha informations. This is [...]

Read the full article →

Android experiments

9 January 2011

As you probably understood during last days I’m completely absorbed in Android development. While experimenting new things ( it remembers to me the first days with Flash ) I did a couple of applications and I’ve published them to the market ( it takes less than one hour to be published on the market, just [...]

Read the full article →

How-to debug native code with Android

14 December 2010

This is a step by step guide for executing and debugging native code on Android with Eclipse. 1. Prerequisites The SDK version used for this guide is Froyo with the NDK r4b ( crystax release ). Also Eclipse CDT plugin it’s very useful for our purposes, so install it. Last plugin to install it’s the [...]

Read the full article →

Playing with a LocalActivityManager bug

26 November 2010

If you already used the ActivityGroup class you probably used also the LocalActivityManager instance to manage your group’s activities. I was creating my activity which should also manages its internal history ( using a ViewFlipper for animating the activity views ). The problem came out once I tried to destroy an activity from the history using [...]

Read the full article →

Reading resource files from native code

24 October 2010

If you’re working with android-ndk and you want to open an asset included in your apk package, you should make a request via jni to the Resource manager in your java code. Something like: 12345678910111213141516public int[] openAsset( String path ) {    AssetFileDescriptor ad = null;    try    {       ad = [...]

Read the full article →

Disable asset compression with Android aapt

9 October 2010

Trying to embed all the assets resources into my final apk was not so easy as I tought.. at least using the ADT Eclipse plugin for building project. In fact, using AssetManager.openFd to return to the C++ code a FileDescriptor does not work with compressed sources. When aapt compile the resources into the apk file [...]

Read the full article →

Android: Create your own sharing app

18 September 2010

One of the first applications I did for Android was a very simple application which simply takes a picture using Camera and then send it to a remote server. Very simple, but it introduced to me into the android world and the notion of activities and communication between different applications. A little addition to this [...]

Read the full article →