2014년 12월 31일 수요일

우분투 14.04 64비트 설치 후 추가작업

1. 한/영 키로 한글 전환

http://blog.daum.net/bagjunggyu/154




2. 파일 탐색기에 '터미널에서 열기' 메뉴 추가

http://askubuntu.com/a/207448




3. KingSoft Office 설치

http://ksosoft.com/product/office-2013-linux.html



4. Gimp 설치



KVM 설치 및 이용 (안드로이드 에뮬레이터)



https://www.davidlab.net/ko/tech/how-to-setup-android-dev-env-on-ubuntu-part2/

How to add Android Studio to the launcher





http://askubuntu.com/a/463288

Run Android Studio on Terminal on Ubuntu

Cd android-studio/bin

./studio.sh

How to Install jdk on Ubuntu 14.04



http://forum.falinux.com/zbxe/index.php?document_srl=574845&mid=lecture_tip

aapt no such file -Android Studio on Ubuntu 14.04 64bit






http://stackoverflow.com/a/23201209

2014년 12월 23일 화요일

How to Use Shared Folder in Ubuntu on Virtual Box

If you set shared folder on Virtual Box, you can see the folder in /media.

You will see error message, "The folder contents could not be displayed.
You do not have the permissions necessary to view the contents of ... ".


Type "sudo adduser xxxxxxx vboxsf" on terminal to add your user to vboxsf group. xxxxxxx is your user account name.

2014년 11월 30일 일요일

How to Set Shared Folder on Window 7 in Virtual Box

Go to "Devices" of Virtual Box settings and Run "Insert Guest Addition CD Image...".

It will download file on the internet. You will see "VirtualBox Guest Additions" on cd drive on Window 7.

Run VBoxWindowsAdditions-amd64 or VBoxWindowsAdditions-x86 that is right for your system.

Now you will see shared folder on File Explorer if you set shared folder on Virtual Box settings correctly.

2014년 11월 21일 금요일

android studio task '' not found in root project

I am using Android Studio 0.8.14 on Ubuntu 14.04.

I imported a project. And I got the error on title. I tried to fix it. I happened to click on sync again on top of editor window. And It worked like a miracle.

2014년 11월 17일 월요일

How to Show Big Notification


NotificationManager mNotificationManager = (NotificationManager) context
                .getSystemService(Context.NOTIFICATION_SERVICE);
        Notification notification = new Notification.Builder(this).setContentTitle(decodedMsg).
                setContentText(decodedMsg).setSmallIcon(R.drawable.appicon).build();

        RemoteViews bigContentView = new RemoteViews(context.getPackageName(),
                R.layout.custom_notification);
        bigContentView.setImageViewBitmap(R.id.image, bitmap);
        bigContentView.setTextViewText(R.id.title, decodedMsg);
        bigContentView.setTextViewText(R.id.time, PlusTimeFormatter.doIt());


        //아래 코드가 없으면 notification이 크게 표시안됨
        notification.priority = Notification.PRIORITY_MAX;
        notification.bigContentView = bigContentView;

        Intent notificationIntent = new Intent(context, FWWebViewActivity.class);
        notificationIntent.putExtra(PlusConstants.KEY_URL,
                FWConstants.BANNER_URL_HEAD + detailPageUrl);
        PendingIntent contentIntent = PendingIntent.getActivity(context, 0,
                notificationIntent, 0);
        notification.contentIntent = contentIntent;

        // notification.flags |= Notification.FLAG_NO_CLEAR; // Do not clear the
        // notification
        notification.defaults |= Notification.DEFAULT_LIGHTS; // LED
        notification.defaults |= Notification.DEFAULT_VIBRATE; // Vibration
        notification.defaults |= Notification.DEFAULT_SOUND; // Sound



        mNotificationManager.notify(notificationID, notification);
        notificationID = (notificationID - 1) % 1000 + 9000;

2014년 10월 27일 월요일

AndroidDebugKey Keystore was tampered with, or password was incorrect

 <build.grade>


signingConfigs {
        debug {
            storeFile file("/home/jeff/.android/debug.keystore")
        }

        release {
            storeFile file("config/telegram.jks")
            storePassword RELEASE_STORE_PASSWORD
            keyAlias RELEASE_KEY_ALIAS
            keyPassword RELEASE_KEY_PASSWORD
        }
    }





Android specified for property 'signingConfig.storeFile' does not exist

http://stackoverflow.com/a/25212759

Gradle version 1.10 is required. Current version is 2.0

http://stackoverflow.com/a/24832874

Could not find any version that matches com.google.android.gms:play-services:3.2.+.

http://stackoverflow.com/a/23127254

“Could not create plugin of type 'AppPlugin' - gradle

http://stackoverflow.com/a/26219134

2014년 10월 10일 금요일

how to ignore certain folders in subclipse

1. Open Window > Preferences.

2. Click Team > Ignored Resources.

3. Click Add Pattern button and type the name of folder or file. For example, type bin if you want to ignore bin folder.

adjustResize or adjustPan not working

Wrap LinearLayout or soemthing with ScrollView.

2014년 10월 7일 화요일

this client is too old... -SVN

It is version problem. You should delete .svn folder in the folder of project.

Which Version of Subclipse should I install on eclipse?

If you installed adt bundle for linux, you should install subclipse 1.6. I tried 1.8 and 1.10, but I couldn't install subclipse because of some errors.

Today is October 7th, 2014.

2014년 9월 26일 금요일

Eclipse continues crash


http://stackoverflow.com/a/20204258

How to Change Eclipse Icon on Launcher on Ubuntu 14.04

1. Go to the folder /home/.local/share/application. You should press control + h to see hidden folders.

2.  Open eclipse.desktop file on Gedit.

3. Modify path of icon. For example, /home/adt/eclipse/icon.xpm.

4. Then you will see the changed icon.



I got hint from:
http://cklepka.kinja.com/setting-up-the-android-adt-from-scratch-in-ubuntu-12-1047414599



2014년 9월 25일 목요일

Not able to download ADT bundle

Download the file on Internet Explorer, not Chrome or Firefox.

This Android SDK requires ADT version 23.0.0 or above. Current version is 22.6. Please update ADT to the latest version

1. Select Help > Install New Software 

 2. Click on already installed 

3. Select all Android software on version 22.*

 4. Click on Uninstall 

5. Work with: dl-ssl.google.com/android/eclipse 

6. Select Developer Tools and Next 

7. Next, Accept the license agreement and Finish.





from Kikiwa on Stackoverflow

2014년 9월 24일 수요일

2014년 9월 17일 수요일

eclipse starts and freezes

Maybe something is wrong with workspace.

Delete .metadata folder in workspace.

Eclispe will start. But you should do setting again.


2014년 9월 6일 토요일

how to test rest api

1. Install Rest console extention on Chrome.



2. Set Request URI, Method, Content Headers, and Payload.


If you don't set Content-Type and Encoding on Content Headers, for example, application/x-www-form-urlencoded for Content-Type and utf-8 for Encoding, when you test post method, you will see error message "Failed to validate request parameters."



3. Press Send button.

2014년 9월 4일 목요일

The provided API key is expired

I deleted Android key and had only server key for places Api. The error was gone.