Posts Tagged ‘Console’

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!

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 ;)

Drag and drop install APK script

September 30th, 2010

Update April 5th 2011: since the latest Android SDK, the adb tool has been moved to the platform-tools folder. I updated the script to point to the correct directory.

If you want to be able to just drag and drop your APK file onto a CMD file, and let it be installed on the connected device automatically, use something like this (simply copy this to your *.cmd file):

New:

:: Just some debug output:
echo Attempting to install file: %1
 
:: Enter drive letter:
d:
 
:: Enter path to adb here:
cd D:\android_sdk on 10.17.1.205\platform-tools
 
:: Install file:
adb install -r %1
PAUSE

Old:

:: Just some debug output:
echo Attempting to install file: %1
 
:: Enter drive letter:
d:
 
:: Enter path to adb here:
cd D:\androidsdk\tools
 
:: Install file:
adb install -r %1
PAUSE

PS: Of course one could use set varNAme=__PATH__ instead of the cd-ing, but my path has some spaces and that leads to troubles.

Simulate incoming call with Android emulator

September 14th, 2010

First be sure that an emulator is running.
Then open up the console with Start >> Run (or press Windows + ‘r’) and type in ‘cmd‘.
This will bring you to something like:

 

Like shown above, type in ‘telnet‘ and press enter. The result will look like:

 

Here type in ‘o localhost 5554‘ as shown here:

 

This will establish a connection to the emulator.
You can see the port number to be entered in the title bar of the emulator window.
If this succeeds, it will open the Android Console:

 

Here you can use all kinds of commands.
To simulate a call, type ‘gsm call 066712345‘:

 

The result is an incoming call at the emulator:

 

To cancel the call, type ‘gsm cancel 066712345‘.
See http://developer.android.com/guide/developing/tools/emulator.html#telephony for more information about gsm operations.

Use ‘exit‘ to exit the Android Console and ‘quit‘ to quit telnet.
Hope that helps!

Great tutorial on using the PushButton Engine console

November 25th, 2009

Natebeck has posted a great tutorial on how to use the PushButton Engine console. I guess there’s no need to say how important consoles can be in the final stage of game development (read balancing). It covers the basics as well as how to add your own console commands – and a little spoiler: PBE does make this really easy, so check it out at his blog!