Posts Tagged ‘Android’

Mortar – Automated Admob Integration for ShiVa Android Projects

May 29th, 2011

Today we released version 0.75 of Mortar, our automation tool for ShiVa projects! Current feature is AdMob integration by pressing a single button. More features are planned:

  • Custom scripting possibilites
  • MAOF integration
  • MASS integration
  • Other enhancements

Check it out at http://code.google.com/p/ma-sh/: either by downloading the AIR file or getting the source code via SVN!

MASH-up

May 25th, 2011

Today we released the first iteration of MASH, the “Modern Alchemists ShiVa Libs”:

Modern Alchemists ShiVa Libs is a bundle of custom written ShiVa addons. All projects rely on ShiVa 1.9 and UAT 1.2 beta 7. This doesn’t mean it won’t work with older versions, but the docs might refer to code hockups which weren’t present back then.

All code is under LGPL License. If you like our work, tell us! If not, tell us even more! Got a code fix? Tell us… you get the idea ;)

It features:

  • MASS: In-App-Purchase for iOS and Android
  • MAOF: OpenFeint for iOS and Android
  • Mortar (TBA): automating the world!

You can get all the files/code either from the download section or via SVN at  google code: http://code.google.com/p/ma-sh/

Android: Could not reserve enough space for object heap

April 15th, 2011

If you ever get an error like
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

or
BUILD FAILED
...ant_rules_r3.xml:361: The following error occurred while executing this line:
...ant_rules_r3.xml:174: apply returned: 1
,
don’t let yourself get fooled about some threads found on google.

The answer why your VM crashes is, that the heap space trying to be allocated is not free in physical memory.

That means: try to decrease the setting for max heap space in the file android-sdk-windows/platform-toolsdx.bat to smaller value. I had to change it to 512M instead of 1024M, meaning:
set defaultMx=-Xmx512M

And tada, off you go!

Update: Drag and drop install APK script

April 5th, 2011

I updated the Drag and drop install APK script post, such that it works with the latest Android SDK! Hope it helps ;)

AIDL Files: Eclipse Not Generating Source Code?

March 14th, 2011

If you ever wonder why eclispe doesn’t generate a source file for your AIDL file, try installing the latest Eclispe version (currently Helios)! It might be a bit time consuming, since you also have to install the Android Development Tools (ADT) again, but it’s worth it… as it then magically works!