Archive for the ‘Android’ Category

* 0.2 alpha – build 20130615

Posted on June 16th, 2013 by Alex. Filed under SpaceCoord 2.

SpaceCoord2LevelDisplayFinally I managed to integrate an interactive tutorial into the game. I also added the option to choose a difficulty level for the professional combat pilots out there. Try it out!

What else is new in this version?

  • added German translation
  • improved controls
  • several bug fixes



Get it on Google Play



* spacecoord 2 tutorial

Posted on April 22nd, 2013 by Alex. Filed under SpaceCoord 2.


SpaceCoord2 Main Menu
The first thing that greats you, is the main menu:

  • New – Start a new game. If you played a game before, but have not finished yet. The new game will overwrite the state of the old game.
  • Continue – Continue with a previous game. If you finished the previous one, this button is grayed out.
  • Upgrade – Here you can upgrade your ship with new weapons and features. However it is not yet fully tested and will be added in a release later.
  • Options – Change the volume of the music and sound effects
    • Credits – The game would not have been the one that it is now without the help of numerous people willing to share their work under a license that allows the use. If you want to know, where the graphics, fonts, music and sound effects are coming from, click here.
  • Exit – Save the current state of the game (if one is currently going on) and exit.

Game Layout

SpaceCoord2 Scene1
This image shows a scene in the game. On the left is the panel which allows you to enter another scene offering a different functionality each:

  • FTLFaster Than Light: In this scene, you can jump almost instantly to another sector in the galaxy. The farther away the sector from your current one, the more energy it costs. The energy display shows the energy that is left, after the jump was executed. Once the jump drive is engaged, it requires a huge amount of energy and cannot be interrupted. But you can leave the scene at any point in time.
  • SUB – Sublight Scene (shown in the image above). Whenever you are roaming around in the sector, you use the sublight engines. They are not as efficient as the jump drive compared to the distance, but they allow a precise navigation. Weapons can only be fired while the ship is traveling below the speed of light. With the left control, you control the ship (“MOVE”). Be aware of obstacles and planets damaging or even destroying your ship.

    With the right control you can fire your energy weapons and lasers. They require energy and as long as your reserves are filled, you can fire lasers. They are not as powerful as the torpedoes (see below). Hold the red marked button in the direction in which you want to fire. It takes a moment to charge the laser banks and to reload them.

  • SpaceCoord2 Torpedo SceneTOR – This is your torpedo room. Torpedoes are very powerful, but slow weapons. However your stock is limited, so take care in aiming by moving the red bar in the radar circle towards the direction of the enemy. The selection field allows you to select an appropriate torpedo which differ in its capabilities. However this will be implemented later.
  • SHD – Your ship is equipped with the latest shielding technology preventing any other object or energy penetrating the hull and armor. Shields require energy and can be recharge by using the ship’s resources. A light blue circle around any object shows the state an strength of the shield. If it is depleted and inflicted damage is compensated by the armor. If the armor is lost, your ship explodes and the galaxy is taken over by the evil enemies.


On top of the screen are displayed the time that is left to clear the galaxy, the energy level (TIME, ENERGY on the right), the state of the shields and armor (SHD and AMR on the left). The game is won, if all hostile ships have been eliminated. Or it is lost, if your ship exploded or you ran out of time or energy.

SpaceCoord2 Little IndicatorSpace is vast. Fortunately your ship is equipped with a short range scanner localizing objects that are within the sector, but are far to see. Watch out for the little round indicators which are conveniently integrated at the boundary of the Sublight Scene (“SUB”) by your ship’s computer.


Warning, the following text may contain spoilers. To reveal it, mark the black gap below with your mouse.

Beware of planets. A crash landing on a planet destroys your ship immediately.

There are several objects that will harm you and your crew. But help is still available, but hidden in the galaxy. At space stations you can refuel your energy reserves and do some maintenance to repair your armor. However you have to park your ship not so far away from it to use the services of the space stations.


Get it on Google Play


* initial release (version: 0.1 alpha, build 20130421)

Posted on April 22nd, 2013 by Alex. Filed under SpaceCoord 2.

SpaceCoord2 Icon


The formerly peaceful galaxy has been taken over by evil enemies. Only one ship stands still in their path and fights back. But the time and resources are running short and every action needs to be planned ahead. Can you free the worlds and bring back the peace?

The Internet permission is for displaying Ads only. There are no ads shown during the game play.


I uploaded the initial release of SpaceCoord 2 to Google Play. It is a reimplementation of classic game that I used to play in my childhood. Please note that this version is an early alpha and maybe full of bugs. Hence I would appreciate, if you report any trouble or bugs. Also suggestions and feature requests are most welcome. Over the coming days/months/years, I am going to add features and squash the bugs, so stay tuned!

Credits and Licenses

The following sound files used in this game, are from and licensed under the CC-Attribution License:

The following sound files are royalty free and downloaded from Teknoaxe:

The following font files used in this game, are from and licensed under the CC-Attribution Share Alike License:


Get it on Google Play


* samsung galaxy s3 – a short review

Posted on July 22nd, 2012 by Alex. Filed under Android.

I got my hands on a Samsung Galaxy S III (or SGS3 or I9300) recently and I must say, it is a very impressive piece of technology. However it also has its flaws that pop up occasionally and which should not be present in a smart phone carrying this price tag. Before you consider of getting an SGS3, you should be made aware of these bugs which are hopefully only software bugs and can be fixed by future updates. Till then the proud owner of an SGS3 has to live with the workarounds provided here. Hopefully Samsung does not drop its premium customers like a hot potato as it happened with the Galaxy S1. It took around a year before Froyo came onto the S1, which was already outdated by that time.

Currently there are three flaws:

Battery charging

To adapt my solar charger to the new phone, some changes were necessary to make the phone to believe that it gets charged by a wall charger. After the modification, the phone drew only 60mA at 5V from the charger. Assuming the battery is very low and considering the capacity of the battery of 2100mAh, it will take 35h to charge the battery not including the power that is required for normal operation. This is unacceptable. However after checking through the charger assuming that something went wrong, I switched off the phone and suddenly it drew 900mA through the charger. This is probably a software bug which will be fixed in an update. In fact on the same day I updated the phone and since then, this problem did not occur any more.

If you have the same problem, shut down or reboot your phone. According to posts in forums this fixed the slow charging issue.

[Update 28/07/2012] Since I updated the software of the phone through the official Kies, I have not encountered this problem any more.

Missing Mass Storage Media Mode

It is most convenient to plug in the phone into the USB port of a host machine and to copy some files such as songs, documents, etc. onto the newly detected drive. However with the SGS3 plugged in, no drive, not even a partition shows up. A search revealed that the so called UMS (USB mass storage device class) mode ahs been removed by Google to give priority to the MTP (Media Transfer Protocol). Why Google chose to go for a literally proprietary protocol developed by Microsoft for an Linux based Android phone is mysterious. Since I am running Debian Stable, support is not be expected for the next few years. Fortunately there are two solutions to this problem:

  1. Using a software such as AndFTP allows me to transfer files easily through the WiFi connection. However the software becomes buggy and slow, if some 500 files need to be transfered.
  2. Using ADB from the android SDK which allows to push and pull files to and from the phone. USB Debugging needs to be activated to do that. ADB also supports the file and directory transfer recursively. Unfortunately the whole SDK needs to be downloaded just to acquire the command line tool.

“Network disabled. Poor connection”

While connecting the SGS3 to my WiFi card in my laptop which can act as an access point does not pose any problem, hooking up the phone to a proper WiFi hotspot needed more effort. After authentication and acquiring an IP address from the DHCP server, the phone marked the connection as not usable, since the connectivity was too poor. The distance between the AP and the phone was less than a meter and everything else such as SGS1 and laptops, were able to connect to it. Playing around with the settings such as Fragmentation or RTS Threshold or the different intervals (DTIM, Beacon) did not lead to any improvement. However I figured out, if the access to the network is configured in such a way that only a static IP address is required, the phone connects to the same AP effortless. Maybe the reason is that I am using a private network starting with 10.X.X.X/24 instead of the usual 192.168.0.X.


* solar panel for galaxy s (i9000)

Posted on May 13th, 2012 by Alex. Filed under Android, Cycle Tours.

For extended cycle trips I am using my Samsung Galaxy S for GPS tracking. However prolonged trips cause a serious power drain on the battery and an external power source is required. Hence I bought a small solar panel (Specs: Rated peak power (Pmax): 3Wp, rated voltage (Vpm): 8.5V) for Rs.450 (approx USD10) and some electronic components to get a constant voltage of 5V corresponding to the output voltage of a USB port.

While testing under several different conditions, if the phone charges, it turned out that the phone discharges at a fast rate, if the solar panel is covered by shade (even slightly) or the sun does not shine orthogonal onto the panel. The reason is that while charging, the CPU of the phone does not enter a deep sleep state in which it is partly switched off reducing the power consumption. If the panel is partly covered, the CPU draws more power than the panel can provide. In addition, it seems that the minimum frequency is set to 200MHz while charging. Hence the CPU runs constantly at 200MHz even if it does not have anything to do causing the power drain. As soon as the power is disconnected, 100MHz and Deep Sleep are added to the available frequencies (1000MHz, 800MHz, 400MHz, 200Mhz). CPU Spy is a small application allowing to check the history of used frequencies.

I did not find any solution to force the Deep Sleep state while the phone is connected to the solar panel (or any other power source). However a developer called existz published TalonDEV, a kernel that allows the CPU to be clocked at 100MHz even while charging. As a nice side effect after installing the kernel is the reduction of the screen brightness whose setting was too high in the Gingerbread-Samsung edition as compared to Froyo.

After installing the TalonDEV kernel, the charging ratings are much better. I still have to do further tests, but if the solar panel is shaded partly, it still charges the phone, which was not achieved before.

[Update 14/05/2012] After some testing with the TalonDEV kernel, I ran into stability problems. Random screen freezes occurred even with the unclocked and the most current version. In addition the back key stopped working and the gallery could not find any images anymore. So I installed another kernel called Semaphore. However only the Semaphore kernel for Ice Cream Sandwich (ICS) supports the 100MHz frequency while charging.

After some further testing, I figured out that the Semaphore kernel clocks the CPU at 100MHz, if the phone is charging through the wall charger and not via USB. So the statement above is not entirely correct. I do not know about the behavior of the kernel that is shipped originally with DarkyROM, since I did not test it. Comments are welcome.

So the trick is to convince the phone that it gets charged by the wall charger. You can check the state, if it charges via USB or AC in Settings -> About phone -> Status -> Battery status. Digging around in the Internet and the disassembly of an emergency charger running on 2 AA batteries which put the charging state into the AC mode, revealed that the +5V USB line needs to be connected to both data lines (D- and D+) through a 470kOhm resistor. I updated the diagram below accordingly. Now whenever I connect the solar panel, the charging state is in AC mode and the CPU is clock at 100MHz at minimum.

Installation – TalonDEV

This section gives a brief guide, how to install the kernel. My Galaxy S is running on Darky’s ROM v10.4.2 [XWJW1] for quite some time now. I am not describing how I installed that one, since the are plenty of videos and installation guides in the forum which are easy to follow. Through DarkyOTA I installed the XXJVU modem, because I experienced some problems with my provider using the modem firmware of the original DarkyROM.

To install the TalonDEV kernel, download the zip file mentioned in the thread. I took, which over clocks the CPU to 1200MHz (as compared to 1000MHz). If you experience problems regarding stability, I suggest taking instead. I have not tried the BIGMEM version yet, since I am happy with the way it is at the moment.

Copy the zip file to your phone (internal SD Card), reboot into recovery (by installing DarkyROM you already know, how to do that) and install the zip file. After the installation is successful, reboot the phone which will take around 5 minutes. So have patience watching the original Samsung S symbol changing its color.

To further tweak the power consumption, I will start playing around with the voltages supplied to the CPU. The application Control Freak allows it easily through a GUI (There are several apps with the same name in Google Play. They are not the right ones.). I will start the testing as soon as I am convinced that the kernel is stable with the current configuration.

Installation – Semaphore

There is a nice installation guide on how to flash the Semaphore kernel in Linux as well as Windows.

The Circuitry

Thanks for planing of that circuit has to go to Abhijit of CEDT (now DESE) of IISc, who is the brain behind that circuit. I am somewhat illiterated, if it comes to electronics.

To get the maximum power out of the solar panel, I am using an LM1086-5V which constantly gives 5V at its output port. A 7805 will also serve the purpose. However the efficiency of that component is not as high as the LM1086. Although there is an LM1086-ADJ which is able to give a range of different output voltages, it will complicate the whole circuit due to the necessity of additional resistors. One aim was to keep the circuit as simple and small as possible. The less components the circuitry has, the lesser is the probability that something breaks midway through an extended cycle tour. And usually I do not carry soldering irons with me while cycling. 😉

The following diagram gives the required specs of the capacitors smoothening the constantly fluctuating output of the solar panel while riding, and the resistor avoiding spikes, if a device is connected to the USB port. I apologize for the somewhat crude diagram, but as I mentioned, I am not a electronics guy.

Version 1 of the converter. The phone charges in USB mode forcing the CPU to run at 200MHz continously.

Version 2 of the converter. THe phone charges in AC mode allowing the CPU to be clocked at 100MHz at minimum.

The whole circuit is integrated in a somewhat water resistant box which is attached below the panel keeping it away from rain.

[Update 22/07/2012]
For the Samsung Galaxy S III (or SGS3, I9300) the 470kOhm resistor connecting the D+ and D- lines (pin 2 and 3 representing the data lines) to the 5V supply is not required. In fact, the phone does not detect any charging, if the version 2 of the solar charger is used. In this case, some modifications are required: If D+ and D- are shorted the charging is done in AC mode with a higher current of up to 900mA whereas in USB the maximum drawable current is 500mA. If D+ and D- are left open and floating (like in version 1 of the charger), the phone is charged in USB mode. Similar to the S1, the charging mode determines the CPU clocks: While in AC mode the CPU can go into a deep sleep and consume very little power, the minimum frequency in USB mode is 200MHz.


* qr codes

Posted on December 4th, 2010 by Alex. Filed under Android, Cycle Tours.

Sometimes you can find strange squared black and white patterned images in the Internet these days like this one.

These images are called QR Codes (Quick Response) and they contain information such as an URL, binary data, or plain text. Nowadays an application (such as Barcode Scanner for Android) running on a cell phone makes use of the camera of the cell phone to read out its content. I started integrating the QR code to ease the download of the GPX, I collected during my cycles tours. If someone is interested in the same or similar tour, he can download the GPX traces easily by pointing the camera of his cell phone onto the code and the cell will start to download the file automatically. Ideally his cell phone has also a GPS receiver and a application such as TrekBuddy (with maps) installed so that the route can be followed easily. There is no complicated downloading the file to a PC, copying via e.g. Bluetooth etc. necessary anymore.


* froyo for samsung galaxy s arrived in india

Posted on November 29th, 2010 by Alex. Filed under Android.

Actually I did not want to wait more time to install Android 2.2 alias Froyo on my Samsumg Galaxy S (GT-I9000) phone and was ready to try out Kies Registry Patcher to force the update. So I rebooted into Windows and connected the phone to the PC. Started Kies to backup all contacts, memos, sms, etc (just in case) and suddenly a small window popped up, informing me about the software update.

The previous build number was ECLAIR.DDJG4 with firmware version 2.1-update1, kernel: 2.6.29 #2 and baseband version I9000DDJG4
The new build number is FROYO.DDJP6, kernel root@SE-S605 #1 and baseband version I9000DDJP2

Finally it has arrived….


* kies and samsung galaxy s

Posted on October 14th, 2010 by Alex. Filed under Android.

Finally after uncountable tries I was able to connect my Samsung I9000 (Galaxy S, Vibrant, etc) with Windows XP Professional (32bit). All the tips and tricks (trying USB debugging, different modes, etc) mentioned in the forums did not lead to any solution and Kies (version: was not able to detect the phone at all. At maximum something like “Kies cannot connect to the phone in mass storage mode, connection terminated.” came up. In my case it was Launcher Pro and after killing it, it worked.

Here is what I did:

  1. Do not connect the phone and exit/kill all Kies applications (especially Kies.exe) you find on your Windows box.
  2. In the phone go to Settings, About phone, USB settings and select Samsung Kies. Any other setting (e.g. Ask on connection) did not work.
  3. Go back to the main settings screen, choose Applications, Manage applications.
  4. Choose LauncherPro and select Clear defaults
  5. Go to home screen (press home key) and select TwLauncher instead of LauncherPro
  6. Connect the phone via the USB cable
  7. The home screen will vanish and an application called MTP Application is started.
  8. Wait till your Windows box is done with driver installation.
  9. Launch Kies.

One note: If you were successful and connected Kies to the phone, do not perform a firmware update immediately. Check you status of your backups, since all applications that you have installed, will be deleted during the firmware update process.


RSS Feeds: