Your SlideShare is downloading. ×
Parkjihoon phonegap research_for_bada
Parkjihoon phonegap research_for_bada
Parkjihoon phonegap research_for_bada
Parkjihoon phonegap research_for_bada
Parkjihoon phonegap research_for_bada
Parkjihoon phonegap research_for_bada
Parkjihoon phonegap research_for_bada
Parkjihoon phonegap research_for_bada
Parkjihoon phonegap research_for_bada
Parkjihoon phonegap research_for_bada
Parkjihoon phonegap research_for_bada
Parkjihoon phonegap research_for_bada
Parkjihoon phonegap research_for_bada
Parkjihoon phonegap research_for_bada
Parkjihoon phonegap research_for_bada
Parkjihoon phonegap research_for_bada
Parkjihoon phonegap research_for_bada
Parkjihoon phonegap research_for_bada
Parkjihoon phonegap research_for_bada
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Parkjihoon phonegap research_for_bada

1,505

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,505
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. PhoneGap for Bada research 박지훈 [email_address] http://webdevmobile.com http://code.google.com/p/badaphonegap
  • 2. PhoneGap-Plugins http://wiki.phonegap.com/w/page/36752779/PhoneGap-Plugins
  • 3. Install
  • 4. Step 1: Installing the Prerequisite Software
    • Eclipse
    • Java JDK
    • Android SDK
    • ADT Plug-in for Eclipse
    • Apache ANT 
    • Ruby (Ruby187)
    • Git Bash
  • 5. Step 2: Confirm Environment Variables
    • ANDROID_HOME
      • D:/android-sdk-windows
    • ANT_HOME
      • D:apache-ant-1.8.1
    • JAVA_HOME
      • C:Program FilesJavajdk1.6.0_20
    • Path
      • C:Ruby191 bin ;
      • D:apache-ant-1.8.1 bin ;
      • C:Program FilesJavajdk1.6.0_20 bin ;
      • D:android-sdk-windows tools
      • E:JeeHoonphonegap-androidbin
  • 6. Step 3. Download the PhoneGap Source Code
    • http://github.com/phonegap/phonegap-android
  • 7. Step 4. Build the Example PhoneGap App
    • ruby bin/droid gap create [path_of_application]
      • ruby bin/droidgap create example
    • ruby bin/droidgap gen …
  • 8. Step 5. Importing Your Example App into Eclipse
  • 9. Project
  • 10. JS -> Java
  • 11. JS -> Java
  • 12. JS -> Java
  • 13. Java -> JS
  • 14. Java -> JS
  • 15. WebView
    • android.webkit.WebView
      • http://developer.android.com/reference/android/webkit/WebView.html
  • 16. WebView
    • A WebView has several customization points where you can add your own behavior.
    • These are:
    • Creating and setting a WebChromeClient subclass. This class is called when something that might impact a browser UI happens, for instance, progress updates and JavaScript alerts are sent here (see Debugging Tasks ).
    • Creating and setting a WebViewClient subclass. It will be called when things happen that impact the rendering of the content, eg, errors or form submissions. You can also intercept URL loading here (via shouldOverrideUrlLoading() ).
    • Modifying the WebSettings , such as enabling JavaScript with setJavaScriptEnabled() .
    • Adding JavaScript-to-Java interfaces with the addJavascriptInterface(Object, String) method. This lets you bind Java objects into the WebView so they can be controlled from the web pages JavaScript.
  • 17. Stack JavaScript -> Bada … . Bada -> JavaScript Osp::Base::String * Osp::Web::Controls::Web::EvaluateJavascriptN ( const Osp::Base::String &  scriptCode  )  const PhoneGap (Native) Android Device WebView Device Device WebChromeClient WebViewClient PhoneGap (JavaScript) Application PhoneGap (Native) Bada Device ??? Device Device ??? ??? PhoneGap (JavaScript) Application
  • 18. BONDI
  • 19. 요약
    • phonegap.0.9.4.js
      • Library on js
      • js 파일은 모든 플랫폼 동일할 것으로 생각됨
    • Com.phonegap package
      • Library on anroid
      • android.webkit.WebView 를 사용하여 JS 와 Java 사이의 interface 를 제공하는 것으로 생각됨
        • Customization by using WebChromeClient , WebViewClient
    • 주요 예상 작업
      • Bada 향 WebView 와 같은 클래스 파악
      • Phonegap.0.9.4.js 에서 native 에 필요로하는 interface 파악

×