기본 콘텐츠로 건너뛰기

글

라벨이 android인 게시물 표시

cordova webview posturl

cordova webview posturl import android.webkit.WebView; import org.apache.cordova.*; import org.apache.http.util.EncodingUtils; public class MainActivity extends CordovaActivity { private static Dialog loginDialog; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); String TRAGET_URL = "http://example.com/login/login_verify"; String POST_DATA = "login_id=test&login_pass=1111"; postUrl(TRAGET_URL,POST_DATA); } /** * Load the url into the webview. */ public void postUrl(String url,String data) { if (appView == null) { init(); } // If keepRunning this.keepRunning = preferences.getBoolean("KeepRunning", true); //appView.lo WebView mWebView = (WebView) appView.getView(); // WebView mWebView = (WebView) findViewById(R.id.mWebView); // WHERE R.id.mWebView is o...

android remote debugging public ip

myPC  --|1|-- ssh-server --|2|-- android Phone 1. ssh-server    enable remote ssh tunnel    linux Ubuntu 14.01 LTS 64bit    i used virtualbox vmware. 3. android Phone    ssh-client connect to ssh-server and remote forwarding.    3g or wifi all ok. Setting. 1. Android Phone - wifi debugging enable special port    connect usb to Mypc.    open cmd    goto android sdk tool directory (ex: cd android\sdk\platform-tools )    Enable special Port : adb tcpip 6555    Restore usb debugging mode : adb      

Android Macro Howto

Goal 1.read screen 2.send event 3.read/memory 2.1) Using of internal API. But i cant find API in sources witch i can use. […] 2.2) linux level send event  http://www.kernel.org/doc/Documentation/input/multi-touch-protocol.txt  /dev/input/event2 * reference http://www.pocketmagic.net/2012/04/injecting-events-programatically-on-android/#.VKEcAsAi9A http://hellonewworld.tistory.com/183 http://blog.softteco.com/2011/03/android-low-level-shell-click-on-screen.html http://blog.softteco.com/2011/03/android-writing-events-low-level-touch.html

android build automation

Build Environment  Target Build Machine Ubuntu 14.04 Server  Osx Windows 7  Build Server Jenkins ( https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu ) Android Build Method Maven (http://books.sonatype.com/mvnref-book/reference/android-dev.html) Gradle (https://www.digitalocean.com/community/tutorials/how-to-build-android-apps-with-jenkins)  1. Jenkins  1.1. Jenkins Installation wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key \ | sudo apt-key add -sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ \ > /etc/apt/sources.list.d/jenkins.list' sudo apt-get update sudo apt-get install jenkins 1.2. Start Jenkins sudo service jenkins start 2.Android Sdk  2.1. Android SDK Download cd /opt sudo wget http://dl.google.com/android/android-sdk_r22.3-linux.tgz 2.2. Unzip file sudo tar xzf android-sdk_r22.3-linux.tgz 2.3. Delete file sudo rm -rf android-sdk_r22.3-linux.tgz 2.3. Environ...

안드로이드 통신사정보 가져오기 / 아이폰 통신사 정보 확인

ios ( 출처 : http://deeplu.blogspot.kr/2012/10/ios.html ) ======================================= [iOS] 통신사 정보 및 국가 코드 가져오기 CoreTelephony 프레임워크의 CTTelephonyNetworkInfo, CTCarrier 클래스를 이용해 기기의 통신사 정보를 가져올 수 있다. 프로젝트에 CoreTelephony.framework 를 등록하고 다음 코드를 추가한다. #import <CoreTelephony/CTCarrier.h> #import <CoreTelephony/CTTelephonyNetworkInfo.h> CTTelephonyNetworkInfo *networkInfo = [[CTTelephonyNetworkInfo alloc] init]; CTCarrier *carrier = [networkInfo subscriberCellularProvider]; NSLog(@"Carrier Name : %@", [carrier carrierName]); NSLog(@"MNC : %@", [carrier mobileNetworkCode]); NSLog(@"MCC : %@", [carrier mobileCountryCode]); [networkInfo release]; 통신사 식별자로 사용되는 MNC (Mobile Network Code)와 국가를 식별하는 MCC (Mobile Country Code)는 각 각 2~3자리의 숫자로 이루어져 있다. 각 코드가 나타내는 국가 및 통신사는 아래 Mobile Network Code 참조에서 확인하면 된다. 참고로 한국의 MCC는 450이고, SKT의 MNC는 11, KT는 08이다. 시뮬레이터에서 실행하면 모두 nil로 표시된다. 디바이스에서 실행하면 다음과 같은 결과를 확인할 수 있다. Carrier Nam...

mobile push length limitations

mobile push length limitations android  gcm : 4k     https://developer.android.com/google/gcm/server.html#params  c2dm : 1024byte  https://developers.google.com/android/c2dm/#limitations ios  256byte  https://forums.aws.amazon.com/ann.jspa?annID=2626  ios 8 2k ref : http://stackoverflow.com/questions/9487223/what-is-the-maximum-number-of-characters-that-can-be-displayed-in-android-push-n

Android required design image size

1. Launcher icon LDPI should be 36 x 36. MDPI should be 48 x 48. TVDPI should be 64 x 64. HDPI should be 72 x 72. XHDPI should be 96 x 96. XXHDPI should be 144 x 144. XXXHDPI should be 192 x 192. 2. Splash image Dimensions LDPI: Portrait:  200x320px Landscape:  320x200px MDPI: Portrait:  320x480px Landscape:  480x320px HDPI: Portrait:  480x800px Landscape:  800x480px XHDPI: Portrait:  720px1280px Landscape:  1280x720px XXHDPI: Portrait:  960px1600px Landscape:  1600x960px XXXHDPI: Portrait:  1280px1920px Landscape:  1920x1280px 3. Play Store Intro image 512px512px

android gcm push sample in asp

<%   ' 안드로이드 ASP 푸시 요청   PushServerURL = " https://android.googleapis.com/gcm/send " '  브라우저APIkey   ApplicationAPIKey = "AIzaSyBi0pn1ckaJhRL9kK3mbwsHzk7x0fdE_Z8"   ' regId(받을사람이 지급받은 registration_ids - 여러명일 경우 배열로 받아처리하면 될 듯 최대 1000)   RegId = "APA91bFNkzpbgBJnWkDgyGmU0XsF8ZLMAEhVaAtcbf9po8_i1GoA4JNt4HiUc6xScBMEOoJMIHHybZECIns9e2EF4AGalfOgZqwmQIEUG1UpVk08nTapx0iY17vOELD_9wIQTUdRwUsR"   ' 알림명   tickerText = "알림테스트"   ' 알림 제목   contentTitle = "테스트 제목"   ' 알림 내용   message = "헬로~~~ 테스트입니다.~~~"   postJSONData = "" & _      "{" & _      "  " "registration_ids" " : [ " "" & RegId & "" " ]" & _      ", " "data" ": {" & _      "                 " "tickerText" " : " "" & tickerText ...