Permalink
Browse files

Add phonegap support and README.md

Signed-off-by: Wenwei Cai <stanley.w.cai@gmail.com>
  • Loading branch information...
1 parent 1254a7b commit 3357ce6f9b9c764ed1f451ddc34225e7e2052a8c @swcai committed Mar 8, 2013
Showing with 11,062 additions and 0 deletions.
  1. +4 −0 .gitignore
  2. +10 −0 README.md
  3. +63 −0 phonegap/AndroidManifest.xml
  4. +17 −0 phonegap/ant.properties
  5. +1 −0 phonegap/assets/www/application.css
  6. +1 −0 phonegap/assets/www/application.js
  7. +6,536 −0 phonegap/assets/www/cordova-2.4.0.js
  8. +115 −0 phonegap/assets/www/css/index.css
  9. BIN phonegap/assets/www/img/cordova.png
  10. BIN phonegap/assets/www/img/logo.png
  11. +1 −0 phonegap/assets/www/index.html
  12. +42 −0 phonegap/assets/www/index.html.back
  13. +49 −0 phonegap/assets/www/js/index.js
  14. +165 −0 phonegap/assets/www/main.js
  15. +116 −0 phonegap/assets/www/master.css
  16. BIN phonegap/assets/www/res/icon/android/icon-36-ldpi.png
  17. BIN phonegap/assets/www/res/icon/android/icon-48-mdpi.png
  18. BIN phonegap/assets/www/res/icon/android/icon-72-hdpi.png
  19. BIN phonegap/assets/www/res/icon/android/icon-96-xhdpi.png
  20. BIN phonegap/assets/www/res/screen/android/screen-hdpi-landscape.png
  21. BIN phonegap/assets/www/res/screen/android/screen-hdpi-portrait.png
  22. BIN phonegap/assets/www/res/screen/android/screen-ldpi-landscape.png
  23. BIN phonegap/assets/www/res/screen/android/screen-ldpi-portrait.png
  24. BIN phonegap/assets/www/res/screen/android/screen-mdpi-landscape.png
  25. BIN phonegap/assets/www/res/screen/android/screen-mdpi-portrait.png
  26. BIN phonegap/assets/www/res/screen/android/screen-xhdpi-landscape.png
  27. BIN phonegap/assets/www/res/screen/android/screen-xhdpi-portrait.png
  28. +68 −0 phonegap/assets/www/spec.html
  29. +33 −0 phonegap/assets/www/spec/helper.js
  30. +67 −0 phonegap/assets/www/spec/index.js
  31. +20 −0 phonegap/assets/www/spec/lib/jasmine-1.2.0/MIT.LICENSE
  32. +616 −0 phonegap/assets/www/spec/lib/jasmine-1.2.0/jasmine-html.js
  33. +81 −0 phonegap/assets/www/spec/lib/jasmine-1.2.0/jasmine.css
  34. +2,529 −0 phonegap/assets/www/spec/lib/jasmine-1.2.0/jasmine.js
  35. +92 −0 phonegap/build.xml
  36. BIN phonegap/cordova/appinfo.jar
  37. +24 −0 phonegap/cordova/build
  38. +24 −0 phonegap/cordova/clean
  39. +159 −0 phonegap/cordova/cordova
  40. +24 −0 phonegap/cordova/log
  41. +24 −0 phonegap/cordova/release
  42. +24 −0 phonegap/cordova/run
  43. BIN phonegap/libs/cordova-2.4.0.jar
  44. +10 −0 phonegap/local.properties
  45. +20 −0 phonegap/proguard-project.txt
  46. +14 −0 phonegap/project.properties
  47. BIN phonegap/res/drawable-hdpi/ic_launcher.png
  48. BIN phonegap/res/drawable-hdpi/icon.png
  49. BIN phonegap/res/drawable-ldpi/ic_launcher.png
  50. BIN phonegap/res/drawable-ldpi/icon.png
  51. BIN phonegap/res/drawable-mdpi/ic_launcher.png
  52. BIN phonegap/res/drawable-mdpi/icon.png
  53. BIN phonegap/res/drawable-xhdpi/ic_launcher.png
  54. BIN phonegap/res/drawable-xhdpi/icon.png
  55. BIN phonegap/res/drawable/icon.png
  56. +13 −0 phonegap/res/layout/main.xml
  57. +4 −0 phonegap/res/values/strings.xml
  58. +60 −0 phonegap/res/xml/config.xml
  59. +36 −0 phonegap/src/com/stanleycai/stock/stock.java
View
@@ -1,3 +1,7 @@
node_modules
*~
*.bak
+phonegap/gen/*
+phonegap/bin/*
+*_
+*.swp
View
@@ -0,0 +1,10 @@
+My Stock HTML5 application
+
+TODO list
+- StockAdd default to active the input
+- Optimize the refresh rate
+- Add StockDetail Panel
+- Deploy on PhoneGap, testing on Android and Apple
+- Update the app Theme
+- beautify the StockList panel
+- code clean
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:windowSoftInputMode="adjustPan"
+ package="com.stanleycai.stock" android:versionName="1.0" android:versionCode="1" android:hardwareAccelerated="true">
+ <supports-screens
+ android:largeScreens="true"
+ android:normalScreens="true"
+ android:smallScreens="true"
+ android:xlargeScreens="true"
+ android:resizeable="true"
+ android:anyDensity="true"
+ />
+
+ <uses-permission android:name="android.permission.CAMERA" />
+ <uses-permission android:name="android.permission.VIBRATE" />
+ <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
+ <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
+ <uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
+ <uses-permission android:name="android.permission.INTERNET" />
+ <uses-permission android:name="android.permission.RECEIVE_SMS" />
+ <uses-permission android:name="android.permission.RECORD_AUDIO" />
+ <uses-permission android:name="android.permission.RECORD_VIDEO"/>
+ <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
+ <uses-permission android:name="android.permission.READ_CONTACTS" />
+ <uses-permission android:name="android.permission.WRITE_CONTACTS" />
+ <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
+ <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
+ <uses-permission android:name="android.permission.GET_ACCOUNTS" />
+ <uses-permission android:name="android.permission.BROADCAST_STICKY" />
+
+
+ <application android:icon="@drawable/icon" android:label="@string/app_name"
+ android:hardwareAccelerated="true"
+ android:debuggable="true">
+ <activity android:name="stock" android:label="@string/app_name"
+ android:theme="@android:style/Theme.Black.NoTitleBar"
+ android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale">
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
+ </application>
+
+ <uses-sdk android:minSdkVersion="7" android:targetSdkVersion="17"/>
+</manifest>
View
@@ -0,0 +1,17 @@
+# This file is used to override default values used by the Ant build system.
+#
+# This file must be checked into Version Control Systems, as it is
+# integral to the build system of your project.
+
+# This file is only used by the Ant script.
+
+# You can use this to override default values such as
+# 'source.dir' for the location of your java source folder and
+# 'out.dir' for the location of your output folder.
+
+# You can also use it define how the release builds are signed by declaring
+# the following properties:
+# 'key.store' for the location of your keystore and
+# 'key.alias' for the name of the key to use.
+# The password will be asked during the build when you use the 'release' target.
+
Oops, something went wrong.

0 comments on commit 3357ce6

Please sign in to comment.