2010년 12월 6일 월요일

It is annoying to click several buttons every time I connect my phone to pc to download files - Auto Mount

When I want to download files from pc to my phone, I have to click several buttons: Settings, Mass storage only, Mount, etc. Because I am developing android app with my phone, it is more inconvenient. So I thought that someone maybe has made an app to solve my problems. I was right. There was an app which is exactly as same as my idea. Its name is Auto Mount Your SD Card. And it is free(Wow).

First, download it at android market.







Then run app by touching its icon. You can make its shortcut on Home screen. Enable SD Card Auto-Mounting.


Now, when you connect phone to pc with usb cable, you can transfer files without touching any button.






However, one thing I don't like about this app is that it doesn't work when I activated "USB debugging". I have to deactivate "USB debugging" and activate "Mass storage only" manually. I will make improved version of this app some day.






2010년 12월 1일 수요일

if you failed building with proguard and ant

First, you sould move source files(project directory) to "c:\". If there is empty space in the path(like "Documents and Settings"), ant makes error.

Then type "ant release" at the root of moved project directory. If error message like "...cant run jarsgner..." shows up, you should add java path(for example "C:\Program Files\Java\jdk1.6.0_22\bin") to system variables 'path'.

2010년 11월 30일 화요일

error when importing existing projects in eclipse

If there is no red x mark at source java files or layout xml files, you should check path of external jars. It can be different from original one. So you should change it at java build path of imported project.

Let's play games in android phone - AppBrain App Market

I don't see any game in android market because Korean Game Deliberative Body prohibitted it. They want to review games before it is published in order to stop violent or sexual games from releasing. But Google doesn't want them to do that. They think that users will select good games.

I don't know which one is right. All I want is just to have fun.

What about you? You also can't install games in android market with same or silimar reason? Then you should try AppBrain App Market.

I happened to know about AppBrain App Market. I was searching android games developed with Unity. Unity is a platform which makes it easy to build 3d games. I found a list of android games developed with unity. I clicked a game whose title sounds fun, and then I entered AppBrain Market. Its design was good, and I saw lots of games(Wow) including famous Angry Bird.

Now I will let you know how to install apps from AppBrain Market.


First, download AppBrain App Market and Fast Web Installer at the Android Market.







Then go to the AppBrain website on your pc. Join the site. You can use your google gmail address. Very convenient. It finds out the model of your android phone. Very scary and smart.







Then find app which you want to install. You can easily do that using category and searching engine. If you find it, click the name of app. If it is possible to install the app on your phone, install button will show up.

Just click the install button. Then the app will automatically be installed on your phone. AMAZING!!!







2010년 11월 23일 화요일

How to protect your source code of android project with proguard

I got good information from these blogs.

http://android-developers.blogspot.com/2010/09/proguard-android-and-licensing-server.html

http://www.androidengineer.com/2010/07/optimizing-obfuscating-and-shrinking.html


However, I couldn't succeed in making optimized, obfuscated, and shrinked source with their ways. I had to find my own way. I googled for a long time and gathered lots of information on Ant, Proguard, etc. I found out that build.xml(Ant) and config.txt(Proguard) is the key to success.

I will omitt how to use Ant and Proguard. You can refer to the above blogs. I changed some part of build.xml and config.txt. You can download them on the below links.

https://docs.google.com/leaf?id=0B35PS9RDzjSrMjk3Y2VhMGMtMmU0ZS00OTE1LTg2N2MtOWFjOWIwNDM1NmFk&hl=en&authkey=CNSFiK8H


https://docs.google.com/leaf?id=0B35PS9RDzjSrMmVjOTJmZWQtNGJkNy00MTAyLWE2MzMtYTM3MDZkZGU5ZTE3&hl=en&authkey=CNHNuJcH

Try them. If you don't succeed, you may have to change some part of them. I use UTF-8 as encoding. If you use different encoding, you must change encoding at build.xml.




2010년 10월 7일 목요일

우분투 10.04.1에서 한글 끝글자 문제 해결

우분투 10.04.1에서는 한글을 입력할 때 끝글자가 말썽을 부립니다. 사라지거나 마우스로 클릭하는 곳에 복사됩니다. 이런 경우 nabi를 사용하여 해결할 수 있습니다. nabi는 우분투 10.04.1에 기본적으로 설치되어 있습니다. 이제 nabi를 사용하기 위해 설정하는 법을 살펴보겠습니다.



먼저 터미널에서 sudo im-switch -c를 입력합니다. sudo뒤에 한칸 공백, im-switch뒤에 한칸 공백, -c입니다.









위 그림을 보면 nabi는 selection이 2번(맨 앞 숫자)임을 알 수 있습니다. Press enter to keep the current choice[*], or type selection number: 다음에 2를 입력하고 엔터를 칩니다.





우분투를 재시작합니다.





상단 패널에 nabi아이콘이 표시됩니다. 이제 nabi방식으로 한글을 입력할 수 있습니다.




2010년 9월 10일 금요일

how to install Ubuntu(10.04 LTS) on your computer

First, visit Ubuntu Site. And then click "Download Ubuntu" button at the right of the page.






Click the "Ubuntu Window Installer" link.






Then click the big orange "Start download" button. Your browser will download "wubi.exe" file. Its size is about 1.4 mb. After finished downloading, double-click the wubi.exe file. If you already installed Ubuntu, the computer will ask you about deleting the older version. Then the following window will show up. You should enter your password. Ubuntu will ask you about your password whenever you log in Unbuntu or access system resources. So you should remember your password.







Then, the computer will download the huge file. It will take some time. The installation of Ubuntu is automatic. It would take about 10 minutes. It is faster than installation of Window. After finishing installation, the computer will re-start. You should choose Ubuntu at multi boot. However, the arrow key of your keyboard may not work. It is because your keyboard is usb type. You should connect your keyboard to the computer, using the following Usb to PS2 adapter.