본문 바로가기

Programming/Android22

[ionic] open api 로 데이터 가져와서 적용하기 [ionic] open api 로 데이터 가져와서 적용하기 cordova-plugin-whitelist 추가하기 ionic plugin add cordova-plugin-whitelist http://www.gajotres.net/ionic-2-making-rest-http-requests-like-a-pro/ INSTALL CORDOVA WHITELIST PLUGIN If you’re using Cordova 4+ and especially if you’re accessing remote content don’t forget to install Cordova Whitelist plugin: cordova plugin add cordova-plugin-whitelist Open www folder and.. 2016. 5. 17.
[ionic] barcode scanner 플랫폼 http://localhost:8100/?ionicplatform=android 프로젝트 생성 Run the following command to generate a new Ionic 2 application ionic start ionic-todo blank --v2 페이지 생성 Run the following command to generate a new add-item page: ionic g page AddItem 프로바이더 생성 Run the following command to generate a Data service: ionic g provider Data 10 Minutes with Ionic 2: Using the Camera with Ionic Native http://blog.. 2016. 5. 16.
[ionic] template 비교 [ionic] template 비교 blank 프로젝트 app.ts import {App, Platform} from 'ionic-angular'; import {StatusBar} from 'ionic-native'; import {HomePage} from './pages/home/home'; @App({ template: '', config: {} // http://ionicframework.com/docs/v2/api/config/Config/ }) export class MyApp { rootPage: any = HomePage; constructor(platform: Platform) { platform.ready().then(() => { // Okay, so the platform is r.. 2016. 5. 15.
[ionic] visual studio code 에서 ionic2 코드를 열었을 때에 experimentalDecorators 관련 에러 visual studio code 에서 ionic2 코드를 열었을 때에 experimentalDecorators 관련 에러가 발생하면 jsconfig.json파일을 추가 한다. [js] Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning. 이와 같은 에러가 발생하면, 프로젝트 루트에 jsconfig.json 파일을 생성한다. 파일의 내용은 아래와 같다. { "compilerOptions": { "emitDecoratorMetadata": true, "experimentalDe.. 2016. 5. 14.
[ionic] firebase 사용하기 [ionic] firebase 사용하기firebase에 가입합니다. https://www.firebase.com app 주소를 확인합니다.index.html 에 아래 내용을 추가합니다. js 파일을 수정합니다. import {Page} from 'ionic-angular'; @Page({ templateUrl: 'build/pages/getting-started/getting-started.html' }) export class GettingStartedPage { constructor() { this.key; this.val; this.myDataRef = new Firebase("https://YOUR_APP.firebaseio.com/sidemenu/"); this.displayMsg('msg ch.. 2016. 5. 13.
[MIUI] 최적화 예외 등록 [MIUI] 최적화 예외 등록최적화 시에 계속해서 떠 있어야 하는 앱들이 종료되는 문제 발생. I5 plus smart watch 와의 연동이 계속해서 끊어짐. pushbullet 역시 연동이 중단됨.홈 화면에서 메뉴버튼을 클릭하면 동작중인 앱들이 표시됨. 예외 등록을 할 앱을 선택하여 아래로 아래면 잠금 표시가 생성됨. 설정 방법 먼저, 메뉴 버튼을 눌렀을 때에, 최근 앱이 표시되게 한다.잠글 앱을 선택하고 아래로 내린다.잠긴 모습을 확인 할 수 있다 출처 http://en.miui.com/thread-38747-1-1.html 2016. 5. 11.