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
- 浏览: 2486603 次
- 性别:
- 来自: 成都
最新评论
-
nation:
你好,在部署Mesos+Spark的运行环境时,出现一个现象, ...
Spark(4)Deal with Mesos -
sillycat:
AMAZON Relatedhttps://www.godad ...
AMAZON API Gateway(2)Client Side SSL with NGINX -
sillycat:
sudo usermod -aG docker ec2-use ...
Docker and VirtualBox(1)Set up Shared Disk for Virtual Box -
sillycat:
Every Half an Hour30 * * * * /u ...
Build Home NAS(3)Data Redundancy -
sillycat:
3 List the Cron Job I Have>c ...
Build Home NAS(3)Data Redundancy
相关推荐
Android 13.0 framework jar 包
Android11.0 系统分析 Android11.0 启动分析 Android11.0 最新Framework解析 Android11.0 Binder通信原理
对Android Service Framework进行简单的剖析
自己编译的 Android12版本-framework源码jar 来源:AOSP源分支 android-12.1.0_r11
Android Framework精编内核解析
android framework hal
Android-framework详细分析[1],分析了framework的详细结构框架,是学习android framework层的必选教材。
字节面试Android11.0最新Framework解析 程序员面试专用 Android底层开发
android bluetooth framework,application 层分析
Android-framework详细分析 Android-framework详细分析 全面了解android系统框架。
android framework 实现细节,常见面试问题汇总
android的framework简介
android-framework-Android系统原理与开发
android_framework工作岗位职责
android Framework精编内核解析
android meida framework
-Android系统Framework层源码分析
Android系统Framework层源码分析 ,简单直接,是我自己学习用的资料