Saturday, August 20, 2011

Reading List

Today at 0:15 I've published first app :-)

Long story short: This is some kind of a "read it later" client. I read a lot using my Motorola Milestone phone. I started writing this app months ago just because I needed something to remember unread links. It is very usefull for me, I hope you will enjoy too.

Thursday, August 18, 2011

Missing proguard.cfg

Project created long time ago has no proguard.cfg file. Updating project with an android command fixes it.

$android update project -p ~/workspace/ProjectName
Added file /home/username/workspace/ProjectName/build.xml
Added file /home/username/workspace/ProjectName/proguard.cfg

Beware opening build.xml file. If so, occurs an error "Default target help does not exist in this project". Then you should add one line below <project> tag:

<import file="${sdk.dir}/platforms/${target}/templates/android_rules.xml"></import>

To enable ProGuard, line below should be added in a file:

Switching JDK in Ubuntu

I have two JDK installed: OpenJDK and Sun version. There is one quick method to switch between them:

$sudo update-alternatives --config java

There are 2 choices for the alternative java (providing /usr/bin/java).

Selection Path Priority Status
0 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 auto mode
1 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 manual mode
* 2 /usr/lib/jvm/java-6-sun/jre/bin/java 63 manual mode

Press enter to keep the current choice[*], or type selection number:

After selection you can check:
$ java -version

Friday, August 5, 2011

Registration to the Android Market

Registration to Google Checkout. Debit card approved.
Registration to the Android Market - positive:

Your Registration to the Android Market is approved!
You can now upload and publish software to the Android Market.

$25 less.
Now it's time to get to work :-)