File tree Expand file tree Collapse file tree 20 files changed +533
-9
lines changed Expand file tree Collapse file tree 20 files changed +533
-9
lines changed Original file line number Diff line number Diff line change 5
5
<classpathentry exported =" true" kind =" con" path =" com.android.ide.eclipse.adt.DEPENDENCIES" />
6
6
<classpathentry kind =" src" path =" src" />
7
7
<classpathentry kind =" src" path =" gen" />
8
+ <classpathentry kind =" lib" path =" /Users/sylviahsu/Desktop/Jazbel/UNI/Winter2015/quickblox-android-sdk-master/jars/quickblox-android-sdk-core-2.1.jar" />
9
+ <classpathentry kind =" lib" path =" /Users/sylviahsu/Desktop/Jazbel/UNI/Winter2015/quickblox-android-sdk-master/jars/quickblox-android-sdk-customobjects-2.1.jar" />
10
+ <classpathentry kind =" lib" path =" /Users/sylviahsu/Desktop/Jazbel/UNI/Winter2015/quickblox-android-sdk-master/jars/quickblox-android-sdk-location-2.1.jar" />
11
+ <classpathentry kind =" lib" path =" /Users/sylviahsu/Desktop/Jazbel/UNI/Winter2015/quickblox-android-sdk-master/jars/quickblox-android-sdk-messages-2.1.jar" />
12
+ <classpathentry kind =" lib" path =" /Users/sylviahsu/Desktop/Jazbel/UNI/Winter2015/quickblox-android-sdk-master/jars/quickblox-android-sdk-chat-2.1.jar" />
13
+ <classpathentry kind =" lib" path =" /Users/sylviahsu/Desktop/Jazbel/UNI/Winter2015/android-sdk-macosx/extras/android/support/v4/android-support-v4.jar" />
8
14
<classpathentry kind =" output" path =" bin/classes" />
9
15
</classpath >
Original file line number Diff line number Diff line change 84
84
android : name =" com.fami.setting.UserInfo"
85
85
android : label =" @string/title_activity_fami_info" >
86
86
</activity >
87
+ <activity
88
+ android : name =" com.fami.whereabouts.activities.MapActivity"
89
+ android : label =" @string/map"
90
+ android : screenOrientation =" portrait" />
91
+ <meta-data
92
+ android : name =" com.google.android.gms.version"
93
+ android : value =" @integer/google_play_services_version" />
94
+ <meta-data
95
+ android : name =" com.google.android.maps.v2.API_KEY"
96
+ android : value =" AIzaSyBsUdM5MBXM4XidPvA3ICRKOydJVEtVJnY" />
97
+ <uses-library android : name =" com.google.android.maps" />
87
98
</application >
88
99
89
100
<uses-permission android : name =" android.permission.INTERNET" />
90
101
<uses-permission android : name =" android.permission.READ_PHONE_STATE" />
91
-
102
+ <uses-permission android : name =" android.permission.ACCESS_NETWORK_STATE" />
103
+ <uses-permission android : name =" android.permission.WRITE_EXTERNAL_STORAGE" />
104
+ <uses-permission android : name =" com.google.android.providers.gsf.permission.READ_GSERVICES" />
105
+ <uses-permission android : name =" android.permission.ACCESS_COARSE_LOCATION" />
106
+ <uses-permission android : name =" android.permission.ACCESS_FINE_LOCATION" />
92
107
</manifest >
Original file line number Diff line number Diff line change 11
11
# proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12
12
13
13
# Project target.
14
- target =android-21
15
- android.library.reference.1 =../appcompat_v7
16
- android.library.reference.2 =../pull-to-refresh
14
+ target =Google Inc.:Google APIs:21
15
+ android.library.reference.1 =../pull-to-refresh
16
+ android.library.reference.2 =../android-support-v7-appcompat
17
+ android.library.reference.3 =../google-play-services_lib
Original file line number Diff line number Diff line change 26
26
android:gravity=" center"
27
27
android : text =" You haven't join any Fami T_T"
28
28
android : textAppearance =" ?android:attr/textAppearanceLarge" />
29
-
30
-
31
29
<Button
32
30
android : id =" @+id/create_fami"
33
31
android : layout_width =" wrap_content"
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <LinearLayout xmlns : android =" http://schemas.android.com/apk/res/android"
3
+ android : orientation =" vertical"
4
+ android : layout_width =" fill_parent"
5
+ android : layout_height =" fill_parent"
6
+ >
7
+
8
+ <TextView
9
+ android : id =" @+id/textView1"
10
+ android : layout_width =" match_parent"
11
+ android : layout_height =" wrap_content"
12
+ android : text =" @string/title_activity_events"
13
+ android : textAppearance =" ?android:attr/textAppearanceLarge" />
14
+
15
+ <ListView
16
+ android : id =" @+id/events_list"
17
+ android : layout_width =" wrap_content"
18
+ android : layout_height =" match_parent"
19
+ android : layout_margin =" 5dp" >
20
+ </ListView >
21
+
22
+ </LinearLayout >
23
+
Original file line number Diff line number Diff line change
1
+ <RelativeLayout xmlns : android =" http://schemas.android.com/apk/res/android"
2
+ android : layout_width =" match_parent"
3
+ android : layout_height =" match_parent" >
4
+
5
+ <fragment
6
+ android : id =" @+id/map_fragment"
7
+ android : name =" com.google.android.gms.maps.SupportMapFragment"
8
+ android : layout_width =" match_parent"
9
+ android : layout_height =" match_parent" />
10
+
11
+ <Button
12
+ android : id =" @+id/check_in_button"
13
+ android : layout_width =" wrap_content"
14
+ android : layout_height =" wrap_content"
15
+ android : layout_alignParentBottom =" true"
16
+ android : layout_alignParentLeft =" true"
17
+ android : onClick =" onClickButtons"
18
+ android : padding =" @dimen/padding_middle"
19
+ android : text =" @string/btn_check_in" />
20
+ </RelativeLayout >
Original file line number Diff line number Diff line change 49
49
android : onClick =" onClick" />
50
50
51
51
<ImageButton
52
- android : id =" @+id/imageButton6 "
52
+ android : id =" @+id/location "
53
53
android : layout_width =" 80dp"
54
54
android : layout_height =" 80dp"
55
55
android : layout_alignParentTop =" true"
56
56
android : layout_marginTop =" 430dp"
57
57
android : layout_marginLeft =" 180dp"
58
- android : background =" @drawable/locationicon" />
58
+ android : background =" @drawable/locationicon"
59
+ android : onClick =" onClick" />
59
60
60
61
61
62
<ImageButton
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+
3
+ <RelativeLayout
4
+ android : layout_width =" fill_parent"
5
+ android : layout_height =" fill_parent"
6
+ xmlns : android =" http://schemas.android.com/apk/res/android" >
7
+
8
+ <TextView
9
+ android : id =" @+id/eventTextView"
10
+ android : layout_width =" wrap_content"
11
+ android : layout_height =" wrap_content"
12
+ android : layout_alignParentLeft =" true"
13
+ android : layout_alignParentStart =" true"
14
+ android : layout_alignParentTop =" true"
15
+ android : gravity =" center_vertical"
16
+ android : text =" New Text"
17
+ android : textSize =" 20dp" />
18
+
19
+ <TextView
20
+ android : id =" @+id/countTextView"
21
+ android : layout_width =" wrap_content"
22
+ android : layout_height =" wrap_content"
23
+ android : layout_alignParentRight =" true"
24
+ android : layout_alignParentStart =" false"
25
+ android : layout_alignParentLeft =" false"
26
+ android : layout_alignParentTop =" true"
27
+ android : gravity =" center_vertical"
28
+ android : text =" New Text"
29
+ android : textSize =" 20dp" />
30
+
31
+ </RelativeLayout >
Original file line number Diff line number Diff line change
1
+ <menu xmlns : android =" http://schemas.android.com/apk/res/android"
2
+ xmlns : app =" http://schemas.android.com/apk/res-auto"
3
+ xmlns : tools =" http://schemas.android.com/tools"
4
+ tools : context =" com.fami.Events" >
5
+
6
+ <item
7
+ android : id =" @+id/action_settings"
8
+ android : orderInCategory =" 100"
9
+ android : title =" @string/action_settings"
10
+ app : showAsAction =" never" />
11
+
12
+ </menu >
Original file line number Diff line number Diff line change 21
21
<string name =" title_activity_search_user" >SearchUserActivity</string >
22
22
<string name =" password_not_match" >You must enter the same password twice</string >
23
23
<string name =" password_was_incorrect" >Password was incorrect</string >
24
+ <string name =" title_activity_events" >Events</string >
24
25
<string name =" qb_slogan" >YOUR COMMUNICATION \nBACKEND</string >
25
26
<string name =" content" >Content</string >
26
27
<string name =" add_new_image" >Add new image</string >
37
38
<string name =" title_activity_user_info" >UserInfo</string >
38
39
<string name =" title_activity_main_setting" >MainSetting</string >
39
40
<string name =" title_activity_fami_info" >Fami_info</string >
40
-
41
+ <string name =" btn_check_in" >Check In</string >
42
+ <string name =" dlg_location_error" >Error(s) occurred. Look into DDMS log for details, please. Errors: </string >
43
+ <string name =" dlg_check_in" >Check In</string >
44
+ <string name =" dlg_enter_message" >Please enter your message</string >
45
+ <string name =" dlg_check_in_success" >Check In was successful!</string >
46
+ <string name =" dlg_it_is_me" >It is me</string >
47
+ <string name =" dlg_user_login" >Name: </string >
48
+ <string name =" dlg_status" >\nStatus: </string >
49
+ <string name =" map" >Map</string >
50
+ <string name =" empty" >empty</string >
41
51
</resources >
Original file line number Diff line number Diff line change 10
10
import com .fami .todolist .TodolistActivity ;
11
11
import com .fami .user .activities .UpdateActivity ;
12
12
import com .fami .user .helper .DataHolder ;
13
+ import com .fami .whereabouts .activities .MapActivity ;
13
14
import com .quickblox .chat .QBChatService ;
14
15
import com .quickblox .chat .model .QBDialog ;
15
16
import com .quickblox .chat .model .QBDialogType ;
@@ -69,6 +70,13 @@ public void onError(List<String> errors) {
69
70
startGalleryActivity ();
70
71
finish ();
71
72
break ;
73
+ case R .id .location :
74
+ progressDialog .show ();
75
+ Intent locIntent = new Intent (this , MapActivity .class );
76
+ startActivity (locIntent );
77
+ finish ();
78
+ break ;
79
+
72
80
}
73
81
}
74
82
You can’t perform that action at this time.
0 commit comments