AWS

A 2017. 5. 15. 17:17

ELB vs ALB

ELB (Elastic Load Balancing ) 자동 스케일링, 


'A' 카테고리의 다른 글

AWS  (0) 2017.04.26

설정

트랙백

댓글

AWS

A 2017. 4. 26. 19:37

region별 latency 확인 : http://www.cloudping.info/

'A' 카테고리의 다른 글

AWS  (0) 2017.05.15

설정

트랙백

댓글

참조 : http://stackoverflow.com/questions/27315796/getting-rootscopeinprog-error-when-calling-click-method-of-input-type-file-pro


In angular at any point in time, there can be only one $digest or $apply operation in progress.


$timeout.를 이용하여 해결 할 수가 있다.


설정

트랙백

댓글

로그 띄우지 않게 설정

-assumenosideeffects class android.util.Log {

    public static *** d(...);

    public static *** w(...);

    public static *** v(...);

    public static *** i(...);

}


기타 참고

proguard-android.txt와 proguard-android-optimize.txt가 있으며 앞의 것은 최적화를 수행하지 않고, 뒤의 것은 최적화를 수행한다.


참고

http://stackoverflow.com/questions/2446248/remove-all-debug-logging-calls-before-publishing-are-there-tools-to-do-this/2466662#2466662


http://www.reshout.com/?p=1288


http://stackoverflow.com/questions/5553146/disable-logcat-output-completely-in-release-android-app

설정

트랙백

댓글


adb install -l -r app-release.apk -l = forward lock -r = reinstall


- 해당 apk를 재설치 해준다.

설정

트랙백

댓글

참조 : http://stackoverflow.com/questions/18271429/difference-between-android-support-v7-appcompat-and-android-support-v4

android-support-v4.jar: Support android.app classes to assist with development of applications for android API level 4 or later. So that you will able to make your application backword compatible,

android-support-v7.jar It is recently added in latest support library updation. ActionBar to allow implementation of the action bar user interface design pattern back to Android 2.1 (API level 7) and higher. Use of this class requires that you implement your activity by extending the new ActionBarActivity class.

설정

트랙백

댓글

Gradle 업뎃하면서 쓰임새의 변화가 어느정도 생겼다.


참고 : http://tools.android.com/tech-docs/new-build-system/migrating-to-1-0-0


There are some additional other properties that were renamed as well, in both build types and product flavors.

ApplicationId in Library Projects

You cannot use applicationId to customize the package of a library project. The package name has to be fixed in library projects (and specified as packageName in the manifest). The Gradle plugin did not enforce this restriction earlier.

Renamed Properties in BuildTypes

runProguard => minifyEnabled
zipAlign => zipAlignEnabled
jniDebugBuild => jniDebuggable
renderscriptDebug => renderscriptDebuggable

Renamed Properties in ProductFlavors

flavorGroups => flavorDimensions
packageName => applicationId
testPackageName => testApplicationId
renderscriptSupportMode => renderscriptSupportModeEnabled
ProductFlavor.renderscriptNdkMode => renderscriptNdkModeEnabled


설정

트랙백

댓글


웹뷰 관련 개발하기 위해 여러가지 불편사항이 생기게 된다.

디버깅을 하기 힘들다는 점이 그 중 하나 일 것이다.

그래서 개선하고자 찾아본 결과 4.4 버젼 부터 웹뷰 디버깅이 가능하다는 것을 알게 되었다. ( 물론 4.0 이상 버젼도 되긴한다 - 아래 링크 참조 )

웹뷰 디버깅 링크를 클릭하면 자세히 나와있으니 참조하면 될거같다.


장비연결 상태 확인 url : chrome://inspect/#devices

설정

트랙백

댓글

반응형으로 만드려다보니 css와 javascript 부분이 변환해야할 경우가 생긴다.

AngularJS를 쓸 경우에는 이런 식으로 코드를 짜도 되고, 자바스크립트로만 할 경우, 밑 코드만 봐도 javascipt로 변환하는 건 어렵지 않을꺼 같다.


참조 : https://github.com/paul-hammant/angular_instead_of_media_queries

 function ResponsiveDemoCtrl($scope, $window) {
    $scope.oneColumn = false;
    $scope.width = 0;
    $scope.height = 0;
    $scope.leftMarginStyle = {};
    $scope.rightMarginStyle = {};
    $scope.middleStyle = {};

    $scope.updateWidth = function() {
        $scope.width = $window.innerWidth;
    }

    $scope.updateHeight = function() {
       $scope.height = $window.innerHeight;
    }
    
    $scope.columnAdjustments = function() {
        if ($scope.width < 768) {
            $scope.oneColumn = true;
            var mid = $scope.width - 30;
            $scope.leftMarginStyle = { width: '15px', maxWidth: '15px' };
            $scope.middleStyle = { width: mid + 'px', maxWidth: mid + 'px', };
            $scope.rightMarginStyle = { width: '15px', maxWidth: '15px', verticalAlign: 'text-top' };
        } else if ($scope.width >= 1024 ){
            $scope.oneColumn = false;
            var mid = 614;
            var margin = ($scope.width - 614) * 0.5;
            $scope.leftMarginStyle = { width:  margin + 'px' };
            $scope.middleStyle = { width: mid + 'px', maxWidth: mid + 'px', };
            $scope.rightMarginStyle = { width: margin + 'px', verticalAlign: 'text-top' };
        } else {
            $scope.oneColumn = false;
            var pc20 = Math.round($scope.width * 0.2);
            var pc60 = Math.round($scope.width * 0.6)
            $scope.leftMarginStyle = { width:  pc20 + 'px' };    
            $scope.middleStyle = { width: pc60 + 'px', maxWidth: pc60 + 'px', };    
            $scope.rightMarginStyle = { width: pc20 + 'px', verticalAlign: 'text-top' };    
        }
    }    
    
    $scope.updateWidth();
    $scope.updateHeight();
    $scope.columnAdjustments();

    $window.onresize = function () {
        $scope.updateWidth();
        $scope.updateHeight();
        $scope.columnAdjustments();
        $scope.$apply();
    }
  }

설정

트랙백

댓글

http://sapandiwakar.in/eofexception-with-spring-rest-template-android/

설정

트랙백

댓글