├── libs
└── android-support-v4.jar
├── res
├── drawable-hdpi
│ └── dos.jpeg
├── drawable-mdpi
│ └── dos.jpeg
├── drawable-xhdpi
│ └── dos.jpeg
├── drawable-xxhdpi
│ └── dos.jpeg
├── values
│ ├── dimens.xml
│ ├── strings.xml
│ └── styles.xml
├── layout
│ ├── activity_main.xml
│ └── fragment_main.xml
├── values-v11
│ └── styles.xml
├── values-w820dp
│ └── dimens.xml
├── values-v14
│ └── styles.xml
└── menu
│ └── main.xml
├── lint.xml
├── README.md
├── .gitignore
├── project.properties
├── proguard-project.txt
├── AndroidManifest.xml
├── LICENSE
└── src
└── com
└── dos
└── dos
└── MainActivity.java
/libs/android-support-v4.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DemocracyOS/android/development/libs/android-support-v4.jar
--------------------------------------------------------------------------------
/res/drawable-hdpi/dos.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DemocracyOS/android/development/res/drawable-hdpi/dos.jpeg
--------------------------------------------------------------------------------
/res/drawable-mdpi/dos.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DemocracyOS/android/development/res/drawable-mdpi/dos.jpeg
--------------------------------------------------------------------------------
/res/drawable-xhdpi/dos.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DemocracyOS/android/development/res/drawable-xhdpi/dos.jpeg
--------------------------------------------------------------------------------
/res/drawable-xxhdpi/dos.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DemocracyOS/android/development/res/drawable-xxhdpi/dos.jpeg
--------------------------------------------------------------------------------
/lint.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | DemocracyOS
2 | ===========
3 |
4 | This is a pre-alpha version of a webpage wrapper for Android for the instance of DemocracyOS running at http://dos.partidodelared.org
5 |
--------------------------------------------------------------------------------
/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 16dp
5 | 16dp
6 |
7 |
8 |
--------------------------------------------------------------------------------
/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | DemocraciaOS
4 | Settings
5 | #409797
6 | #FFFF00
7 |
8 |
--------------------------------------------------------------------------------
/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
8 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Built application files
2 | *.apk
3 | *.ap_
4 |
5 | # Files for the Dalvik VM
6 | *.dex
7 |
8 | # Java class files
9 | *.class
10 |
11 | # Generated files
12 | bin/
13 | gen/
14 |
15 | # Gradle files
16 | .gradle/
17 | build/
18 |
19 | # Local configuration file (sdk path, etc)
20 | local.properties
21 |
22 | # Proguard folder generated by Eclipse
23 | proguard/
24 |
--------------------------------------------------------------------------------
/res/values-v11/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/res/values-w820dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 | 64dp
9 |
10 |
11 |
--------------------------------------------------------------------------------
/res/values-v14/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/res/menu/main.xml:
--------------------------------------------------------------------------------
1 |
13 |
--------------------------------------------------------------------------------
/project.properties:
--------------------------------------------------------------------------------
1 | # This file is automatically generated by Android Tools.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must be checked in Version Control Systems.
5 | #
6 | # To customize properties used by the Ant build system edit
7 | # "ant.properties", and override values to adapt the script to your
8 | # project structure.
9 | #
10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12 |
13 | # Project target.
14 | target=android-19
15 | android.library.reference.1=../appcompat_v7
16 |
--------------------------------------------------------------------------------
/res/layout/fragment_main.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
16 |
17 |
--------------------------------------------------------------------------------
/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
14 |
15 |
16 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/proguard-project.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 |
--------------------------------------------------------------------------------
/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
11 |
12 |
13 |
18 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2014 DemocracyOS
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
--------------------------------------------------------------------------------
/src/com/dos/dos/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.dos.dos;
2 |
3 | import android.support.v4.app.Fragment;
4 | import android.app.Activity;
5 | import android.os.Bundle;
6 | import android.view.LayoutInflater;
7 | import android.view.Menu;
8 | import android.view.MenuItem;
9 | import android.view.View;
10 | import android.view.ViewGroup;
11 | import android.webkit.WebSettings;
12 | import android.webkit.WebView;
13 | import android.webkit.WebViewClient;
14 |
15 | public class MainActivity extends Activity {
16 |
17 | @Override
18 | protected void onCreate(Bundle savedInstanceState) {
19 | super.onCreate(savedInstanceState);
20 | setContentView(R.layout.fragment_main);
21 |
22 | WebView myWebView = (WebView) findViewById(R.id.webView1);
23 | myWebView.loadUrl("http://dos.partidodelared.org");
24 | myWebView.setWebViewClient(new WebViewClient());
25 | WebSettings webSettings = myWebView.getSettings();
26 | webSettings.setJavaScriptEnabled(true);
27 |
28 | }
29 |
30 | @Override
31 | public boolean onCreateOptionsMenu(Menu menu) {
32 |
33 | // Inflate the menu; this adds items to the action bar if it is present.
34 | getMenuInflater().inflate(R.menu.main, menu);
35 | return true;
36 | }
37 |
38 | @Override
39 | public boolean onOptionsItemSelected(MenuItem item) {
40 | // Handle action bar item clicks here. The action bar will
41 | // automatically handle clicks on the Home/Up button, so long
42 | // as you specify a parent activity in AndroidManifest.xml.
43 | int id = item.getItemId();
44 | if (id == R.id.action_settings) {
45 | return true;
46 | }
47 | return super.onOptionsItemSelected(item);
48 | }
49 |
50 | /**
51 | * A placeholder fragment containing a simple view.
52 | */
53 | public static class PlaceholderFragment extends Fragment {
54 |
55 |
56 | public PlaceholderFragment() {
57 | }
58 |
59 | @Override
60 | public View onCreateView(LayoutInflater inflater, ViewGroup container,
61 | Bundle savedInstanceState) {
62 | View rootView = inflater.inflate(R.layout.fragment_main, container, false);
63 |
64 | return rootView;
65 | }
66 | }
67 |
68 | }
69 |
--------------------------------------------------------------------------------