Posts

Localize Android app

You have created this great android app. Then you discover that the world is actually flat and your app will be downloaded by dudes all over the planet, and they want your app in their own language. How can you localize your app? Be sure that all of the text in the app is using strings.xml, please note that the actual java files as well as the layout xml files should refer to the strings.xml file. Create a directory for each language you want your app to be localized to, so if you want your app to be localized to 11 languages you will need to create 11 additional directories; These directories should be located in the "res" directory and should be named values-XX where XX is a 2 letter country code, which you can find here:  http://www.loc.gov/standards/iso639-2/php/code_list.php Copy your strings.xml file into each one of those directories Translate each one of those strings.xml files to their relevant languages (I managed to have those files translated i...

The Ultimate Utility Toolset

Are you called from time to time to fix friends' / neighbors' / family's computers? Do you then pull your good old collection of cds each one containing a different utility you might need? Well, those days are gone! Today you need only carry a nice 8gb flash drive on your key chain. What will it contain? Download the latest hiren's boot cd (currently 15.1 but it gets updated every now and then) from your favorite torrent site. Follow these orders (in the link) in order to format and make your flash drive bootable.   Copy the contents of the hiren's boot cd into the flash drive (as mentioned in the link above). You have just created a bootable hiren flash disk (and for those who don't know, hiren's boot disk is the best rescue disk you'll ever need). Download the portable apps app , install it on your computer and download every app you find handy. This stage could take some time and could get to 5gb of downloaded no installer free...

How to read Android apk contents

Lets say you want to read the contents of an android apk file. Why? Maybe it's yours and you want to be sure of the version, maybe you want to see if the code in that apk contains the latest feature you inserted. Or maybe it isn't your code but you want to check something with someone else's code (without breaking any license etc). In a nutshell - What are the steps one should take in order to explore an apk file? 1. Only read the manifest contents of an apk : Use the following command (make sure you have aapt.exe and the apk file on your path): aapt dump badging XXYY.apk [Later Edit] 1.5 You want to change some resources of the apk using a nice GUI Try APK Edit  - It will enable you to do the following: Change icons of your android application. Change the applications name. Edit the localized text (Strings.xml) used in applications. 2. You want to read all of the apk's contents : Method A. Use the following tool: apktool  (apktool ...

Eclipse Window Builder VS Netbeans GUI Builder (Matisse)

Java is a great programming language but it has a big flaw - it's GUI framework sucks! I am talking about building simple client-side applications. If you don't want to mess with any web gui framework then you are bound to use swing. You can always build swing writing the text and imagining how it will work but any smart programmer will search for a nice Swing GUI builder which will enable him/her to have a WYSIWYG sort of framework to work with. There are several options of WYSIWYG frameworks to pick from, the most noticeable till the July (2011) was Netbeans' "Matisse" GUI builder. There were others of course but none as free or as good as Matisse. The biggest flaw of Matisse is that it doesn't reside on the best IDE out there - eclipse, but it can be found only on netbeans which isn't as good as Eclipse (Doesn't even have a "hover" feature to name one great flaw of netbeans) so if you want to build a GUI suppo...

Setting up an Android development environment in a nutshell

If you want to begin developing for the android platform - which components will you need to install? In a nutshell: Install latest JDK http://www.oracle.com/technetwork/java/javase/downloads/index.html Install the latest eclipse IDE "Eclipse IDE for Java Developers" http://www.eclipse.org/downloads/ Install the latest Android SDK http://developer.android.com/sdk/index.html Run the SDK manager after installation and install all of the packages you might need (retain default packages and add additional ones if need be). Install latest ADT (eclipse android plugin) Run eclipse, choose help --> Install new software https://dl-ssl.google.com/android/eclipse/ Configure eclipse and point it to the JDK and to the android SDK. Have a nice android day   :-) Avi.

SCummVM for Android

THIS ARTICLE ISN'T LONG! -- First section = 3 terms related to this topic briefly explained -- Second section = Main article - how to install SCummVM on your android (even new androids) -- Last section = UNIMPORTANT, feel free to skip it, it's only a list of games compatible with your android after installing SCummVM ----------------------------------------------------------------- SCummVM - Lucasarts' gaming engine used for their good old games / quests like Maniac Mansion, Indiana Jones, Monkey Island etc. AGI - Sierra's first gaming engine used for their good old quests like King's Quest, Larry quests, Police quests, Space quests. SCI - Sierra's second gaming engine used for their newer games (since about 1990), the quests programmed with this engine didn't need the text parser but used the mouse for every action needed during the game. If you have an Android machine (cell phone, tablet) and want to play any game which u...

Free SVN

I have these small java projects I like to work on. Mostly I work on them from home, but from time to time I like to work on them using my laptop or if I have an idea while working on other projects, I want to add a feature on work. The problem is that the source code is at my house on my main computer, so if I want to work on the code elsewhere, I send the code to myself using my gmail, work on it whereever I want and reupload the code to my main computer. Well, that is a pain in the ... neck. So I got to the conclusion I must use some sort of version control. I picked SVN, because that's what we have at work, then installed a SVN server at my house, got a static IP (using dyn-dns) and used my SVN for my java projects. It worked. But it's not the best way working those things out. First of all, my computer isn't on 24\7 Second - my home computer isn't 100% secured as expected from regular servers. Third - My computer may crash at any time - then wh...