Android Content Framework(1)Concept

Some Concept

1, total customized
The Main activity will open the local html index.html page with android WebView and WebViewClient, for example
import android.webkit.WebView;
import android.webkit.WebViewClient;

Once the page is load, it will send the request as follow:
file://
sillycat://
http://

Then we handle these different protocol in our handler.

Sometimes, we will just execute our native activity.
Sometimes, load the remote URL
Sometimes, load local html page.

We can easily configure android features, we can go to remote html, local html, native codes easily.

2. jquery mobile and native sample
MainActivity load the Jquery mobile html page. Drive all the flows in the JQuery mobile.

3. PhoneGap
Based on the www static html pages. Should be able to talk to the server side via AJAX. But depends on the configuration to using native library.

And I have concerns that there is bugs or version conflicts between PhoneGap and Android/iOS.

I have no idea which one is better. I may not have enough time to maintain an Android framework, iOS framework myself. Maybe PhoneGap is a good choice.

Tips
1. Sync Error
When I sync my project with gradle on Android Studio, I get this Error Message
The project is using an unsupported version of Gradle. Please use version 1.10.

Solution:
Download and install the gradle 1.12
http://stackoverflow.com/questions/22359831/force-android-studio-to-download-and-install-gradle-1-10-or-1-1

Update the Android SDK Manager.

Update the build.gradle configuration.
dependencies {
classpath 'com.android.tools.build:gradle:0.11.+'
}
compileSdkVersion 19
buildToolsVersion "19.1.0"

Command to build
>gradle clean build

And one of my project is managed by maven
>mvn clean package android:deploy android:run

References:
http://sillycat.iteye.com/blog/2008402

Build Phonegap with JQuery Mobile
http://stackoverflow.com/questions/14375354/jquery-mobile-e-book-development/14375842#14375842
http://coenraets.org/blog/2011/10/sample-application-with-jquery-mobile-and-phonegap/

Customized Build It
http://code.tutsplus.com/tutorials/use-jquery-mobile-to-build-a-native-android-news-reader-app--mobile-4720
http://code.tutsplus.com/tutorials/use-jquery-mobile-to-build-a-native-android-news-reader-app-part-2--mobile-4775
http://code.tutsplus.com/tutorials/use-jquery-mobile-to-build-a-native-android-news-reader-app-part-3--mobile-4886

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. [Android]设置Activity为全屏显示的两种
  2. 【Android】Android中的数据传递(2)
  3. Android碎片积累
  4. Qt for Android获取手机序列号
  5. Android(安卓)Studio实现代码混淆
  6. Android通过http协议POST传输方式
  7. Android常用功能代码总结一
  8. android通过程序收起通知栏
  9. android发送restful风格的http请求
  10. android之wifi体系架构源码流程分析