Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions AwesomeScreencast/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
android:versionName="1.0" >

<uses-sdk
android:minSdkVersion="7"
android:targetSdkVersion="16" />
android:minSdkVersion="8"
android:targetSdkVersion="17" />

<!--
Uses android.permission.INTERNET to enable to show the current
Expand All @@ -27,6 +27,7 @@

<activity
android:name="eu.codlab.screencast.AwesomeScreencastActivity"
android:configChanges="locale|orientation"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand Down Expand Up @@ -61,6 +62,15 @@
android:name="android.appwidget.provider"
android:resource="@xml/widget_stream_provider" />
</receiver>

<service android:name="group.pals.android.lib.ui.filechooser.services.LocalFileProvider" />

<activity
android:name="group.pals.android.lib.ui.filechooser.FileChooserActivity"
android:configChanges="locale|orientation|screenSize|keyboard|keyboardHidden"
android:exported="false" >
</activity>

</application>

</manifest>
Binary file added AwesomeScreencast/libs/RootTools-2.6.jar
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions AwesomeScreencast/project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@
# Project target.
target=android-17
android.library.reference.1=../slidingmenu
android.library.reference.2=../android-filechooser
180 changes: 64 additions & 116 deletions AwesomeScreencast/res/layout-land/activity_awesome_screencast.xml
Original file line number Diff line number Diff line change
@@ -1,117 +1,65 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:focusable="true"
android:focusableInTouchMode="true"
android:orientation="vertical"
tools:context=".AwesomeScreencastActivity" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >

<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center_vertical|center_horizontal"
android:orientation="vertical" >

<EditText
android:id="@+src/file"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true" />

</LinearLayout>

<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center_vertical|center_horizontal"
android:orientation="vertical" >

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:text="@string/server_live" />

</LinearLayout>
</LinearLayout>


<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:orientation="horizontal" >

<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center_vertical|center_horizontal"
android:orientation="vertical" >

<ImageView
android:id="@+src/go"
android:layout_width="96dp"
android:layout_height="96dp"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:src="@drawable/record" />
</LinearLayout>

<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center_vertical|center_horizontal"
android:orientation="vertical" >

<ImageView
android:id="@+src/go_server"
android:layout_width="96dp"
android:layout_height="96dp"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:src="@drawable/share" />
</LinearLayout>
</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >

<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center_vertical|center_horizontal"
android:orientation="vertical" >

<Button
android:id="@+src/go_png"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:text="@string/go_png" />
</LinearLayout>

<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center_vertical|center_horizontal"
android:orientation="vertical" >
</LinearLayout>
</LinearLayout>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:focusable="true"
android:focusableInTouchMode="true"
android:orientation="horizontal"
tools:context=".AwesomeScreencastActivity" >

<LinearLayout
android:id="@+id/one"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical" >

<EditText
android:id="@+src/file"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:inputType="textUri|textNoSuggestions"
android:textIsSelectable="true" />

<Button
android:id="@+src/fc"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:onClick="openFilechooser"
android:text="@string/fc" />

<ImageView
android:id="@+src/go"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:contentDescription="@string/cd"
android:src="@drawable/record"
android:textIsSelectable="true" />

</LinearLayout>

<LinearLayout
android:id="@+id/two"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:orientation="vertical" >

<Button
android:id="@+src/go_png"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="@string/go_png" />

<TextView
android:id="@+src/go_server"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableBottom="@drawable/share"
android:text="@string/server_live" />
</LinearLayout>

</LinearLayout>
90 changes: 38 additions & 52 deletions AwesomeScreencast/res/layout/activity_awesome_screencast.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,58 +6,44 @@
android:orientation="vertical"
android:focusable="true"
android:focusableInTouchMode="true">

<EditText
android:id="@+src/file"
android:inputType="textNoSuggestions"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"/>

<Button
android:id="@+src/fc"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="@string/fc"
android:onClick="openFilechooser"/>

<ImageView
android:id="@+src/go"
android:src="@drawable/record"
android:contentDescription="@string/cd"
android:textIsSelectable="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"/>

<Button
android:id="@+src/go_png"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="@string/go_png" />

<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:orientation="vertical"
android:gravity="center_vertical|center_horizontal">"

<EditText
android:id="@+src/file"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true" />

<ImageView
android:id="@+src/go"
android:layout_width="96dp"
android:layout_height="96dp"
android:src="@drawable/record"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"/>
<Button
android:id="@+src/go_png"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:text="@string/go_png" />
</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:orientation="vertical"
android:gravity="center_vertical|center_horizontal">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:text="@string/server_live" />

<ImageView
android:id="@+src/go_server"
android:layout_width="96dp"
android:layout_height="96dp"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:src="@drawable/share" />
</LinearLayout>
<TextView
android:id="@+src/go_server"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:drawableBottom="@drawable/share"
android:text="@string/server_live" />

</LinearLayout>
9 changes: 6 additions & 3 deletions AwesomeScreencast/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<string name="go_server">Go screen http feed ! - not png mode</string>
<string name="server_live">accessible on http://your-ip:port/live.flv</string>
<string name="menu_settings">Settings</string>
<string name="cd">Start recording</string>

<string name="behind_file_infos">File stream infos</string>
<string name="behind_file_framerate">FrameRate (default: 24)</string>
Expand All @@ -19,15 +20,17 @@
<string name="behind_server_maxconnections">MaxConnections (default: 5)</string>
<string name="behind_server_save">Save</string>

<string name="service_fault">An error occured</string>
<string name="service_fault">An error occurred</string>
<string name="service_recording">Recording video</string>
<string name="service_streaming">Streaming video</string>
<string name="service_waiting">Waiting for FFMPEG...</string>
<string name="service_waiting">Waiting for FFmpeg&#8230;</string>

<string name="service_waiting_ffmpeg">Waiting for ffmpeg...</string>
<string name="service_waiting_ffmpeg">Waiting for FFmpeg&#8230;</string>

<string name="stop_recording_frames">Click to stop recording png frames</string>
<string name="stop_recording_video">Click to stop recording video</string>
<string name="stop_streaming_video">Click to stop streaming video</string>

<string name="fc">folder chooser\n(long-press to select)</string>

</resources>
Loading