Skip to content
This repository was archived by the owner on Feb 2, 2019. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
e1444e5
added DS_Store mac file on gitignore
ademar111190 Apr 23, 2013
b18cc59
An abstract model with your toString method generating a json string …
ademar111190 Apr 23, 2013
c819cfe
deleted repeated classes
ademar111190 Apr 23, 2013
3dac01f
Configuration class to facilitate the library usage
ademar111190 Apr 23, 2013
d769743
a log more easy to configurate
ademar111190 Apr 23, 2013
f8de084
a method tracker to facilitate the debug job
ademar111190 Apr 23, 2013
8a7aae8
a method to print exceptions
ademar111190 Apr 23, 2013
30f0142
implementing the log with configuration setup
ademar111190 Apr 23, 2013
aef4cd6
faye url on configuration class
ademar111190 Apr 23, 2013
180240e
using json object also string concatenations
ademar111190 Apr 23, 2013
84e690c
handling infinite looping error
ademar111190 Apr 23, 2013
ead28fb
replece all logs to FayeConfigurations log
ademar111190 Apr 23, 2013
05421c5
added a fixme message
ademar111190 Apr 23, 2013
8123d20
Added service and internet permission on android manifest
ademar111190 Apr 23, 2013
dc38757
Added a TODO
ademar111190 Apr 23, 2013
ce92cc3
My faye configurations example
ademar111190 Apr 23, 2013
0878f28
Added elements to show loading proccess and a layout with a bit less …
ademar111190 Apr 23, 2013
4f9d22c
Added onClick events and set progressbar invisible
ademar111190 Apr 24, 2013
c0e25ac
Delete unused strings and changed app name
ademar111190 Apr 24, 2013
6412833
deleted unused menu
ademar111190 Apr 24, 2013
3c51d0b
A small implementation of demo activity
ademar111190 Apr 24, 2013
cd00438
some layout details
ademar111190 Apr 24, 2013
5a96ca8
Seted the shared configuratioons with my configurations
ademar111190 Apr 24, 2013
8e9d5b4
faye cliente auto-connect initial channel
ademar111190 Apr 24, 2013
83210d3
added a text field to put messages result
ademar111190 Apr 24, 2013
1fd4304
handling unsubscribe socket null pointer
ademar111190 Apr 24, 2013
9550be4
Parsing json result to examplify
ademar111190 Apr 24, 2013
0c389e2
lkog a 3 call method
ademar111190 Apr 24, 2013
b779cdb
Fixed close connection
ademar111190 Apr 24, 2013
69e0a03
a configuration example
ademar111190 Apr 24, 2013
2cc3529
Sending disconnected sinals to listener
ademar111190 Apr 24, 2013
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ gen/

# Local configuration file (sdk path, etc)
local.properties

# osX folder files
.DS_Store
4 changes: 4 additions & 0 deletions demo/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
android:minSdkVersion="8"
android:targetSdkVersion="15" />

<uses-permission android:name="android.permission.INTERNET" />

<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
Expand All @@ -20,6 +22,8 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<service android:name="com.b3rwynmobile.fayeclient.FayeService" />
</application>

</manifest>
118 changes: 69 additions & 49 deletions demo/res/layout/fayedemo_activity_demo.xml
Original file line number Diff line number Diff line change
@@ -1,58 +1,78 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<RelativeLayout 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:orientation="vertical" >
android:orientation="vertical"
android:padding="10dp" >

<LinearLayout
<EditText
android:id="@+id/message_box"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_margin="16dp"
android:weightSum="1.0" >

<EditText
android:id="@+id/message_box"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_below="@+id/connect_switch"
android:layout_gravity="center_vertical"
android:layout_weight=".6"
android:ems="10"
android:hint="Send a message" />

<ToggleButton
android:id="@+id/connect_toggle_button"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_weight=".4"
android:text="Connected"
android:textOff="Disconnected"
android:textOn="Connected" />
</LinearLayout>

<LinearLayout
android:layout_below="@+id/connect_switch"
android:layout_gravity="center_vertical"
android:ems="10"
android:hint="Send a message" />

<ToggleButton
android:id="@+id/connect_toggle_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/message_box"
android:layout_gravity="center_horizontal"
android:layout_margin="16dp"
android:weightSum="1.0" >

<Button
android:id="@+id/send_text_button"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight=".5"
android:text="Send Text" />

<Button
android:id="@+id/send_raw_button"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight=".5"
android:text="Send Raw Text" />
</LinearLayout>

</LinearLayout>
android:layout_gravity="center_vertical"
android:layout_marginTop="10dp"
android:onClick="onToggleButtonClick"
android:text="Connected"
android:textOff="Connect to faye"
android:textOn="Connected" />

<Button
android:id="@+id/send_text_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/connect_toggle_button"
android:layout_marginTop="12dp"
android:onClick="onTextButtonClick"
android:paddingTop="10dp"
android:text="Send Text" />

<Button
android:id="@+id/send_raw_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/send_text_button"
android:layout_marginTop="10dp"
android:onClick="onRawButtonClick"
android:paddingTop="10dp"
android:text="Send Raw Text" />

<ProgressBar
android:id="@+id/progress_bar_wait_connection"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/connect_toggle_button"
android:layout_alignTop="@+id/connect_toggle_button"
android:layout_centerHorizontal="true"
android:visibility="invisible" />

<TextView
android:id="@+id/txt_messages_receiveds"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/send_raw_button"
android:layout_alignParentBottom="true"
android:layout_alignRight="@+id/send_raw_button"
android:layout_below="@+id/send_raw_button"
android:layout_marginTop="10dp"
android:text="" />

<Button
android:id="@+id/btn_clear"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignRight="@+id/txt_messages_receiveds"
android:layout_alignTop="@+id/txt_messages_receiveds"
android:onClick="onClearButtonClick"
android:text="clear" />

</RelativeLayout>
6 changes: 0 additions & 6 deletions demo/res/menu/fayedemo_activity_demo.xml

This file was deleted.

4 changes: 1 addition & 3 deletions demo/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<resources>

<string name="app_name">Faye Client Demo</string>
<string name="hello_world">Hello world!</string>
<string name="menu_settings">Settings</string>
<string name="title_activity_demo">DemoActivity</string>
<string name="title_activity_demo">Faye Client Demo</string>

</resources>
Loading