-
This is Slide 1 Title
This is slide 1 description. Go to Edit HTML and replace these sentences with your own words. This is a Blogger template by Lasantha - PremiumBloggerTemplates.com...
-
This is Slide 2 Title
This is slide 2 description. Go to Edit HTML and replace these sentences with your own words. This is a Blogger template by Lasantha - PremiumBloggerTemplates.com...
-
This is Slide 3 Title
This is slide 3 description. Go to Edit HTML and replace these sentences with your own words. This is a Blogger template by Lasantha - PremiumBloggerTemplates.com...
2014년 12월 22일 월요일
2014년 12월 9일 화요일
폰갭에서 아이폰용 프로젝트 추가하기
ios ㅍㅡㄹ랫폼을 추가한뒤에
ios-deploy , ios-sim 을 npmㅇㅡ로 설치하는데, 이때 xcode의 preference에서 ㅊㅜ가모듈 다운되었는지 확인하고 다운로드 하면 gcc가 서ㄹ치ㄷㅚㅁ
cordova run ios 하면됨
2014년 11월 27일 목요일
phonegap 에서 javascript 를 띄우고 리턴값을 받아서처리하기. *,.*
2014년 11월 5일 수요일
2014년 10월 27일 월요일
세계각국정보 - 나중에 필요할지도.
2014년 10월 24일 금요일
2014년 10월 22일 수요일
[Android] 안드로이드 잠금화면(LockScreen) 만들기 기초1
2014년 10월 7일 화요일
두 박스간 스케일 비율 계산
var pntContainer=argContainer;
var floatXScale=1.0;
var floatYScale= 1.0;
var floatRet=1.0;
if( pntContainer.w > posBounds.w && pntContainer.h > posBounds.h ){
return floatRet;
}
floatXScale=(pntContainer.w)/(posBounds.w);
floatYScale=(pntContainer.h)/(posBounds.h);
if(floatXScale<floatYScale){
floatRet=floatXScale;
}else{
floatRet=floatYScale;
}
return floatRet;
}
두 박스 간의 겹침 % 계산하는 로직- 따온거임.
-func-
function rectCollisionPercentage(argRectA,argRectB){
/*
* argRectA = {x:0, y:0, r width:100, height:100};
* argRectB ={x:0, y:0, r width:100, height:100};
*/
var r1 = {
left:argRectA.x,
top:argRectA.y,
right:argRectA.x+argRectA.width-1,
bottom:argRectA.y+argRectA.height-1,
width:argRectA.width,
height:argRectA.height
};
var r2 = {
left:argRectB.x,
top:argRectB.y,
right:argRectB.x+argRectB.width-1,
bottom:argRectB.y+argRectB.height-1,
width:argRectB.width,
height:argRectB.height
};
// console.log(r1,r2);
var left = r1.left >= r2.left ? r1.left : r2.left;
var top = r1.top >= r2.top ? r1.top : r2.top;
var right = r1.right >= r2.right ? r2.right : r1.right;
var bottom = r1.bottom >= r2.bottom ? r2.bottom : r1.bottom
var overlapHeight = bottom - top;
var overlapWidth = right - left;
var r2Area = r2.height * r2.width;
var overlapArea = overlapHeight * overlapWidth;
var oPercent = (Math.round((overlapArea / r2Area ) * 100)) * 1.414;
console.log(oPercent);
return oPercent;
}
-use-
opatrans=rectCollisionPercentage(
{ x:boundOutBoxContainer.x,
y:boundOutBoxContainer.y,
width:mainAblumViewFlipper.getOutBoundWH().w,
height:mainAblumViewFlipper.getOutBoundWH().h } ,
{ x:( arg_newBitmapConteiner.x + ((vvAlbumList.container.getChildByName("vAlbumSubList").x)) ),
y:arg_newBitmapConteiner.y,
width:mainAblumViewFlipper.getInBoundBaseWH().w,
height:mainAblumViewFlipper.getInBoundBaseWH().h }
);
2014년 10월 6일 월요일
2014년 9월 29일 월요일
2014년 9월 28일 일요일
2014년 9월 25일 목요일
2014년 9월 24일 수요일
2014년 8월 24일 일요일
FFMPEG ANDROID 인스톨
안펍의 "남은그루터기"님의 강좌대로 하다가 실패하고 그냥.
FFmpegBasic.zip 을 다운받아서 ndk-build 실패가 나길래 봤더니 http://jnexonsoft.tistory.com/42 게시물에 있는것 처럼 snprintf (114 라인근처하고 또...하여튼 두군데) 있는데 거깅ㅔ ,"%s" 추가했더니 되더이다..
이제 ffmpeg api 를 봐야되나? T_T
2014년 3월 29일 토요일
google play service for signed package - proguard settting
-dontwarn com.google.android.gms.*-ignorewarnings
proguard.cfg add2014년 3월 26일 수요일
UI 배경을 빼서 속도를 빠르게..그리고 썸네일 가판대..
http://www.curious-creature.org/2009/03/04/speed-up-your-android-ui/
2014년 3월 5일 수요일
2014년 3월 4일 화요일
웹에서 안드로이드 앱/특정 액티비티 실행하는 방법
$open = 'intent://myapphost/#Intent;scheme=myapp;package=com.test;end;';
변수도 넘길수 있다.(S.key1=value1;S.key2=value2;end)
라는 링크를 만들고
앱에서는
manifest 에서
<data android:scheme="myapp" android:host="myapphost" android:path="/" /> 를 intent-filter 안에 넣으면 된다.각 activity 별로 지정가능하다.
* 변수 있을때는
Intent intent = getIntent();String value1 = intent.getStringExtra("key1");String value2 = intent.getStringExtra("key2");참고.
http://atmarkplant-dj.blogspot.kr/2013/12/android-chrome.html
구글에 정의된 거임.
ntent:
HOST/URI-path // Optional host
#Intent;
package=[string];
action=[string];
category=[string];
component=[string];
scheme=[string];
end;
http://stackoverflow.com/questions/16738276/how-do-i-pass-parameters-to-android-intent-in-new-scheme-on-chrome 참고.
2014년 2월 11일 화요일
vitualbox 에 라이온 해상도조절
VBoxManage setextradata "snow" VBoxInternal2/EfiGopMode 4
VBoxManage setextradata "snow" VBoxInternal2/SmcDeviceKey "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
(글씨 짤렸는데 걍 메모장에 복사 붙여넣기 해보세여...)
http://lsehoon.egloos.com/4814795 출처
2014년 2월 6일 목요일
eclipse cocos2dx 2.2.2 에서 classes 폴더가 클릭안될때
프로젝트 속성->Resource->linked Resource->linked Resource-. Classes 경로를 바로잡아
cocos tutorial or samle game
http://stackoverflow.com/questions/10711047/the-completest-cocos2d-x-tutorial-guide-list
2014년 2월 5일 수요일
cocos2d-x 설치관련
http://doodoori2.tistory.com/214
http://patidarvikas.blogspot.in/2013/09/build-and-run-cocos2dx-android-project.html



