Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ed0a58
commit 24815fa
Showing
33 changed files
with
810 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="src" path="src"/> | ||
<classpathentry kind="src" path="gen"/> | ||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/> | ||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/> | ||
<classpathentry kind="lib" path="lib/dropbox-android-sdk-1.2.2.jar"/> | ||
<classpathentry kind="lib" path="lib/httpmime-4.0.3.jar"/> | ||
<classpathentry kind="lib" path="lib/json_simple-1.1.jar"/> | ||
<classpathentry kind="output" path="bin/classes"/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>VideoSurveillance</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>com.android.ide.eclipse.adt.ApkBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>com.android.ide.eclipse.adt.AndroidNature</nature> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
</natures> | ||
</projectDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#Mon Dec 12 13:03:27 CST 2011 | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.teleknesis.android.surveillance" | ||
android:versionCode="1" | ||
android:versionName="1.0" > | ||
|
||
<uses-sdk android:minSdkVersion="8" /> | ||
<uses-permission android:name="android.permission.WAKE_LOCK"/> | ||
<uses-permission android:name="android.permission.CAMERA"/> | ||
<uses-permission android:name="android.permission.RECORD_AUDIO"/> | ||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> | ||
<uses-permission android:name="android.permission.INTERNET"/> | ||
|
||
<application | ||
android:icon="@drawable/ic_launcher" | ||
android:label="@string/app_name" > | ||
<activity | ||
android:label="@string/app_name" | ||
android:name=".Home" > | ||
<intent-filter > | ||
<action android:name="android.intent.action.MAIN" /> | ||
|
||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
|
||
<activity | ||
android:label="@string/app_name" android:screenOrientation="portrait" | ||
android:name=".VideoRecorder" > | ||
</activity> | ||
|
||
<activity | ||
android:name="com.dropbox.client2.android.AuthActivity" | ||
android:launchMode="singleTask" | ||
android:configChanges="orientation|keyboard"> | ||
<intent-filter> | ||
<!-- Change this to be db- followed by your app key --> | ||
<data android:scheme="db-quq6pqfmne35oqy" /> | ||
<action android:name="android.intent.action.VIEW" /> | ||
<category android:name="android.intent.category.BROWSABLE"/> | ||
<category android:name="android.intent.category.DEFAULT" /> | ||
</intent-filter> | ||
</activity> | ||
</application> | ||
|
||
</manifest> |
Binary file added
BIN
+1.01 KB
VideoSurveillance/bin/classes/com/teleknesis/android/peepshow/utils/Logger.class
Binary file not shown.
Binary file added
BIN
+1.3 KB
VideoSurveillance/bin/classes/com/teleknesis/android/surveillance/Home.class
Binary file not shown.
Binary file added
BIN
+391 Bytes
VideoSurveillance/bin/classes/com/teleknesis/android/surveillance/R$attr.class
Binary file not shown.
Binary file added
BIN
+458 Bytes
VideoSurveillance/bin/classes/com/teleknesis/android/surveillance/R$drawable.class
Binary file not shown.
Binary file added
BIN
+474 Bytes
VideoSurveillance/bin/classes/com/teleknesis/android/surveillance/R$id.class
Binary file not shown.
Binary file added
BIN
+475 Bytes
VideoSurveillance/bin/classes/com/teleknesis/android/surveillance/R$layout.class
Binary file not shown.
Binary file added
BIN
+478 Bytes
VideoSurveillance/bin/classes/com/teleknesis/android/surveillance/R$string.class
Binary file not shown.
Binary file added
BIN
+650 Bytes
VideoSurveillance/bin/classes/com/teleknesis/android/surveillance/R.class
Binary file not shown.
Binary file added
BIN
+1.05 KB
VideoSurveillance/bin/classes/com/teleknesis/android/surveillance/UploadPicture$1.class
Binary file not shown.
Binary file added
BIN
+5.72 KB
VideoSurveillance/bin/classes/com/teleknesis/android/surveillance/UploadPicture.class
Binary file not shown.
Binary file added
BIN
+796 Bytes
VideoSurveillance/bin/classes/com/teleknesis/android/surveillance/VideoRecorder$1.class
Binary file not shown.
Binary file added
BIN
+756 Bytes
VideoSurveillance/bin/classes/com/teleknesis/android/surveillance/VideoRecorder$2.class
Binary file not shown.
Binary file added
BIN
+11.2 KB
VideoSurveillance/bin/classes/com/teleknesis/android/surveillance/VideoRecorder.class
Binary file not shown.
28 changes: 28 additions & 0 deletions
28
VideoSurveillance/gen/com/teleknesis/android/surveillance/R.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* 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 com.teleknesis.android.surveillance; | ||
|
||
public final class R { | ||
public static final class attr { | ||
} | ||
public static final class drawable { | ||
public static final int ic_launcher=0x7f020000; | ||
} | ||
public static final class id { | ||
public static final int button1=0x7f050001; | ||
public static final int surface_camera=0x7f050000; | ||
} | ||
public static final class layout { | ||
public static final int camera=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; | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
-optimizationpasses 5 | ||
-dontusemixedcaseclassnames | ||
-dontskipnonpubliclibraryclasses | ||
-dontpreverify | ||
-verbose | ||
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/* | ||
|
||
-keep public class * extends android.app.Activity | ||
-keep public class * extends android.app.Application | ||
-keep public class * extends android.app.Service | ||
-keep public class * extends android.content.BroadcastReceiver | ||
-keep public class * extends android.content.ContentProvider | ||
-keep public class * extends android.app.backup.BackupAgentHelper | ||
-keep public class * extends android.preference.Preference | ||
-keep public class com.android.vending.licensing.ILicensingService | ||
|
||
-keepclasseswithmembernames class * { | ||
native <methods>; | ||
} | ||
|
||
-keepclasseswithmembers class * { | ||
public <init>(android.content.Context, android.util.AttributeSet); | ||
} | ||
|
||
-keepclasseswithmembers class * { | ||
public <init>(android.content.Context, android.util.AttributeSet, int); | ||
} | ||
|
||
-keepclassmembers class * extends android.app.Activity { | ||
public void *(android.view.View); | ||
} | ||
|
||
-keepclassmembers enum * { | ||
public static **[] values(); | ||
public static ** valueOf(java.lang.String); | ||
} | ||
|
||
-keep class * implements android.os.Parcelable { | ||
public static final android.os.Parcelable$Creator *; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# 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 use, | ||
# "ant.properties", and override values to adapt the script to your | ||
# project structure. | ||
|
||
# Project target. | ||
target=android-8 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="fill_parent" android:layout_height="fill_parent" | ||
android:orientation="vertical" | ||
android:gravity="center"> | ||
<SurfaceView android:id="@+id/surface_camera" | ||
android:layout_width="fill_parent" android:layout_height="fill_parent" | ||
android:layout_weight="1"> | ||
</SurfaceView> | ||
</LinearLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="fill_parent" | ||
android:layout_height="fill_parent" | ||
android:gravity="center" | ||
android:orientation="vertical" > | ||
|
||
<Button | ||
android:id="@+id/button1" | ||
android:layout_width="150dip" | ||
android:layout_height="wrap_content" | ||
android:text="Start Recording" | ||
android:onClick="LaunchCameraActivity" /> | ||
|
||
</LinearLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
|
||
<string name="hello">Hello World, Home!</string> | ||
<string name="app_name">PeepShow</string> | ||
|
||
</resources> |
37 changes: 37 additions & 0 deletions
37
VideoSurveillance/src/com/teleknesis/android/peepshow/utils/Logger.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package com.teleknesis.android.peepshow.utils; | ||
|
||
import android.util.Log; | ||
|
||
|
||
//**************************************************************** | ||
//**************************************************************** | ||
//Logger | ||
//**************************************************************** | ||
//**************************************************************** | ||
public class Logger { | ||
|
||
|
||
//**************************************************************** | ||
// Logger | ||
//**************************************************************** | ||
public Logger() { | ||
|
||
} | ||
|
||
|
||
//**************************************************************** | ||
// Error | ||
//**************************************************************** | ||
public static void Error( String methodName, Exception error ) { | ||
Log.e("PeepShow", methodName + ": " + error.toString() ); | ||
} | ||
|
||
|
||
//**************************************************************** | ||
// Debug | ||
//**************************************************************** | ||
public static void Debug( String message ) { | ||
Log.d("PeepShow", message ); | ||
} | ||
|
||
} |
48 changes: 48 additions & 0 deletions
48
VideoSurveillance/src/com/teleknesis/android/surveillance/Home.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package com.teleknesis.android.surveillance; | ||
|
||
import java.io.File; | ||
import java.text.SimpleDateFormat; | ||
import java.util.Date; | ||
import java.util.Timer; | ||
import java.util.TimerTask; | ||
|
||
import android.app.Activity; | ||
import android.content.Intent; | ||
import android.hardware.Camera; | ||
import android.media.CamcorderProfile; | ||
import android.media.MediaRecorder; | ||
import android.os.Bundle; | ||
import android.os.Looper; | ||
import android.view.View; | ||
|
||
import com.teleknesis.android.peepshow.utils.Logger; | ||
|
||
public class Home extends Activity { | ||
|
||
private boolean mRecording = false; | ||
private MediaRecorder mRecorder; | ||
private Camera mCamera; | ||
|
||
/** Called when the activity is first created. */ | ||
@Override | ||
public void onCreate(Bundle savedInstanceState) { | ||
try { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.main); | ||
mRecorder = new MediaRecorder(); | ||
} | ||
catch (Exception error) { | ||
Logger.Error( "Home_onCreate", error ); | ||
} | ||
} | ||
|
||
|
||
public void LaunchCameraActivity( View v ) { | ||
startActivityForResult( new Intent(Home.this, VideoRecorder.class), 1000 ); | ||
} | ||
|
||
|
||
|
||
|
||
|
||
} |
Oops, something went wrong.