Code Monkey home page Code Monkey logo

android-webview's Introduction

Android WebView

A simple android app generator to webview based apps.

Requirements

  • Android SDK installed and available on path.
  • ImageMagick

Install

    $ pip install android-webview

Create your app template

    $ android-webview 

Follow the steps and be happy! :)

ToDo

  • Validate parameters
  • Improve android 'target' versions
  • Generate apk. :O

android-webview's People

Contributors

raelmax avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

android-webview's Issues

creating the app

After setting the app name and url,

What's your app name? [myapp]

Project_Name
What's your app url?
http://localhost/project

What's your java package name? [com.myapp.mobile]

com.jorge.mobile

Error: Target id is not valid. Use 'android list targets' to get the target ids.
Traceback (most recent call last):
File "/usr/local/bin/android-webview", line 8, in
load_entry_point('android-webview==0.1.3', 'console_scripts', 'android-webview')()
File "/Library/Python/2.7/site-packages/awebview/android_webview.py", line 92, in main
replace_templates()
File "/Library/Python/2.7/site-packages/awebview/android_webview.py", line 45, in replace_templates
new_main_activity = open('{0}/src/{1}/MainActivity.java'.format(PARAMS['app_name'], PARAMS['package_dir']), 'w')
IOError: [Errno 2] No such file or directory: 'Project_Name/src/com/jorge/mobile/MainActivity.java'

I have copied the template/* files into ../Project_Name to avoid previous errors but then I'm stuck here.

When I try to $ android list targets
Available Android targets:

Is empty.

Thanks.
Jorge

ant release failed

[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Generating resource IDs...
[aapt] /Users/project/bin/AndroidManifest.xml:7: error: No resource identifier found for attribute 'targetSdkVersion' in package 'android'
[aapt] /Users/project/bin/AndroidManifest.xml:13: error: No resource identifier found for attribute 'allowBackup' in package 'android'
[aapt] /Users/project/bin/AndroidManifest.xml:13: error: Error: No resource found that matches the given name (at 'icon' with value '@drawable/ic_launcher').
[aapt] /Users/project/bin/AndroidManifest.xml:18: error: Error: String types not allowed (at 'configChanges' with value 'orientation|screenSize').

BUILD FAILED
/usr/local/Cellar/android-sdk/23.0.2/tools/ant/build.xml:653: The following error occurred while executing this line:
/usr/local/Cellar/android-sdk/23.0.2/tools/ant/build.xml:698: null returned: 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.