Programming
[Screencast Android #1] – Ciao Mondo
Mar 2nd
Questo è il primo episodio di una serie di screencasts in italiano (o lezioni video) dedicati al mondo della programmazione Android.
In questa prima puntata creeremo una semplice applicazione, un tipico “Ciao Mondo” e la faremo girare sull’emulatore.
English
This is the first episode of a series of screencasts talking about Android programming.
In this first video we will make a simple application: a typical “Hello World” and we will make it run on the emulator.
Language: Italian.
Catch USSD responses
Feb 17th
Android APIs lack a system to grab the response of USSD codes. Don’t you think this is a bad issue? Without it it’s impossible to make, for example, a program that captures the USSD response for a credit request to the operator, forcing a developer to use work-arounds for the same goal, like web requests. What do you think?
Rokon Game Framework
Feb 16th
Android really needs a solid framework. Specifically, a multimedia multipurpose framework. Something to help game developers in their hard work. Rokon Framework is an open source project that aims to that. It started with very few library functions, some months ago, and now it’s becoming something serious.
Give it a look and if you are going to try it, share your feedback!
Note for the Rokon developer: please fix your Wiki page on your site. Your tutorials have been (and they are) inaccessible for days!
Android Tip – How to generate random numbers
Feb 16th
In every programming language, you have sometimes to generate a random integer number in a defined range.
Here is how you can do it in Android.
First, declare and initialize the generator:
Random generator = new Random();
Then, get a random number:
int n = generator.nextInt(n);
where n is the upperbound limit.
La nuova community di sviluppatori Android italiani!
Jan 6th
Vi dò il benvenuto alla nuova community dedicata a noi sviluppatori Android italiani. Ho voluto creare questo spazio dove riunirci perchè ad oggi, 6 Gennaio 2010, sento la mancanza di una vera community che ci riunisca e che faccia sentire la nostra voce. Io mi chiamo Marco, ho quasi 26 anni e sono un felicissimo possessore di un HTC Magic (Tim) con rom Cyanogen. Studio Ingegneria Informatica presso La Sapienza e ho da qualche tempo iniziato ad interessarmi alla programmazione per il mondo mobile.
Il mondo Android è in grandissimo fermento, lo sappiamo tutti. Proprio ieri è stato annunciato il primo vero telefono Android “made in Google”, il Nexus One. E il nostro amico robottino verde sta cominciando seriamente a far tremare le certezze di tante multinazionali che pensavano di avere il campo libero sull’argomento dei “webfonini” (perdonatemi il triste nomignolo).
Le vere sfide cominciano adesso, perchè questo mondo in grande fermento ha bisogno di applicazioni, migliaia di applicazioni e giochi per divertire e soddisfare le esigenze di un sempre crescente numero di utenti che si stanno convertendo. Sta a noi fornire loro ciò di cui hanno bisogno. E convincerli ad aver bisogno di qualcosa che ancora non esiste, se necessario
Allora sfoderiamo la nostra creatività e le nostre capacità, uniamo le forze e diamoci da fare. Presentiamo i nostri lavori alla community nazionale e internazionale e cerchiamo di tirarne fuori qualcosa. Ma soprattutto cerchiamo di essere attivi e di aiutarci vicendevolmente con le (innumerevoli) sfide che ogni ambiente di sviluppo (più che mai uno mobile) ci presenterà. Riempiamo questi spazi con nostri articoli, impressioni, idee per nuove applicazioni, tutorial, tips ‘n tricks e quant’altro per far progredire tutti. Chissà che la cosa non confluirà in un team di programmazione e non ci si incontrerà nella nostra nuova sede in California a lavorare tutti insieme su qualche grande progetto?
Ok, smetto di sognare, sebbene un pizzico di follia sia proprio quel che ci serve per riuscire nella creazione di qualcosa di nuovo!
Non mi resta che ringraziarvi per il vostro tempo e sperare di incontrarvi tutti in questa nuova community, pronti a condividere la nostra conoscenza. Buon inizio di anno e a prestissimo! ![]()
MediaRecorder vs AudioRecord
Sep 8th
You know, with the MediaRecorder class it’s easy to capture video from camera and audio from mic, but you have to specify an encoding format and an output file to store the byte stream.
Looking around, I see that the AudioRecord class allows to capture audio from the mic and “process” it without saving it to a file. I’m going to need this to detect if some sounds are getting produced by an user to the mic and how loud these sounds are.
Have you any experience with the using of this class? I’d like to go deep with that and maybe I will read documentation trying to get something, but if you already used it I’d be glad to know your results. Please leave a comment to this post if you can help me, thanks.
Android Game Development: not so clear?
Aug 30th
Imho, the Android documentation is really well written and helpful, but it lacks of examples. Hints are given where needed (for example, in the View class docs it’s clearly written that you can’t update the main UI thread from an external thread, and you should use a handler), but they don’t give us concrete examples, as Adobe did with Actionscript 3 docs.
So I think it’s not easy to dive into this ocean without the guide of someone who has already broken his head on a problem. I’m trying to write some simple tutorial for some common tasks. In a few days (maybe hours) I’m going to release a sort of simple cheatsheet that will help updating the views from an external thread/timer. Come back soon if you need it.
Book: Pro Android 2 Games
Aug 24th
Apress is going to release a new Android book, following up the previous Pro Android: Pro Android 2 Games.
As the name says, it should be focused on Android game programming and I bet it will be a best seller. I will confess you: I’ve been for a span of time a Flash games developer and I’m having some difficulties going back to Java for this.
Without doubts programming with Actionscript 3.0 is easier and I was able to focus on the game mechanichs rather than the Java language objects, try/catch blocks, threads, memory leaks and performance issues. So I’m one of those who are expecting a lot from this and forthcoming books.
