Simple generator based on Android Pattern