diff --git a/Acrylic_Paint/.classpath b/Acrylic_Paint/.classpath
deleted file mode 100644
index a4763d1..0000000
--- a/Acrylic_Paint/.classpath
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/Acrylic_Paint/.project b/Acrylic_Paint/.project
deleted file mode 100644
index 1444927..0000000
--- a/Acrylic_Paint/.project
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
- Acrylic_Paint
-
-
-
-
-
- com.android.ide.eclipse.adt.ResourceManagerBuilder
-
-
-
-
- com.android.ide.eclipse.adt.PreCompilerBuilder
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- com.android.ide.eclipse.adt.ApkBuilder
-
-
-
-
-
- com.android.ide.eclipse.adt.AndroidNature
- org.eclipse.jdt.core.javanature
-
-
diff --git a/Acrylic_Paint/.settings/org.eclipse.jdt.core.prefs b/Acrylic_Paint/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index f77b31c..0000000
--- a/Acrylic_Paint/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,4 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.source=1.5
diff --git a/Acrylic_Paint/AndroidManifest.xml b/Acrylic_Paint/AndroidManifest.xml
deleted file mode 100644
index cab9daa..0000000
--- a/Acrylic_Paint/AndroidManifest.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Acrylic_Paint/bin/Acrylic_Paint.apk b/Acrylic_Paint/bin/Acrylic_Paint.apk
deleted file mode 100644
index da1db10..0000000
Binary files a/Acrylic_Paint/bin/Acrylic_Paint.apk and /dev/null differ
diff --git a/Acrylic_Paint/bin/EasyPaint.apk b/Acrylic_Paint/bin/EasyPaint.apk
deleted file mode 100644
index f14b75e..0000000
Binary files a/Acrylic_Paint/bin/EasyPaint.apk and /dev/null differ
diff --git a/Acrylic_Paint/bin/classes.dex b/Acrylic_Paint/bin/classes.dex
deleted file mode 100644
index bccd1a4..0000000
Binary files a/Acrylic_Paint/bin/classes.dex and /dev/null differ
diff --git a/Acrylic_Paint/bin/classes/anupam/acrylic/BuildConfig.class b/Acrylic_Paint/bin/classes/anupam/acrylic/BuildConfig.class
deleted file mode 100644
index 8762ce3..0000000
Binary files a/Acrylic_Paint/bin/classes/anupam/acrylic/BuildConfig.class and /dev/null differ
diff --git a/Acrylic_Paint/bin/classes/anupam/acrylic/ColorPickerDialog$1.class b/Acrylic_Paint/bin/classes/anupam/acrylic/ColorPickerDialog$1.class
deleted file mode 100644
index e4daa6e..0000000
Binary files a/Acrylic_Paint/bin/classes/anupam/acrylic/ColorPickerDialog$1.class and /dev/null differ
diff --git a/Acrylic_Paint/bin/classes/anupam/acrylic/ColorPickerDialog$ColorPickerView.class b/Acrylic_Paint/bin/classes/anupam/acrylic/ColorPickerDialog$ColorPickerView.class
deleted file mode 100644
index 0b2a5be..0000000
Binary files a/Acrylic_Paint/bin/classes/anupam/acrylic/ColorPickerDialog$ColorPickerView.class and /dev/null differ
diff --git a/Acrylic_Paint/bin/classes/anupam/acrylic/ColorPickerDialog$OnColorChangedListener.class b/Acrylic_Paint/bin/classes/anupam/acrylic/ColorPickerDialog$OnColorChangedListener.class
deleted file mode 100644
index 24ccf25..0000000
Binary files a/Acrylic_Paint/bin/classes/anupam/acrylic/ColorPickerDialog$OnColorChangedListener.class and /dev/null differ
diff --git a/Acrylic_Paint/bin/classes/anupam/acrylic/ColorPickerDialog.class b/Acrylic_Paint/bin/classes/anupam/acrylic/ColorPickerDialog.class
deleted file mode 100644
index 1f73455..0000000
Binary files a/Acrylic_Paint/bin/classes/anupam/acrylic/ColorPickerDialog.class and /dev/null differ
diff --git a/Acrylic_Paint/bin/classes/anupam/acrylic/EasyPaint$1.class b/Acrylic_Paint/bin/classes/anupam/acrylic/EasyPaint$1.class
deleted file mode 100644
index 67ec698..0000000
Binary files a/Acrylic_Paint/bin/classes/anupam/acrylic/EasyPaint$1.class and /dev/null differ
diff --git a/Acrylic_Paint/bin/classes/anupam/acrylic/EasyPaint$2$1.class b/Acrylic_Paint/bin/classes/anupam/acrylic/EasyPaint$2$1.class
deleted file mode 100644
index 6a377d4..0000000
Binary files a/Acrylic_Paint/bin/classes/anupam/acrylic/EasyPaint$2$1.class and /dev/null differ
diff --git a/Acrylic_Paint/bin/classes/anupam/acrylic/EasyPaint$2.class b/Acrylic_Paint/bin/classes/anupam/acrylic/EasyPaint$2.class
deleted file mode 100644
index 410ac3d..0000000
Binary files a/Acrylic_Paint/bin/classes/anupam/acrylic/EasyPaint$2.class and /dev/null differ
diff --git a/Acrylic_Paint/bin/classes/anupam/acrylic/EasyPaint$3.class b/Acrylic_Paint/bin/classes/anupam/acrylic/EasyPaint$3.class
deleted file mode 100644
index 007dcd4..0000000
Binary files a/Acrylic_Paint/bin/classes/anupam/acrylic/EasyPaint$3.class and /dev/null differ
diff --git a/Acrylic_Paint/bin/classes/anupam/acrylic/EasyPaint$4.class b/Acrylic_Paint/bin/classes/anupam/acrylic/EasyPaint$4.class
deleted file mode 100644
index d00fd37..0000000
Binary files a/Acrylic_Paint/bin/classes/anupam/acrylic/EasyPaint$4.class and /dev/null differ
diff --git a/Acrylic_Paint/bin/classes/anupam/acrylic/EasyPaint$MyView.class b/Acrylic_Paint/bin/classes/anupam/acrylic/EasyPaint$MyView.class
deleted file mode 100644
index 6ac8cb8..0000000
Binary files a/Acrylic_Paint/bin/classes/anupam/acrylic/EasyPaint$MyView.class and /dev/null differ
diff --git a/Acrylic_Paint/bin/classes/anupam/acrylic/EasyPaint.class b/Acrylic_Paint/bin/classes/anupam/acrylic/EasyPaint.class
deleted file mode 100644
index bfbefb7..0000000
Binary files a/Acrylic_Paint/bin/classes/anupam/acrylic/EasyPaint.class and /dev/null differ
diff --git a/Acrylic_Paint/bin/classes/anupam/acrylic/GraphicsActivity.class b/Acrylic_Paint/bin/classes/anupam/acrylic/GraphicsActivity.class
deleted file mode 100644
index a707535..0000000
Binary files a/Acrylic_Paint/bin/classes/anupam/acrylic/GraphicsActivity.class and /dev/null differ
diff --git a/Acrylic_Paint/bin/classes/anupam/acrylic/PictureLayout.class b/Acrylic_Paint/bin/classes/anupam/acrylic/PictureLayout.class
deleted file mode 100644
index 9b84b46..0000000
Binary files a/Acrylic_Paint/bin/classes/anupam/acrylic/PictureLayout.class and /dev/null differ
diff --git a/Acrylic_Paint/bin/classes/anupam/acrylic/Places.class b/Acrylic_Paint/bin/classes/anupam/acrylic/Places.class
deleted file mode 100644
index 1a0c18b..0000000
Binary files a/Acrylic_Paint/bin/classes/anupam/acrylic/Places.class and /dev/null differ
diff --git a/Acrylic_Paint/bin/classes/anupam/acrylic/R$attr.class b/Acrylic_Paint/bin/classes/anupam/acrylic/R$attr.class
deleted file mode 100644
index 50fbba5..0000000
Binary files a/Acrylic_Paint/bin/classes/anupam/acrylic/R$attr.class and /dev/null differ
diff --git a/Acrylic_Paint/bin/classes/anupam/acrylic/R$drawable.class b/Acrylic_Paint/bin/classes/anupam/acrylic/R$drawable.class
deleted file mode 100644
index f24b420..0000000
Binary files a/Acrylic_Paint/bin/classes/anupam/acrylic/R$drawable.class and /dev/null differ
diff --git a/Acrylic_Paint/bin/classes/anupam/acrylic/R$id.class b/Acrylic_Paint/bin/classes/anupam/acrylic/R$id.class
deleted file mode 100644
index 2c9e6f7..0000000
Binary files a/Acrylic_Paint/bin/classes/anupam/acrylic/R$id.class and /dev/null differ
diff --git a/Acrylic_Paint/bin/classes/anupam/acrylic/R$layout.class b/Acrylic_Paint/bin/classes/anupam/acrylic/R$layout.class
deleted file mode 100644
index 6bdabd5..0000000
Binary files a/Acrylic_Paint/bin/classes/anupam/acrylic/R$layout.class and /dev/null differ
diff --git a/Acrylic_Paint/bin/classes/anupam/acrylic/R$string.class b/Acrylic_Paint/bin/classes/anupam/acrylic/R$string.class
deleted file mode 100644
index 10f08af..0000000
Binary files a/Acrylic_Paint/bin/classes/anupam/acrylic/R$string.class and /dev/null differ
diff --git a/Acrylic_Paint/bin/classes/anupam/acrylic/R.class b/Acrylic_Paint/bin/classes/anupam/acrylic/R.class
deleted file mode 100644
index 0379510..0000000
Binary files a/Acrylic_Paint/bin/classes/anupam/acrylic/R.class and /dev/null differ
diff --git a/Acrylic_Paint/bin/classes/anupam/acrylic/Splash$1.class b/Acrylic_Paint/bin/classes/anupam/acrylic/Splash$1.class
deleted file mode 100644
index c83b07e..0000000
Binary files a/Acrylic_Paint/bin/classes/anupam/acrylic/Splash$1.class and /dev/null differ
diff --git a/Acrylic_Paint/bin/classes/anupam/acrylic/Splash.class b/Acrylic_Paint/bin/classes/anupam/acrylic/Splash.class
deleted file mode 100644
index a37d9b1..0000000
Binary files a/Acrylic_Paint/bin/classes/anupam/acrylic/Splash.class and /dev/null differ
diff --git a/Acrylic_Paint/bin/jarlist.cache b/Acrylic_Paint/bin/jarlist.cache
deleted file mode 100644
index 1b5ec3f..0000000
--- a/Acrylic_Paint/bin/jarlist.cache
+++ /dev/null
@@ -1,3 +0,0 @@
-# cache for current jar dependecy. DO NOT EDIT.
-# format is
-# Encoding is UTF-8
diff --git a/Acrylic_Paint/bin/res/drawable-hdpi/about.png b/Acrylic_Paint/bin/res/drawable-hdpi/about.png
deleted file mode 100644
index eb800d8..0000000
Binary files a/Acrylic_Paint/bin/res/drawable-hdpi/about.png and /dev/null differ
diff --git a/Acrylic_Paint/bin/res/drawable-hdpi/blur.png b/Acrylic_Paint/bin/res/drawable-hdpi/blur.png
deleted file mode 100644
index 6dfecab..0000000
Binary files a/Acrylic_Paint/bin/res/drawable-hdpi/blur.png and /dev/null differ
diff --git a/Acrylic_Paint/bin/res/drawable-hdpi/clear_all.png b/Acrylic_Paint/bin/res/drawable-hdpi/clear_all.png
deleted file mode 100644
index 3e69fc0..0000000
Binary files a/Acrylic_Paint/bin/res/drawable-hdpi/clear_all.png and /dev/null differ
diff --git a/Acrylic_Paint/bin/res/drawable-hdpi/color.png b/Acrylic_Paint/bin/res/drawable-hdpi/color.png
deleted file mode 100644
index 42c2c2e..0000000
Binary files a/Acrylic_Paint/bin/res/drawable-hdpi/color.png and /dev/null differ
diff --git a/Acrylic_Paint/bin/res/drawable-hdpi/emboss.png b/Acrylic_Paint/bin/res/drawable-hdpi/emboss.png
deleted file mode 100644
index 4d7355a..0000000
Binary files a/Acrylic_Paint/bin/res/drawable-hdpi/emboss.png and /dev/null differ
diff --git a/Acrylic_Paint/bin/res/drawable-hdpi/erase.png b/Acrylic_Paint/bin/res/drawable-hdpi/erase.png
deleted file mode 100644
index 88edf4e..0000000
Binary files a/Acrylic_Paint/bin/res/drawable-hdpi/erase.png and /dev/null differ
diff --git a/Acrylic_Paint/bin/res/drawable-hdpi/ic_launcher.png b/Acrylic_Paint/bin/res/drawable-hdpi/ic_launcher.png
deleted file mode 100644
index bcfa058..0000000
Binary files a/Acrylic_Paint/bin/res/drawable-hdpi/ic_launcher.png and /dev/null differ
diff --git a/Acrylic_Paint/bin/res/drawable-hdpi/icon.png b/Acrylic_Paint/bin/res/drawable-hdpi/icon.png
deleted file mode 100644
index b3a56f6..0000000
Binary files a/Acrylic_Paint/bin/res/drawable-hdpi/icon.png and /dev/null differ
diff --git a/Acrylic_Paint/bin/res/drawable-hdpi/save.png b/Acrylic_Paint/bin/res/drawable-hdpi/save.png
deleted file mode 100644
index fe12004..0000000
Binary files a/Acrylic_Paint/bin/res/drawable-hdpi/save.png and /dev/null differ
diff --git a/Acrylic_Paint/bin/res/drawable-hdpi/share.png b/Acrylic_Paint/bin/res/drawable-hdpi/share.png
deleted file mode 100644
index 6c6112f..0000000
Binary files a/Acrylic_Paint/bin/res/drawable-hdpi/share.png and /dev/null differ
diff --git a/Acrylic_Paint/bin/res/drawable-hdpi/size.png b/Acrylic_Paint/bin/res/drawable-hdpi/size.png
deleted file mode 100644
index e71a49d..0000000
Binary files a/Acrylic_Paint/bin/res/drawable-hdpi/size.png and /dev/null differ
diff --git a/Acrylic_Paint/bin/res/drawable-hdpi/splash.png b/Acrylic_Paint/bin/res/drawable-hdpi/splash.png
deleted file mode 100644
index 28ed70a..0000000
Binary files a/Acrylic_Paint/bin/res/drawable-hdpi/splash.png and /dev/null differ
diff --git a/Acrylic_Paint/bin/res/drawable-ldpi/ic_launcher.png b/Acrylic_Paint/bin/res/drawable-ldpi/ic_launcher.png
deleted file mode 100644
index dd7c05b..0000000
Binary files a/Acrylic_Paint/bin/res/drawable-ldpi/ic_launcher.png and /dev/null differ
diff --git a/Acrylic_Paint/bin/res/drawable-mdpi/ic_launcher.png b/Acrylic_Paint/bin/res/drawable-mdpi/ic_launcher.png
deleted file mode 100644
index 85848ff..0000000
Binary files a/Acrylic_Paint/bin/res/drawable-mdpi/ic_launcher.png and /dev/null differ
diff --git a/Acrylic_Paint/bin/res/drawable-xhdpi/ic_launcher.png b/Acrylic_Paint/bin/res/drawable-xhdpi/ic_launcher.png
deleted file mode 100644
index 916901e..0000000
Binary files a/Acrylic_Paint/bin/res/drawable-xhdpi/ic_launcher.png and /dev/null differ
diff --git a/Acrylic_Paint/bin/res/drawable-xhdpi/splash_xhdpi.png b/Acrylic_Paint/bin/res/drawable-xhdpi/splash_xhdpi.png
deleted file mode 100644
index 2e4af85..0000000
Binary files a/Acrylic_Paint/bin/res/drawable-xhdpi/splash_xhdpi.png and /dev/null differ
diff --git a/Acrylic_Paint/bin/resources.ap_ b/Acrylic_Paint/bin/resources.ap_
deleted file mode 100644
index 5a67b80..0000000
Binary files a/Acrylic_Paint/bin/resources.ap_ and /dev/null differ
diff --git a/Acrylic_Paint/gen/anupam/acrylic/BuildConfig.java b/Acrylic_Paint/gen/anupam/acrylic/BuildConfig.java
deleted file mode 100644
index 2895ba8..0000000
--- a/Acrylic_Paint/gen/anupam/acrylic/BuildConfig.java
+++ /dev/null
@@ -1,6 +0,0 @@
-/** Automatically generated file. DO NOT MODIFY */
-package anupam.acrylic;
-
-public final class BuildConfig {
- public final static boolean DEBUG = true;
-}
\ No newline at end of file
diff --git a/Acrylic_Paint/gen/anupam/acrylic/R.java b/Acrylic_Paint/gen/anupam/acrylic/R.java
deleted file mode 100644
index efd1766..0000000
--- a/Acrylic_Paint/gen/anupam/acrylic/R.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/* AUTO-GENERATED FILE. DO NOT MODIFY.
- *
- * This class was automatically generated by the
- * aapt tool from the resource data it found. It
- * should not be modified by hand.
- */
-
-package anupam.acrylic;
-
-public final class R {
- public static final class attr {
- }
- public static final class drawable {
- public static final int blur=0x7f020000;
- public static final int color=0x7f020001;
- public static final int emboss=0x7f020002;
- public static final int erase=0x7f020003;
- public static final int ic_launcher=0x7f020004;
- public static final int icon=0x7f020005;
- public static final int size=0x7f020006;
- public static final int splash=0x7f020007;
- public static final int splash_xhdpi=0x7f020008;
- }
- public static final class id {
- public static final int root=0x7f050000;
- public static final int seekBar1=0x7f050001;
- public static final int select_size=0x7f050004;
- public static final int size_value=0x7f050003;
- public static final int textView1=0x7f050002;
- }
- public static final class layout {
- public static final int brush=0x7f030000;
- public static final int main=0x7f030001;
- }
- public static final class string {
- public static final int app_name=0x7f040001;
- public static final int hello=0x7f040000;
- public static final int no_way_to_share=0x7f040005;
- public static final int share_text_template=0x7f040003;
- public static final int share_title_template=0x7f040002;
- public static final int toolbox_share_title=0x7f040004;
- }
-}
diff --git a/Acrylic_Paint/proguard-project.txt b/Acrylic_Paint/proguard-project.txt
deleted file mode 100644
index f2fe155..0000000
--- a/Acrylic_Paint/proguard-project.txt
+++ /dev/null
@@ -1,20 +0,0 @@
-# To enable ProGuard in your project, edit project.properties
-# to define the proguard.config property as described in that file.
-#
-# Add project specific ProGuard rules here.
-# By default, the flags in this file are appended to flags specified
-# in ${sdk.dir}/tools/proguard/proguard-android.txt
-# You can edit the include path and order by changing the ProGuard
-# include property in project.properties.
-#
-# For more details, see
-# http://developer.android.com/guide/developing/tools/proguard.html
-
-# Add any project specific keep options here:
-
-# If your project uses WebView with JS, uncomment the following
-# and specify the fully qualified class name to the JavaScript interface
-# class:
-#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
-# public *;
-#}
diff --git a/Acrylic_Paint/project.properties b/Acrylic_Paint/project.properties
deleted file mode 100644
index 85aac54..0000000
--- a/Acrylic_Paint/project.properties
+++ /dev/null
@@ -1,14 +0,0 @@
-# This file is automatically generated by Android Tools.
-# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
-#
-# This file must be checked in Version Control Systems.
-#
-# To customize properties used by the Ant build system edit
-# "ant.properties", and override values to adapt the script to your
-# project structure.
-#
-# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
-#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
-
-# Project target.
-target=android-8
diff --git a/Acrylic_Paint/res/drawable-hdpi/about.png b/Acrylic_Paint/res/drawable-hdpi/about.png
deleted file mode 100644
index d7cb2c2..0000000
Binary files a/Acrylic_Paint/res/drawable-hdpi/about.png and /dev/null differ
diff --git a/Acrylic_Paint/res/drawable-hdpi/blur.png b/Acrylic_Paint/res/drawable-hdpi/blur.png
deleted file mode 100644
index aead054..0000000
Binary files a/Acrylic_Paint/res/drawable-hdpi/blur.png and /dev/null differ
diff --git a/Acrylic_Paint/res/drawable-hdpi/clear_all.png b/Acrylic_Paint/res/drawable-hdpi/clear_all.png
deleted file mode 100644
index cfcc1e7..0000000
Binary files a/Acrylic_Paint/res/drawable-hdpi/clear_all.png and /dev/null differ
diff --git a/Acrylic_Paint/res/drawable-hdpi/color.png b/Acrylic_Paint/res/drawable-hdpi/color.png
deleted file mode 100644
index 99d7b93..0000000
Binary files a/Acrylic_Paint/res/drawable-hdpi/color.png and /dev/null differ
diff --git a/Acrylic_Paint/res/drawable-hdpi/emboss.png b/Acrylic_Paint/res/drawable-hdpi/emboss.png
deleted file mode 100644
index 330de3e..0000000
Binary files a/Acrylic_Paint/res/drawable-hdpi/emboss.png and /dev/null differ
diff --git a/Acrylic_Paint/res/drawable-hdpi/erase.png b/Acrylic_Paint/res/drawable-hdpi/erase.png
deleted file mode 100644
index 326f3aa..0000000
Binary files a/Acrylic_Paint/res/drawable-hdpi/erase.png and /dev/null differ
diff --git a/Acrylic_Paint/res/drawable-hdpi/ic_launcher.png b/Acrylic_Paint/res/drawable-hdpi/ic_launcher.png
deleted file mode 100644
index 96a442e..0000000
Binary files a/Acrylic_Paint/res/drawable-hdpi/ic_launcher.png and /dev/null differ
diff --git a/Acrylic_Paint/res/drawable-hdpi/icon.png b/Acrylic_Paint/res/drawable-hdpi/icon.png
deleted file mode 100644
index 6b7e59f..0000000
Binary files a/Acrylic_Paint/res/drawable-hdpi/icon.png and /dev/null differ
diff --git a/Acrylic_Paint/res/drawable-hdpi/save.png b/Acrylic_Paint/res/drawable-hdpi/save.png
deleted file mode 100644
index b55e2e1..0000000
Binary files a/Acrylic_Paint/res/drawable-hdpi/save.png and /dev/null differ
diff --git a/Acrylic_Paint/res/drawable-hdpi/share.png b/Acrylic_Paint/res/drawable-hdpi/share.png
deleted file mode 100644
index 30fb850..0000000
Binary files a/Acrylic_Paint/res/drawable-hdpi/share.png and /dev/null differ
diff --git a/Acrylic_Paint/res/drawable-hdpi/size.png b/Acrylic_Paint/res/drawable-hdpi/size.png
deleted file mode 100644
index 9f76fd8..0000000
Binary files a/Acrylic_Paint/res/drawable-hdpi/size.png and /dev/null differ
diff --git a/Acrylic_Paint/res/drawable-hdpi/splash.png b/Acrylic_Paint/res/drawable-hdpi/splash.png
deleted file mode 100644
index f8c1257..0000000
Binary files a/Acrylic_Paint/res/drawable-hdpi/splash.png and /dev/null differ
diff --git a/Acrylic_Paint/res/drawable-ldpi/ic_launcher.png b/Acrylic_Paint/res/drawable-ldpi/ic_launcher.png
deleted file mode 100644
index 9923872..0000000
Binary files a/Acrylic_Paint/res/drawable-ldpi/ic_launcher.png and /dev/null differ
diff --git a/Acrylic_Paint/res/drawable-mdpi/ic_launcher.png b/Acrylic_Paint/res/drawable-mdpi/ic_launcher.png
deleted file mode 100644
index 359047d..0000000
Binary files a/Acrylic_Paint/res/drawable-mdpi/ic_launcher.png and /dev/null differ
diff --git a/Acrylic_Paint/res/drawable-xhdpi/ic_launcher.png b/Acrylic_Paint/res/drawable-xhdpi/ic_launcher.png
deleted file mode 100644
index 71c6d76..0000000
Binary files a/Acrylic_Paint/res/drawable-xhdpi/ic_launcher.png and /dev/null differ
diff --git a/Acrylic_Paint/res/drawable-xhdpi/splash_xhdpi.png b/Acrylic_Paint/res/drawable-xhdpi/splash_xhdpi.png
deleted file mode 100644
index b9a13f9..0000000
Binary files a/Acrylic_Paint/res/drawable-xhdpi/splash_xhdpi.png and /dev/null differ
diff --git a/Acrylic_Paint/res/layout-large/brush.xml b/Acrylic_Paint/res/layout-large/brush.xml
deleted file mode 100644
index f71bdd7..0000000
--- a/Acrylic_Paint/res/layout-large/brush.xml
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Acrylic_Paint/res/layout-large/main.xml b/Acrylic_Paint/res/layout-large/main.xml
deleted file mode 100644
index a5c4862..0000000
--- a/Acrylic_Paint/res/layout-large/main.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/Acrylic_Paint/res/layout/brush.xml b/Acrylic_Paint/res/layout/brush.xml
deleted file mode 100644
index a2cd3bf..0000000
--- a/Acrylic_Paint/res/layout/brush.xml
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Acrylic_Paint/res/layout/main.xml b/Acrylic_Paint/res/layout/main.xml
deleted file mode 100644
index 295fe9d..0000000
--- a/Acrylic_Paint/res/layout/main.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/Acrylic_Paint/res/values-it/strings.xml b/Acrylic_Paint/res/values-it/strings.xml
deleted file mode 100644
index acf8d5b..0000000
--- a/Acrylic_Paint/res/values-it/strings.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
-
- Ciao Mondo, EasyPaint!
- See what dearest painted
-
- Condividi
- Can locate an app to share with…
- Qui c\'è la tua tavolozza. Inizia a colorare!
- Colore
- Info
- Glassa
- Matita
- Dimensione
- Gomma
- Pulisci tutto
- Salva
- Condividi
- Info
- Dimensione predefinita del pennello: %1$s
- La tua creazione è stata salvata in %1$s
- Acrylic Paint è uno strumento che ti aiuta a colorare la tua immaginazione.\nScegli un colore e libera la tua fantasia.\n\nPremi il tasto menù per più opzioni!\nDivertiti :)
-
- Scegli dimensione Pennello
- Seleziona
- Continua
- Per favore seleziona almeno 1 come dimensione del Pennello
- Scegli un Colore
- Dimensione del Pennello scelta: %1$s
-
-
\ No newline at end of file
diff --git a/Acrylic_Paint/res/values/strings.xml b/Acrylic_Paint/res/values/strings.xml
deleted file mode 100644
index 337fcad..0000000
--- a/Acrylic_Paint/res/values/strings.xml
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
- Hello World, EasyPaint!
- Acrylic Paint
- See what dearest painted
-
- Share
- Can locate an app to share with…
- Here is your palette. Start to color!
- Color
- Info
- Emboss
- Blur
- Bruch size
- Erase
- Clear all
- Save
- Share
- About
- Default brush size is: %1$s
- Saved your creation to %1$s
- Acrylic Paint is a coloring tool which helps you to make anything of your imagination.\n
- Pick your colors and start painting.\n\n
- Press menu for more options!\n
- Happy Coloring :)
-
- Choose your Brush width
- Select
- Continue
- OK
- Please select atleast 1 as brush size.
- Pick a Color
- Your selected brush size is: %1$s
-
-
\ No newline at end of file
diff --git a/Acrylic_Paint/src/anupam/acrylic/ColorPickerDialog.java b/Acrylic_Paint/src/anupam/acrylic/ColorPickerDialog.java
deleted file mode 100644
index cb37d39..0000000
--- a/Acrylic_Paint/src/anupam/acrylic/ColorPickerDialog.java
+++ /dev/null
@@ -1,247 +0,0 @@
-/*
- * Copyright (C) 2014 Valerio Bozzolan
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
-*/
-
-package anupam.acrylic;
-
-import android.app.Dialog;
-import android.content.Context;
-import android.graphics.Canvas;
-import android.graphics.Color;
-import android.graphics.ColorMatrix;
-import android.graphics.Paint;
-import android.graphics.RectF;
-import android.graphics.Shader;
-import android.graphics.SweepGradient;
-import android.os.Bundle;
-import android.view.MotionEvent;
-import android.view.View;
-
-public class ColorPickerDialog extends Dialog {
-
- public interface OnColorChangedListener {
- void colorChanged(int color);
- }
-
- private OnColorChangedListener mListener;
- private int mInitialColor;
-
-
- private static class ColorPickerView extends View {
- private Paint mPaint;
- private Paint mCenterPaint;
- private final int[] mColors;
- private OnColorChangedListener mListener;
-
-
-
- ColorPickerView(Context c, OnColorChangedListener l, int color) {
- super(c);
- mListener = l;
- mColors = new int[] {
- 0xFFFF0000, 0xFFFF00FF, 0xFF0000FF, 0xFF00FFFF, 0xFF00FF00,
- 0xFFFFFF00, 0xFFFF0000
- };
- Shader s = new SweepGradient(0, 0, mColors, null);
-
- mPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
- mPaint.setShader(s);
- mPaint.setStyle(Paint.Style.STROKE);
- mPaint.setStrokeWidth(32);
-
- mCenterPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
- mCenterPaint.setColor(color);
- mCenterPaint.setStrokeWidth(5);
- }
-
- private boolean mTrackingCenter;
- private boolean mHighlightCenter;
-
- @Override
- protected void onDraw(Canvas canvas) {
-
-
-
- float r = CENTER_X - mPaint.getStrokeWidth()*0.5f;
-
- canvas.translate(CENTER_X, CENTER_X);
-
- canvas.drawOval(new RectF(-r, -r, r, r), mPaint);
- canvas.drawCircle(0, 0, CENTER_RADIUS, mCenterPaint);
-
- if (mTrackingCenter) {
- int c = mCenterPaint.getColor();
- mCenterPaint.setStyle(Paint.Style.STROKE);
-
- if (mHighlightCenter) {
- mCenterPaint.setAlpha(0xFF);
- } else {
- mCenterPaint.setAlpha(0x80);
- }
- canvas.drawCircle(0, 0,
- CENTER_RADIUS + mCenterPaint.getStrokeWidth(),
- mCenterPaint);
-
- mCenterPaint.setStyle(Paint.Style.FILL);
- mCenterPaint.setColor(c);
- }
- }
-
- @Override
- protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
- setMeasuredDimension(CENTER_X*2, CENTER_Y*2);
- }
-
- private static final int CENTER_X = 150;
- private static final int CENTER_Y = 150;
- private static final int CENTER_RADIUS = 60;
-
- private int floatToByte(float x) {
- int n = java.lang.Math.round(x);
- return n;
- }
- private int pinToByte(int n) {
- if (n < 0) {
- n = 0;
- } else if (n > 255) {
- n = 255;
- }
- return n;
- }
-
- private int ave(int s, int d, float p) {
- return s + java.lang.Math.round(p * (d - s));
- }
-
- private int interpColor(int colors[], float unit) {
- if (unit <= 0) {
- return colors[0];
- }
- if (unit >= 1) {
- return colors[colors.length - 1];
- }
-
- float p = unit * (colors.length - 1);
- int i = (int)p;
- p -= i;
-
- // now p is just the fractional part [0...1) and i is the index
- int c0 = colors[i];
- int c1 = colors[i+1];
- int a = ave(Color.alpha(c0), Color.alpha(c1), p);
- int r = ave(Color.red(c0), Color.red(c1), p);
- int g = ave(Color.green(c0), Color.green(c1), p);
- int b = ave(Color.blue(c0), Color.blue(c1), p);
-
- return Color.argb(a, r, g, b);
- }
-
- @SuppressWarnings("unused")
- private int rotateColor(int color, float rad) {
- float deg = rad * 180 / 3.1415927f;
- int r = Color.red(color);
- int g = Color.green(color);
- int b = Color.blue(color);
-
- ColorMatrix cm = new ColorMatrix();
- ColorMatrix tmp = new ColorMatrix();
-
- cm.setRGB2YUV();
- tmp.setRotate(0, deg);
- cm.postConcat(tmp);
- tmp.setYUV2RGB();
- cm.postConcat(tmp);
-
- final float[] a = cm.getArray();
-
- int ir = floatToByte(a[0] * r + a[1] * g + a[2] * b);
- int ig = floatToByte(a[5] * r + a[6] * g + a[7] * b);
- int ib = floatToByte(a[10] * r + a[11] * g + a[12] * b);
-
- return Color.argb(Color.alpha(color), pinToByte(ir),
- pinToByte(ig), pinToByte(ib));
- }
-
- private static final float PI = 3.1415926f;
-
- @Override
- public boolean onTouchEvent(MotionEvent event) {
- float x = event.getX() - CENTER_X;
- float y = event.getY() - CENTER_Y;
- boolean inCenter = java.lang.Math.sqrt(x*x + y*y) <= CENTER_RADIUS;
-
- switch (event.getAction()) {
- case MotionEvent.ACTION_DOWN:
- mTrackingCenter = inCenter;
- if (inCenter) {
- mHighlightCenter = true;
- invalidate();
- break;
- }
- case MotionEvent.ACTION_MOVE:
- if (mTrackingCenter) {
- if (mHighlightCenter != inCenter) {
- mHighlightCenter = inCenter;
- invalidate();
- }
- } else {
- float angle = (float)java.lang.Math.atan2(y, x);
- // need to turn angle [-PI ... PI] into unit [0....1]
- float unit = angle/(2*PI);
- if (unit < 0) {
- unit += 1;
- }
- mCenterPaint.setColor(interpColor(mColors, unit));
- invalidate();
- }
- break;
- case MotionEvent.ACTION_UP:
- if (mTrackingCenter) {
- if (inCenter) {
- mListener.colorChanged(mCenterPaint.getColor());
- }
- mTrackingCenter = false; // so we draw w/o halo
- invalidate();
- }
- break;
- }
- return true;
- }
- }
-
- public ColorPickerDialog(Context context,
- OnColorChangedListener listener,
- int initialColor) {
- super(context);
-
- mListener = listener;
- mInitialColor = initialColor;
- }
-
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- OnColorChangedListener l = new OnColorChangedListener() {
- public void colorChanged(int color) {
- mListener.colorChanged(color);
- dismiss();
- }
- };
-
- setContentView(new ColorPickerView(getContext(), l, mInitialColor));
- setTitle(R.string.pick_color);
- }
-}
diff --git a/Acrylic_Paint/src/anupam/acrylic/EasyPaint.java b/Acrylic_Paint/src/anupam/acrylic/EasyPaint.java
deleted file mode 100644
index d9e7523..0000000
--- a/Acrylic_Paint/src/anupam/acrylic/EasyPaint.java
+++ /dev/null
@@ -1,464 +0,0 @@
-/*
- * Copyright (C) 2014 Valerio Bozzolan
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
-*/
-
-package anupam.acrylic;
-
-import java.io.File;
-import java.io.FileNotFoundException;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Calendar;
-
-import android.app.AlertDialog;
-import android.content.Context;
-import android.content.DialogInterface;
-import android.content.Intent;
-import android.content.SharedPreferences;
-import android.content.pm.ActivityInfo;
-import android.graphics.Bitmap;
-import android.graphics.Bitmap.CompressFormat;
-import android.graphics.BlurMaskFilter;
-import android.graphics.Canvas;
-import android.graphics.EmbossMaskFilter;
-import android.graphics.MaskFilter;
-import android.graphics.Paint;
-import android.graphics.Path;
-import android.graphics.PorterDuff.Mode;
-import android.graphics.PorterDuffXfermode;
-import android.net.ConnectivityManager;
-import android.net.NetworkInfo;
-import android.net.Uri;
-import android.os.Bundle;
-import android.view.Display;
-import android.view.LayoutInflater;
-import android.view.Menu;
-import android.view.MenuItem;
-import android.view.MotionEvent;
-import android.view.View;
-import android.view.View.OnClickListener;
-import android.view.ViewGroup;
-import android.widget.Button;
-import android.widget.SeekBar;
-import android.widget.TextView;
-import android.widget.Toast;
-
-public class EasyPaint extends GraphicsActivity implements
- ColorPickerDialog.OnColorChangedListener {
-
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
- setContentView(new MyView(this));
-
- mPaint = new Paint();
- mPaint.setAntiAlias(true);
- mPaint.setDither(true);
- mPaint.setColor(0xFFF00000);
- mPaint.setStyle(Paint.Style.STROKE);
- mPaint.setStrokeJoin(Paint.Join.ROUND);
- mPaint.setStrokeCap(Paint.Cap.ROUND);
- mPaint.setStrokeWidth(5);
-
- mEmboss = new EmbossMaskFilter(new float[] { 1, 1, 1 }, 0.4f, 6, 3.5f);
-
- mBlur = new BlurMaskFilter(5, BlurMaskFilter.Blur.NORMAL);
-
- if (isFirstTime()) {
-
- AlertDialog.Builder alert = new AlertDialog.Builder(this);
-
- alert.setTitle(R.string.app_name + " - " + R.string.info);
-
-
- alert.setMessage(R.string.app_description);
-
- alert.setNegativeButton(R.string.continue_fuck,
- new DialogInterface.OnClickListener() {
- public void onClick(DialogInterface dialog,
- int whichButton) {
-
- Toast.makeText(getApplicationContext(),
- R.string.here_is_your_canvas,
- Toast.LENGTH_SHORT).show();
-
- }
- });
-
- alert.show();
- }
- if (isSecondTime()) {
- Toast.makeText(getApplicationContext(),
- R.string.here_is_your_canvas, Toast.LENGTH_SHORT).show();
- }
-
- }
-
- private Paint mPaint;
- private MaskFilter mEmboss;
- private MaskFilter mBlur;
-
- public void colorChanged(int color) {
- mPaint.setColor(color);
- }
-
- public class MyView extends View {
-
- private Bitmap mBitmap;
- private Canvas mCanvas;
- private Path mPath;
- private Paint mBitmapPaint;
-
- public MyView(Context c) {
- super(c);
-
- Display display = getWindowManager().getDefaultDisplay();
- int width = display.getWidth();
- int height = display.getHeight();
- mBitmap = Bitmap.createBitmap(width, height,
- Bitmap.Config.ARGB_8888);
- mCanvas = new Canvas(mBitmap);
- mPath = new Path();
- mBitmapPaint = new Paint(Paint.DITHER_FLAG);
- }
-
- @Override
- protected void onSizeChanged(int w, int h, int oldw, int oldh) {
- super.onSizeChanged(w, h, oldw, oldh);
- }
-
- @Override
- protected void onDraw(Canvas canvas) {
- canvas.drawColor(0xFFFFFFFF);
-
- canvas.drawBitmap(mBitmap, 0, 0, mBitmapPaint);
-
- canvas.drawPath(mPath, mPaint);
- }
-
- private float mX, mY;
- private static final float TOUCH_TOLERANCE = 4;
-
- private void touch_start(float x, float y) {
- mPath.reset();
- mPath.moveTo(x, y);
- mX = x;
- mY = y;
- }
-
- private void touch_move(float x, float y) {
- float dx = Math.abs(x - mX);
- float dy = Math.abs(y - mY);
- if (dx >= TOUCH_TOLERANCE || dy >= TOUCH_TOLERANCE) {
- mPath.quadTo(mX, mY, (x + mX) / 2, (y + mY) / 2);
- mX = x;
- mY = y;
- }
- }
-
- private void touch_up() {
- mPath.lineTo(mX, mY);
- // commit the path to our offscreen
- mCanvas.drawPath(mPath, mPaint);
- // kill this so we don't double draw
- mPath.reset();
- }
-
- @Override
- public boolean onTouchEvent(MotionEvent event) {
- float x = event.getX();
- float y = event.getY();
-
- switch (event.getAction()) {
- case MotionEvent.ACTION_DOWN:
- touch_start(x, y);
- invalidate();
- break;
- case MotionEvent.ACTION_MOVE:
- touch_move(x, y);
- invalidate();
- break;
- case MotionEvent.ACTION_UP:
- touch_up();
- invalidate();
- break;
- }
- return true;
- }
- }
-
- private static final int COLOR_MENU_ID = Menu.FIRST;
- private static final int EMBOSS_MENU_ID = Menu.FIRST + 1;
- private static final int BLUR_MENU_ID = Menu.FIRST + 2;
- private static final int SIZE_MENU_ID = Menu.FIRST + 3;
- private static final int ERASE_MENU_ID = Menu.FIRST + 4;
- private static final int CLEAR_ALL = Menu.FIRST + 5;
- private static final int SAVE = Menu.FIRST + 6;
- private static final int SHARE = Menu.FIRST + 7;
- private static final int ABOUT = Menu.FIRST + 8;
-
- @Override
- public boolean onCreateOptionsMenu(Menu menu) {
- super.onCreateOptionsMenu(menu);
-
- menu.add(0, COLOR_MENU_ID, 0, R.string.color).setIcon(R.drawable.color);
- menu.add(0, EMBOSS_MENU_ID, 0, R.string.emboss).setIcon(
- R.drawable.emboss);
- menu.add(0, BLUR_MENU_ID, 0, R.string.blur).setIcon(R.drawable.blur);
- menu.add(0, SIZE_MENU_ID, 0, R.string.brush_size).setIcon(
- R.drawable.size);
- menu.add(0, ERASE_MENU_ID, 0, R.string.erase).setIcon(R.drawable.erase);
- menu.add(0, CLEAR_ALL, 0, R.string.clear_all);
- menu.add(0, SAVE, 0, R.string.save);
- menu.add(0, SHARE, 0, R.string.share);
- menu.add(0, ABOUT, 0, R.string.about);
-
- /****
- * Is this the mechanism to extend with filter effects? Intent intent =
- * new Intent(null, getIntent().getData());
- * intent.addCategory(Intent.CATEGORY_ALTERNATIVE);
- * menu.addIntentOptions( Menu.ALTERNATIVE, 0, new ComponentName(this,
- * NotesList.class), null, intent, 0, null);
- *****/
- return true;
- }
-
- @Override
- public boolean onPrepareOptionsMenu(Menu menu) {
- super.onPrepareOptionsMenu(menu);
- return true;
- }
-
- @Override
- public boolean onOptionsItemSelected(MenuItem item) {
- mPaint.setXfermode(null);
- mPaint.setAlpha(0xFF);
-
- switch (item.getItemId()) {
- case COLOR_MENU_ID:
- new ColorPickerDialog(this, this, mPaint.getColor()).show();
- return true;
- case EMBOSS_MENU_ID:
- if (mPaint.getMaskFilter() != mEmboss) {
- mPaint.setMaskFilter(mEmboss);
- } else {
- mPaint.setMaskFilter(null);
- }
- return true;
- case BLUR_MENU_ID:
- if (mPaint.getMaskFilter() != mBlur) {
- mPaint.setMaskFilter(mBlur);
- } else {
- mPaint.setMaskFilter(null);
- }
- return true;
- case SIZE_MENU_ID:
- LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
- View layout = inflater.inflate(R.layout.brush,
- (ViewGroup) findViewById(R.id.root));
- AlertDialog.Builder builder = new AlertDialog.Builder(this)
- .setView(layout);
- final AlertDialog alertDialog = builder.create();
- alertDialog.show();
- SeekBar sb = (SeekBar) layout.findViewById(R.id.seekBar1);
- sb.setProgress(5);
- final Button done = (Button) layout.findViewById(R.id.select_size);
- final TextView txt = (TextView) layout
- .findViewById(R.id.size_value);
- txt.setText(String
- .format(getResources().getString(
- R.string.default_brush_size_is), 5));
- sb.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
- public void onProgressChanged(SeekBar seekBar,
- final int progress, boolean fromUser) {
- // Do something here with new value
- txt.setText(String.format(getResources().getString(R.string.your_selected_brush_size_is), progress));
- mPaint.setStrokeWidth(progress);
- done.setOnClickListener(new OnClickListener() {
-
- public void onClick(View v) {
- // TODO Auto-generated method stub
- if (progress == 0) {
- Toast.makeText(
- getApplicationContext(),
- R.string.error_brush_size,
- Toast.LENGTH_SHORT).show();
- } else {
- alertDialog.dismiss();
- }
- }
- });
- }
-
- public void onStartTrackingTouch(SeekBar seekBar) {
- // TODO Auto-generated method stub
-
- }
-
- public void onStopTrackingTouch(SeekBar seekBar) {
- // TODO Auto-generated method stub
-
- }
- });
- return true;
- case ERASE_MENU_ID:
- // mPaint.setColor(bgColor);
- mPaint.setXfermode(new PorterDuffXfermode(Mode.CLEAR));
- return true;
- case CLEAR_ALL:
- Intent intent = getIntent();
- overridePendingTransition(0, 0);
- intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
- finish();
- overridePendingTransition(0, 0);
- startActivity(intent);
- return true;
- case SAVE:
- takeScreenshot(true);
- break;
- case SHARE:
- File screenshotPath = takeScreenshot(false);
- Intent i = new Intent();
- i.setAction(Intent.ACTION_SEND);
- i.setType("image/png");
- i.putExtra(Intent.EXTRA_SUBJECT,
- getString(anupam.acrylic.R.string.share_title_template));
- i.putExtra(Intent.EXTRA_TEXT,
- getString(anupam.acrylic.R.string.share_text_template));
- i.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(screenshotPath));
- try {
- startActivity(Intent.createChooser(i,
- getString(anupam.acrylic.R.string.toolbox_share_title)));
- } catch (android.content.ActivityNotFoundException ex) {
- Toast.makeText(this.getApplicationContext(),
- anupam.acrylic.R.string.no_way_to_share,
- Toast.LENGTH_LONG).show();
- }
- break;
- case ABOUT:
- try {
- AlertDialog.Builder alert = new AlertDialog.Builder(this);
-
- alert.setTitle(R.string.app_name + " - " + R.string.about);
-
- alert.setMessage(R.string.app_description);
-
- alert.setPositiveButton(R.string.ok, null);
-
- alert.show();
- } catch (Exception e) {
- // TODO: handle exception
- }
-
- }
- return super.onOptionsItemSelected(item);
- }
-
- private File takeScreenshot(boolean showToast) {
- View v = getWindow().getDecorView();
-
- v.setDrawingCacheEnabled(true);
- Bitmap cachedBitmap = v.getDrawingCache();
- Bitmap copyBitmap = cachedBitmap.copy(Bitmap.Config.RGB_565, true);
- FileOutputStream output = null;
- File file = null;
- try {
- File path = Places.getScreenshotFolder();
- Calendar cal = Calendar.getInstance();
-
- file = new File(path,
-
- cal.get(Calendar.YEAR) + "_" + (1 + cal.get(Calendar.MONTH)) + "_"
- + cal.get(Calendar.DAY_OF_MONTH) + "_"
- + cal.get(Calendar.HOUR_OF_DAY) + "_"
- + cal.get(Calendar.MINUTE) + "_" + cal.get(Calendar.SECOND)
- + ".png");
- output = new FileOutputStream(file);
- copyBitmap.compress(CompressFormat.PNG, 100, output);
- } catch (FileNotFoundException e) {
- file = null;
- e.printStackTrace();
- } finally {
- if (output != null) {
- try {
- output.close();
- } catch (IOException e) {
- e.printStackTrace();
- }
- }
-
- }
-
- if (file != null) {
- if (showToast)
- Toast.makeText(
- getApplicationContext(),
- String.format(
- getResources().getString(
- R.string.saved_your_location_to),
- file.getAbsolutePath()), Toast.LENGTH_LONG)
- .show();
- // sending a broadcast to the media scanner so it will scan the new
- // screenshot.
- Intent requestScan = new Intent(
- Intent.ACTION_MEDIA_SCANNER_SCAN_FILE);
- requestScan.setData(Uri.fromFile(file));
- sendBroadcast(requestScan);
-
- return file;
- } else {
- return null;
- }
- }
-
- private boolean isFirstTime() {
- SharedPreferences preferences = getPreferences(MODE_PRIVATE);
- boolean ranBefore = preferences.getBoolean("RanBefore", false);
- if (!ranBefore) {
- // first time
- SharedPreferences.Editor editor = preferences.edit();
- editor.putBoolean("RanBefore", true);
- editor.commit();
- }
- return !ranBefore;
- }
-
- private boolean isSecondTime() {
- SharedPreferences preferences = getPreferences(MODE_PRIVATE);
- boolean ranBefore = preferences.getBoolean("SecondRun", true);
- if (ranBefore) {
- // second time
- SharedPreferences.Editor editor = preferences.edit();
- editor.putBoolean("SecondRun", false);
- editor.commit();
- }
- return !ranBefore;
- }
-
- public boolean connectionAvailable() {
- boolean connected = false;
- @SuppressWarnings("static-access")
- ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(getApplicationContext().CONNECTIVITY_SERVICE);
- if (connectivityManager.getNetworkInfo(ConnectivityManager.TYPE_MOBILE)
- .getState() == NetworkInfo.State.CONNECTED
- || connectivityManager.getNetworkInfo(
- ConnectivityManager.TYPE_WIFI).getState() == NetworkInfo.State.CONNECTED) {
- connected = true;
- }
- return connected;
- }
-}
diff --git a/Acrylic_Paint/src/anupam/acrylic/GraphicsActivity.java b/Acrylic_Paint/src/anupam/acrylic/GraphicsActivity.java
deleted file mode 100644
index c09cca8..0000000
--- a/Acrylic_Paint/src/anupam/acrylic/GraphicsActivity.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Copyright (C) 2014 Valerio Bozzolan
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
-*/
-
-package anupam.acrylic;
-
-import android.app.Activity;
-import android.content.pm.ActivityInfo;
-import android.os.Bundle;
-import android.view.View;
-import android.view.ViewGroup;
-
-class GraphicsActivity extends Activity {
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
-
- this.setRequestedOrientation(
- ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
- }
-
- @SuppressWarnings("unused")
- @Override
- public void setContentView(View view) {
- if (false) { // set to true to test Picture
- ViewGroup vg = new PictureLayout(this);
- vg.addView(view);
- view = vg;
- }
-
- super.setContentView(view);
- }
-}
-
diff --git a/Acrylic_Paint/src/anupam/acrylic/PictureLayout.java b/Acrylic_Paint/src/anupam/acrylic/PictureLayout.java
deleted file mode 100644
index 0465c6d..0000000
--- a/Acrylic_Paint/src/anupam/acrylic/PictureLayout.java
+++ /dev/null
@@ -1,164 +0,0 @@
-/*
- * Copyright (C) 2014 Valerio Bozzolan
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
-*/
-
-package anupam.acrylic;
-
-import android.content.Context;
-import android.graphics.Canvas;
-import android.graphics.Picture;
-import android.graphics.Rect;
-import android.graphics.drawable.Drawable;
-import android.util.AttributeSet;
-import android.view.View;
-import android.view.ViewGroup;
-import android.view.ViewParent;
-
-
-public class PictureLayout extends ViewGroup {
- private final Picture mPicture = new Picture();
-
- public PictureLayout(Context context) {
- super(context);
- }
-
- public PictureLayout(Context context, AttributeSet attrs) {
- super(context, attrs);
- }
-
- @Override
- public void addView(View child) {
- if (getChildCount() > 1) {
- throw new IllegalStateException("PictureLayout can host only one direct child");
- }
-
- super.addView(child);
- }
-
- @Override
- public void addView(View child, int index) {
- if (getChildCount() > 1) {
- throw new IllegalStateException("PictureLayout can host only one direct child");
- }
-
- super.addView(child, index);
- }
-
- @Override
- public void addView(View child, LayoutParams params) {
- if (getChildCount() > 1) {
- throw new IllegalStateException("PictureLayout can host only one direct child");
- }
-
- super.addView(child, params);
- }
-
- @Override
- public void addView(View child, int index, LayoutParams params) {
- if (getChildCount() > 1) {
- throw new IllegalStateException("PictureLayout can host only one direct child");
- }
-
- super.addView(child, index, params);
- }
-
- @Override
- protected LayoutParams generateDefaultLayoutParams() {
- return new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT);
- }
-
- @Override
- protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
- final int count = getChildCount();
-
- int maxHeight = 0;
- int maxWidth = 0;
-
- for (int i = 0; i < count; i++) {
- final View child = getChildAt(i);
- if (child.getVisibility() != GONE) {
- measureChild(child, widthMeasureSpec, heightMeasureSpec);
- }
- }
-
- maxWidth += getPaddingLeft() + getPaddingRight();
- maxHeight += getPaddingTop() + getPaddingBottom();
-
- Drawable drawable = getBackground();
- if (drawable != null) {
- maxHeight = Math.max(maxHeight, drawable.getMinimumHeight());
- maxWidth = Math.max(maxWidth, drawable.getMinimumWidth());
- }
-
- setMeasuredDimension(resolveSize(maxWidth, widthMeasureSpec),
- resolveSize(maxHeight, heightMeasureSpec));
- }
-
- private void drawPict(Canvas canvas, int x, int y, int w, int h,
- float sx, float sy) {
- canvas.save();
- canvas.translate(x, y);
- canvas.clipRect(0, 0, w, h);
- canvas.scale(0.5f, 0.5f);
- canvas.scale(sx, sy, w, h);
- canvas.drawPicture(mPicture);
- canvas.restore();
- }
-
- @SuppressWarnings("unused")
- @Override
- protected void dispatchDraw(Canvas canvas) {
- super.dispatchDraw(mPicture.beginRecording(getWidth(), getHeight()));
- mPicture.endRecording();
-
- int x = getWidth()/2;
- int y = getHeight()/2;
-
- if (false) {
- canvas.drawPicture(mPicture);
- } else {
- drawPict(canvas, 0, 0, x, y, 1, 1);
- drawPict(canvas, x, 0, x, y, -1, 1);
- drawPict(canvas, 0, y, x, y, 1, -1);
- drawPict(canvas, x, y, x, y, -1, -1);
- }
- }
-
- @Override
- public ViewParent invalidateChildInParent(int[] location, Rect dirty) {
- location[0] = getLeft();
- location[1] = getTop();
- dirty.set(0, 0, getWidth(), getHeight());
- return getParent();
- }
-
- @Override
- protected void onLayout(boolean changed, int l, int t, int r, int b) {
- final int count = super.getChildCount();
-
- for (int i = 0; i < count; i++) {
- final View child = getChildAt(i);
- if (child.getVisibility() != GONE) {
- final int childLeft = getPaddingLeft();
- final int childTop = getPaddingTop();
- child.layout(childLeft, childTop,
- childLeft + child.getMeasuredWidth(),
- childTop + child.getMeasuredHeight());
-
- }
- }
- }
-}
diff --git a/Acrylic_Paint/src/anupam/acrylic/Places.java b/Acrylic_Paint/src/anupam/acrylic/Places.java
deleted file mode 100644
index 2a7c690..0000000
--- a/Acrylic_Paint/src/anupam/acrylic/Places.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Copyright (C) 2014 Valerio Bozzolan
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
-*/
-
-package anupam.acrylic;
-
-import java.io.File;
-import java.io.IOException;
-
-import android.os.Environment;
-
-public class Places {
- public static File getScreenshotFolder() {
- File path = new File(Environment.getExternalStorageDirectory(),
- "/Acrylic Paint/");
- path.mkdirs();
-
- return path;
- }
-
- public static File getCameraTempFolder() {
- File path = new File(Environment.getExternalStorageDirectory(),
- "/Acrylic Paint/Temp/");
- path.mkdirs();
- // this folder should not be scanned
- File noScanning = new File(path, ".nomedia");
- if (!noScanning.exists())
- try {
- noScanning.createNewFile();
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- return path;
- }
-
- public static File getCameraTempFile() {
- return new File(getCameraTempFolder(), "temp.jpg");
- }
-}
diff --git a/Acrylic_Paint/src/anupam/acrylic/Splash.java b/Acrylic_Paint/src/anupam/acrylic/Splash.java
deleted file mode 100644
index ac1983a..0000000
--- a/Acrylic_Paint/src/anupam/acrylic/Splash.java
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * Copyright (C) 2014 Valerio Bozzolan
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
-*/
-
-package anupam.acrylic;
-
-import android.app.Activity;
-import android.content.Intent;
-import android.content.pm.ActivityInfo;
-import android.os.Bundle;
-import anupam.acrylic.R;
-
-public class Splash extends Activity {
-
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- // TODO Auto-generated method stub
- super.onCreate(savedInstanceState);
- setContentView(R.layout.main);
- this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
-
- Thread t = new Thread() {
-
- public void run() {
- try {
-
- Thread.sleep(2000);
-
- Intent i = new Intent();
- i.setClassName("anupam.acrylic",
- "anupam.acrylic.EasyPaint");
- startActivity(i);
- finish();
-
- } catch (Exception e) {
- e.printStackTrace();
- }
-
- }
-
- };
- t.start();
- }
-
-}
diff --git a/proguard-project.txt b/proguard-project.txt
deleted file mode 100644
index f2fe155..0000000
--- a/proguard-project.txt
+++ /dev/null
@@ -1,20 +0,0 @@
-# To enable ProGuard in your project, edit project.properties
-# to define the proguard.config property as described in that file.
-#
-# Add project specific ProGuard rules here.
-# By default, the flags in this file are appended to flags specified
-# in ${sdk.dir}/tools/proguard/proguard-android.txt
-# You can edit the include path and order by changing the ProGuard
-# include property in project.properties.
-#
-# For more details, see
-# http://developer.android.com/guide/developing/tools/proguard.html
-
-# Add any project specific keep options here:
-
-# If your project uses WebView with JS, uncomment the following
-# and specify the fully qualified class name to the JavaScript interface
-# class:
-#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
-# public *;
-#}
diff --git a/project.properties b/project.properties
index 85aac54..4ab1256 100644
--- a/project.properties
+++ b/project.properties
@@ -1,14 +1,14 @@
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system edit
# "ant.properties", and override values to adapt the script to your
# project structure.
#
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
# Project target.
-target=android-8
+target=android-19