Skip to content

Commit 5f7f757

Browse files
author
Benedikt Koeppel
committed
First version of DroidPlane
- can open *.mm files (e.g. from Dropbox) - displays one level at the time problems: - doesn't have a file open dialog - doesn't show buttons, links, etc. etc. - can't edit any file (read only) - not yet released in market - need to clean up the code - need a nice icon - show somehow if a node has subnodes (e.g. with a ">" sign) - don't open leaf nodes (at the moment, when clicking a leaf node all it's child nodes are displayed, i.e. no child nodes)
0 parents  commit 5f7f757

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+563
-0
lines changed

.classpath

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" path="src"/>
4+
<classpathentry kind="src" path="gen"/>
5+
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
6+
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
7+
<classpathentry kind="lib" path="/usr/local/android-sdk/platforms/android-17/android.jar">
8+
<attributes>
9+
<attribute name="javadoc_location" value="file:/usr/local/android-sdk/docs/reference"/>
10+
</attributes>
11+
<accessrules>
12+
<accessrule kind="nonaccessible" pattern="com/android/internal/**"/>
13+
</accessrules>
14+
</classpathentry>
15+
<classpathentry kind="output" path="bin/classes"/>
16+
</classpath>

.project

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>DroidPlane</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
<buildCommand>
19+
<name>org.eclipse.jdt.core.javabuilder</name>
20+
<arguments>
21+
</arguments>
22+
</buildCommand>
23+
<buildCommand>
24+
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
25+
<arguments>
26+
</arguments>
27+
</buildCommand>
28+
</buildSpec>
29+
<natures>
30+
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
31+
<nature>org.eclipse.jdt.core.javanature</nature>
32+
</natures>
33+
</projectDescription>

AndroidManifest.xml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="ch.benediktkoeppel.code.droidplane"
4+
android:versionCode="1"
5+
android:versionName="1.0" >
6+
7+
<uses-sdk
8+
android:minSdkVersion="8"
9+
android:targetSdkVersion="17" />
10+
11+
<application
12+
android:allowBackup="true"
13+
android:icon="@drawable/ic_launcher"
14+
android:label="@string/app_name"
15+
android:theme="@style/AppTheme" >
16+
<activity
17+
android:name="ch.benediktkoeppel.code.droidplane.MainActivity"
18+
android:label="@string/app_name" >
19+
<intent-filter>
20+
<action android:name="android.intent.action.MAIN" />
21+
<category android:name="android.intent.category.LAUNCHER" />
22+
</intent-filter>
23+
<intent-filter>
24+
<action android:name="android.intent.action.VIEW" />
25+
<action android:name="android.intent.action.EDIT" />
26+
<category android:name="android.intent.category.DEFAULT" />
27+
<data android:scheme="file" />
28+
<data android:host="*" />
29+
<data android:pathPattern=".*\\.mm" />
30+
<data android:mimeType="application/x-freemind" />
31+
32+
</intent-filter>
33+
34+
</activity>
35+
</application>
36+
37+
38+
39+
40+
</manifest>

bin/AndroidManifest.xml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="ch.benediktkoeppel.code.droidplane"
4+
android:versionCode="1"
5+
android:versionName="1.0" >
6+
7+
<uses-sdk
8+
android:minSdkVersion="8"
9+
android:targetSdkVersion="17" />
10+
11+
<application
12+
android:allowBackup="true"
13+
android:icon="@drawable/ic_launcher"
14+
android:label="@string/app_name"
15+
android:theme="@style/AppTheme" >
16+
<activity
17+
android:name="ch.benediktkoeppel.code.droidplane.MainActivity"
18+
android:label="@string/app_name" >
19+
<intent-filter>
20+
<action android:name="android.intent.action.MAIN" />
21+
<category android:name="android.intent.category.LAUNCHER" />
22+
</intent-filter>
23+
<intent-filter>
24+
<action android:name="android.intent.action.VIEW" />
25+
<action android:name="android.intent.action.EDIT" />
26+
<category android:name="android.intent.category.DEFAULT" />
27+
<data android:scheme="file" />
28+
<data android:host="*" />
29+
<data android:pathPattern=".*\\.mm" />
30+
<data android:mimeType="application/x-freemind" />
31+
32+
</intent-filter>
33+
34+
</activity>
35+
</application>
36+
37+
38+
39+
40+
</manifest>

bin/DroidPlane.apk

197 KB
Binary file not shown.

bin/classes.dex

444 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

bin/jarlist.cache

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# cache for current jar dependecy. DO NOT EDIT.
2+
# format is <lastModified> <length> <SHA-1> <path>
3+
# Encoding is UTF-8

bin/res/drawable-hdpi/ic_launcher.png

6.54 KB

bin/res/drawable-mdpi/ic_launcher.png

3.4 KB
10.1 KB
19.1 KB

bin/resources.ap_

44.4 KB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/** Automatically generated file. DO NOT MODIFY */
2+
package ch.benediktkoeppel.code.droidplane;
3+
4+
public final class BuildConfig {
5+
public final static boolean DEBUG = true;
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
/* AUTO-GENERATED FILE. DO NOT MODIFY.
2+
*
3+
* This class was automatically generated by the
4+
* aapt tool from the resource data it found. It
5+
* should not be modified by hand.
6+
*/
7+
8+
package ch.benediktkoeppel.code.droidplane;
9+
10+
public final class R {
11+
public static final class attr {
12+
}
13+
public static final class dimen {
14+
/** Default screen margins, per the Android Design guidelines.
15+
16+
Customize dimensions originally defined in res/values/dimens.xml (such as
17+
screen margins) for sw720dp devices (e.g. 10" tablets) in landscape here.
18+
19+
*/
20+
public static final int activity_horizontal_margin=0x7f050000;
21+
public static final int activity_vertical_margin=0x7f050001;
22+
}
23+
public static final class drawable {
24+
public static final int ic_launcher=0x7f020000;
25+
}
26+
public static final class id {
27+
public static final int list_view=0x7f090000;
28+
}
29+
public static final class layout {
30+
public static final int activity_main=0x7f030000;
31+
}
32+
public static final class menu {
33+
public static final int main=0x7f080000;
34+
}
35+
public static final class raw {
36+
public static final int example=0x7f040000;
37+
}
38+
public static final class string {
39+
public static final int app_name=0x7f060000;
40+
public static final int button_up=0x7f060003;
41+
public static final int menu_settings=0x7f060001;
42+
public static final int title_activity_main=0x7f060002;
43+
}
44+
public static final class style {
45+
/**
46+
Base application theme, dependent on API level. This theme is replaced
47+
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
48+
49+
50+
Theme customizations available in newer API levels can go in
51+
res/values-vXX/styles.xml, while customizations related to
52+
backward-compatibility can go here.
53+
54+
55+
Base application theme for API 11+. This theme completely replaces
56+
AppBaseTheme from res/values/styles.xml on API 11+ devices.
57+
58+
API 11 theme customizations can go here.
59+
60+
Base application theme for API 14+. This theme completely replaces
61+
AppBaseTheme from BOTH res/values/styles.xml and
62+
res/values-v11/styles.xml on API 14+ devices.
63+
64+
API 14 theme customizations can go here.
65+
*/
66+
public static final int AppBaseTheme=0x7f070000;
67+
/** Application theme.
68+
All customizations that are NOT specific to a particular API-level can go here.
69+
*/
70+
public static final int AppTheme=0x7f070001;
71+
}
72+
}

ic_launcher-web.png

52.4 KB

libs/android-support-v4.jar

384 KB
Binary file not shown.

proguard-project.txt

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
#}

project.properties

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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-17

res/drawable-hdpi/ic_launcher.png

8.8 KB

res/drawable-mdpi/ic_launcher.png

4.27 KB

res/drawable-xhdpi/ic_launcher.png

14.1 KB

res/drawable-xxhdpi/ic_launcher.png

27.8 KB

res/layout/activity_main.xml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:tools="http://schemas.android.com/tools"
4+
android:layout_width="match_parent"
5+
android:layout_height="match_parent"
6+
android:orientation="vertical" >
7+
8+
<ListView
9+
android:layout_width="wrap_content"
10+
android:layout_height="wrap_content"
11+
android:id="@+id/list_view" >
12+
13+
</ListView>
14+
</LinearLayout>

res/menu/main.xml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
2+
3+
4+
5+
</menu>

res/raw/example.mm

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<map version="0.9.0">
2+
<!--To view this file, download free mind mapping software Freeplane from http://freeplane.sourceforge.net -->
3+
<node TEXT="Help" ID="ID_1385587321" CREATED="1361978276662" MODIFIED="1363198391078">
4+
<hook NAME="MapStyle" max_node_width="600"/>
5+
<node TEXT="Opening Files" POSITION="right" ID="ID_564005984" CREATED="1363198401582" MODIFIED="1363198403584">
6+
<node TEXT="In Dropbox, open the &quot;.mm&quot; document" ID="ID_1466149708" CREATED="1363198405484" MODIFIED="1363198418681"/>
7+
<node TEXT="You might be asked with which application you want to open your MindMap" ID="ID_691670280" CREATED="1363198418886" MODIFIED="1363198429079"/>
8+
<node TEXT="Choose DroidPlane" ID="ID_1112539367" CREATED="1363198429265" MODIFIED="1363198432369"/>
9+
</node>
10+
<node TEXT="About" POSITION="right" ID="ID_495169311" CREATED="1363198391806" MODIFIED="1363198394109">
11+
<node TEXT="Written by Benedikt K&#xf6;ppel" ID="ID_1678888380" CREATED="1363198433472" MODIFIED="1363198439036"/>
12+
</node>
13+
</node>
14+
</map>

res/values-sw600dp/dimens.xml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<resources>
2+
3+
<!--
4+
Customize dimensions originally defined in res/values/dimens.xml (such as
5+
screen margins) for sw600dp devices (e.g. 7" tablets) here.
6+
-->
7+
8+
</resources>

res/values-sw720dp-land/dimens.xml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<resources>
2+
3+
<!--
4+
Customize dimensions originally defined in res/values/dimens.xml (such as
5+
screen margins) for sw720dp devices (e.g. 10" tablets) in landscape here.
6+
-->
7+
<dimen name="activity_horizontal_margin">128dp</dimen>
8+
9+
</resources>

res/values-v11/styles.xml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<resources>
2+
3+
<!--
4+
Base application theme for API 11+. This theme completely replaces
5+
AppBaseTheme from res/values/styles.xml on API 11+ devices.
6+
-->
7+
<style name="AppBaseTheme" parent="android:Theme.Holo.Light">
8+
<!-- API 11 theme customizations can go here. -->
9+
</style>
10+
11+
</resources>

res/values-v14/styles.xml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<resources>
2+
3+
<!--
4+
Base application theme for API 14+. This theme completely replaces
5+
AppBaseTheme from BOTH res/values/styles.xml and
6+
res/values-v11/styles.xml on API 14+ devices.
7+
-->
8+
<style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar">
9+
<!-- API 14 theme customizations can go here. -->
10+
</style>
11+
12+
</resources>

res/values/dimens.xml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<resources>
2+
3+
<!-- Default screen margins, per the Android Design guidelines. -->
4+
<dimen name="activity_horizontal_margin">16dp</dimen>
5+
<dimen name="activity_vertical_margin">16dp</dimen>
6+
7+
</resources>

res/values/strings.xml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<string name="app_name">DroidPlane</string>
4+
<string name="menu_settings">Settings</string>
5+
<string name="title_activity_main">MainActivity</string>
6+
<string name="button_up">Up</string>
7+
</resources>

res/values/styles.xml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<resources>
2+
3+
<!--
4+
Base application theme, dependent on API level. This theme is replaced
5+
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
6+
-->
7+
<style name="AppBaseTheme" parent="android:Theme.Light">
8+
<!--
9+
Theme customizations available in newer API levels can go in
10+
res/values-vXX/styles.xml, while customizations related to
11+
backward-compatibility can go here.
12+
-->
13+
</style>
14+
15+
<!-- Application theme. -->
16+
<style name="AppTheme" parent="AppBaseTheme">
17+
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
18+
</style>
19+
20+
</resources>

0 commit comments

Comments
 (0)