├── php_files ├── sample ├── pic_01.png ├── pic_02.png ├── pic_03.png ├── pic_04.png ├── pic_05.png ├── pic_06.png ├── pic_07.png ├── pic_08.png ├── pic_09.png ├── pic_10.png ├── pic_11.png ├── forgotPass.php ├── proposeRide.php ├── pickUpPoints.php ├── login.php ├── proposalsList.php ├── foundRidesList.php ├── updateStatus.php ├── offeredRidesList.php ├── register.php ├── test.php └── offerRide.php ├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── drawable │ │ │ │ ├── bg.PNG │ │ │ │ ├── ba.jpeg │ │ │ │ ├── fpp.png │ │ │ │ ├── home.png │ │ │ │ ├── mpp.png │ │ │ │ ├── pic.png │ │ │ │ ├── capopic.png │ │ │ │ ├── getcapo.png │ │ │ │ ├── logout.png │ │ │ │ ├── track.png │ │ │ │ ├── letscapo.png │ │ │ │ ├── myprofile.png │ │ │ │ ├── backgrounds.jpg │ │ │ │ ├── price.xml │ │ │ │ ├── text_selector.xml │ │ │ │ ├── ripple_effect.xml │ │ │ │ ├── item_bg.xml │ │ │ │ ├── side_nav_bar.xml │ │ │ │ ├── image_bg.xml │ │ │ │ └── loginbutton_selector.xml │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── menu │ │ │ │ ├── main.xml │ │ │ │ ├── get_capo.xml │ │ │ │ ├── track.xml │ │ │ │ ├── lets_capo.xml │ │ │ │ ├── my_profile.xml │ │ │ │ └── activity_main_drawer.xml │ │ │ ├── drawable-v21 │ │ │ │ ├── ic_menu_send.xml │ │ │ │ ├── ic_menu_slideshow.xml │ │ │ │ ├── ic_menu_gallery.xml │ │ │ │ ├── ic_menu_manage.xml │ │ │ │ ├── ic_menu_camera.xml │ │ │ │ └── ic_menu_share.xml │ │ │ ├── values │ │ │ │ ├── dimens.xml │ │ │ │ ├── attrs.xml │ │ │ │ ├── drawables.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── styles.xml │ │ │ │ └── strings.xml │ │ │ ├── anim │ │ │ │ ├── cycle.xml │ │ │ │ ├── shake.xml │ │ │ │ ├── right_out.xml │ │ │ │ ├── left_out.xml │ │ │ │ ├── left_enter.xml │ │ │ │ ├── right_enter.xml │ │ │ │ └── test.xml │ │ │ └── layout │ │ │ │ ├── fragment_my_found_ride_.xml │ │ │ │ ├── activity_first.xml │ │ │ │ ├── custom_toast.xml │ │ │ │ ├── content_get_capo.xml │ │ │ │ ├── content_lets_capo.xml │ │ │ │ ├── fragment_get_capo__frag2.xml │ │ │ │ ├── content_track.xml │ │ │ │ ├── activity_get_capo.xml │ │ │ │ ├── activity_main.xml │ │ │ │ ├── activity_track.xml │ │ │ │ ├── activity_lets_capo.xml │ │ │ │ ├── activity_my_profile.xml │ │ │ │ ├── content_main.xml │ │ │ │ ├── activity_login_base.xml │ │ │ │ ├── app_bar_track.xml │ │ │ │ ├── app_bar_get_capo.xml │ │ │ │ ├── app_bar_lets_capo.xml │ │ │ │ ├── app_bar_main.xml │ │ │ │ ├── app_bar_my_profile.xml │ │ │ │ ├── fragment_main_found_.xml │ │ │ │ ├── fragment_main_offered_.xml │ │ │ │ ├── fragment_get_capo__frag1.xml │ │ │ │ ├── fragment_lets_capo__frag2.xml │ │ │ │ ├── nav_header_main.xml │ │ │ │ ├── ride_item_found.xml │ │ │ │ ├── forgotpassword_layout.xml │ │ │ │ ├── ride_item.xml │ │ │ │ ├── fragment_my_offered_rides_.xml │ │ │ │ ├── login_layout.xml │ │ │ │ ├── content_my_profile.xml │ │ │ │ └── signup_layout.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── dimpychhabra │ │ │ │ └── capo │ │ │ │ ├── SimpleFragmentPagerAdapter.java │ │ │ │ ├── CustomToast.java │ │ │ │ ├── RideAdapter.java │ │ │ │ ├── RequestCapoAdapter.java │ │ │ │ ├── FirstActivity.java │ │ │ │ ├── RidesFoundAdapter.java │ │ │ │ ├── LoginBaseActivity.java │ │ │ │ ├── getCapo_Frag1.java │ │ │ │ ├── letsCapo_Frag2.java │ │ │ │ ├── getCapo_Frag2.java │ │ │ │ ├── ForgotPassword_Fragment.java │ │ │ │ ├── Ride.java │ │ │ │ ├── BaseActivity.java │ │ │ │ ├── MainActivity.java │ │ │ │ ├── GetCapo.java │ │ │ │ ├── LetsCapo.java │ │ │ │ ├── MyProfile.java │ │ │ │ ├── Track.java │ │ │ │ └── Main_offered_Frag.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── example │ │ │ └── dimpychhabra │ │ │ └── capo │ │ │ └── ExampleUnitTest.java │ ├── release │ │ └── res │ │ │ └── values │ │ │ └── google_maps_api.xml │ └── androidTest │ │ └── java │ │ └── com │ │ └── example │ │ └── dimpychhabra │ │ └── capo │ │ └── ExampleInstrumentedTest.java ├── proguard-rules.pro └── build.gradle ├── settings.gradle ├── .idea ├── copyright │ └── profiles_settings.xml ├── encodings.xml ├── vcs.xml ├── modules.xml ├── runConfigurations.xml ├── compiler.xml ├── gradle.xml └── misc.xml ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── README.md ├── gradle.properties ├── gradlew.bat └── gradlew /php_files/sample: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /php_files/pic_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimpy-chhabra/Capo/HEAD/php_files/pic_01.png -------------------------------------------------------------------------------- /php_files/pic_02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimpy-chhabra/Capo/HEAD/php_files/pic_02.png -------------------------------------------------------------------------------- /php_files/pic_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimpy-chhabra/Capo/HEAD/php_files/pic_03.png -------------------------------------------------------------------------------- /php_files/pic_04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimpy-chhabra/Capo/HEAD/php_files/pic_04.png -------------------------------------------------------------------------------- /php_files/pic_05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimpy-chhabra/Capo/HEAD/php_files/pic_05.png -------------------------------------------------------------------------------- /php_files/pic_06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimpy-chhabra/Capo/HEAD/php_files/pic_06.png -------------------------------------------------------------------------------- /php_files/pic_07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimpy-chhabra/Capo/HEAD/php_files/pic_07.png -------------------------------------------------------------------------------- /php_files/pic_08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimpy-chhabra/Capo/HEAD/php_files/pic_08.png -------------------------------------------------------------------------------- /php_files/pic_09.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimpy-chhabra/Capo/HEAD/php_files/pic_09.png -------------------------------------------------------------------------------- /php_files/pic_10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimpy-chhabra/Capo/HEAD/php_files/pic_10.png -------------------------------------------------------------------------------- /php_files/pic_11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimpy-chhabra/Capo/HEAD/php_files/pic_11.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/bg.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimpy-chhabra/Capo/HEAD/app/src/main/res/drawable/bg.PNG -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ba.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimpy-chhabra/Capo/HEAD/app/src/main/res/drawable/ba.jpeg -------------------------------------------------------------------------------- /app/src/main/res/drawable/fpp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimpy-chhabra/Capo/HEAD/app/src/main/res/drawable/fpp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimpy-chhabra/Capo/HEAD/app/src/main/res/drawable/home.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/mpp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimpy-chhabra/Capo/HEAD/app/src/main/res/drawable/mpp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/pic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimpy-chhabra/Capo/HEAD/app/src/main/res/drawable/pic.png -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimpy-chhabra/Capo/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/drawable/capopic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimpy-chhabra/Capo/HEAD/app/src/main/res/drawable/capopic.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/getcapo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimpy-chhabra/Capo/HEAD/app/src/main/res/drawable/getcapo.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/logout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimpy-chhabra/Capo/HEAD/app/src/main/res/drawable/logout.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/track.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimpy-chhabra/Capo/HEAD/app/src/main/res/drawable/track.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/letscapo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimpy-chhabra/Capo/HEAD/app/src/main/res/drawable/letscapo.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/myprofile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimpy-chhabra/Capo/HEAD/app/src/main/res/drawable/myprofile.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/backgrounds.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimpy-chhabra/Capo/HEAD/app/src/main/res/drawable/backgrounds.jpg -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimpy-chhabra/Capo/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimpy-chhabra/Capo/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimpy-chhabra/Capo/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimpy-chhabra/Capo/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimpy-chhabra/Capo/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimpy-chhabra/Capo/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimpy-chhabra/Capo/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimpy-chhabra/Capo/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimpy-chhabra/Capo/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimpy-chhabra/Capo/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .externalNativeBuild 10 | -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sun Mar 19 18:45:57 IST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/price.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/menu/main.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 8 | 9 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-v21/ic_menu_send.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/menu/get_capo.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/menu/track.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/text_selector.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/menu/lets_capo.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/menu/my_profile.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 16dp 6 | 160dp 7 | 16dp 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ripple_effect.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/anim/cycle.xml: -------------------------------------------------------------------------------- 1 | 13 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Capo 2 | Capo is a car pool app (Under construction) 3 | 4 | So far it uses shared preferences to maintain a session. 5 | 6 | Intended to incorporate the following features: 7 | 1. work via Volley framework to fetch 'ride' details online. 8 | 2. Be able to track user's locations and present them on the map dynamically! 9 | 3. Also, send the riders and driver emails/sms for confirmations of their bookings! 10 | 4. Only when the driver approves of passenger can the fellow rider ride with them 11 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/item_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-v21/ic_menu_slideshow.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/side_nav_bar.xml: -------------------------------------------------------------------------------- 1 | 3 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-v21/ic_menu_gallery.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-v21/ic_menu_manage.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | -------------------------------------------------------------------------------- /app/src/test/java/com/example/dimpychhabra/capo/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.example.dimpychhabra.capo; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /app/src/main/res/anim/shake.xml: -------------------------------------------------------------------------------- 1 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/values/attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/image_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 8 | 9 | 12 | 17 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_my_found_ride_.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /app/src/main/res/anim/right_out.xml: -------------------------------------------------------------------------------- 1 | 13 | 14 | 15 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /app/src/main/res/values/drawables.xml: -------------------------------------------------------------------------------- 1 | 2 | @android:drawable/ic_menu_camera 3 | @android:drawable/ic_menu_gallery 4 | @android:drawable/ic_menu_slideshow 5 | @android:drawable/ic_menu_manage 6 | @android:drawable/ic_menu_share 7 | @android:drawable/ic_menu_send 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/anim/left_out.xml: -------------------------------------------------------------------------------- 1 | 13 | 15 | 19 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-v21/ic_menu_camera.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/loginbutton_selector.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /app/src/main/res/anim/left_enter.xml: -------------------------------------------------------------------------------- 1 | 13 | 15 | 16 | 22 | 23 | -------------------------------------------------------------------------------- /app/src/main/res/anim/right_enter.xml: -------------------------------------------------------------------------------- 1 | 13 | 14 | 16 | 20 | -------------------------------------------------------------------------------- /app/src/main/res/anim/test.xml: -------------------------------------------------------------------------------- 1 | 13 | 14 | 16 | 22 | -------------------------------------------------------------------------------- /php_files/forgotPass.php: -------------------------------------------------------------------------------- 1 | connect_error) { 12 | die("Connection failed: " . $conn->connect_error); 13 | } 14 | $mob = $_POST['mob']; 15 | //$mob = "8586847364"; 16 | 17 | $sql = "SELECT u_pass FROM user_details WHERE u_id = '$mob' "; 18 | 19 | $result = $conn->query($sql); 20 | if ($result->num_rows > 0) { 21 | while($row = $result->fetch_assoc()) { 22 | echo $row["u_pass"]; 23 | } 24 | }else{ 25 | echo "Err"; 26 | } 27 | 28 | 29 | $conn->close(); 30 | ?> 31 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-v21/ic_menu_share.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_first.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 18 | 19 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | org.gradle.jvmargs=-Xmx1536m 13 | 14 | # When configured, Gradle will run in incubating parallel mode. 15 | # This option should only be used with decoupled projects. More details, visit 16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 17 | # org.gradle.parallel=true 18 | -------------------------------------------------------------------------------- /php_files/proposeRide.php: -------------------------------------------------------------------------------- 1 | 27 | -------------------------------------------------------------------------------- /app/src/main/res/layout/custom_toast.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 20 | 21 | -------------------------------------------------------------------------------- /app/src/main/res/layout/content_get_capo.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 15 | 16 | -------------------------------------------------------------------------------- /app/src/main/res/layout/content_lets_capo.xml: -------------------------------------------------------------------------------- 1 | 2 | 12 | 13 | 14 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /php_files/pickUpPoints.php: -------------------------------------------------------------------------------- 1 | connect_error) { 12 | die("Connection failed: " . $conn->connect_error); 13 | } 14 | $rideID= $_POST['rid']; 15 | 16 | $sql = "SELECT pick_point, pick_point_time, pick_price, _pp_id FROM ride_pick_points WHERE r_id = '".$rideID."' "; 17 | $result = $conn->query($sql); 18 | if ($result->num_rows > 0) { 19 | 20 | while($row[] = $result->fetch_assoc()) { 21 | 22 | $json = json_encode($row); 23 | } 24 | }else{ 25 | echo "OfferedRides: ".$result->num_rows; 26 | } 27 | echo $json; 28 | 29 | $conn->close(); 30 | ?> -------------------------------------------------------------------------------- /app/src/release/res/values/google_maps_api.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | YOUR_KEY_HERE 21 | 22 | 23 | -------------------------------------------------------------------------------- /app/src/androidTest/java/com/example/dimpychhabra/capo/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.example.dimpychhabra.capo; 2 | 3 | import android.content.Context; 4 | import android.support.test.InstrumentationRegistry; 5 | import android.support.test.runner.AndroidJUnit4; 6 | 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | /** 13 | * Instrumentation test, which will execute on an Android device. 14 | * 15 | * @see Testing documentation 16 | */ 17 | @RunWith(AndroidJUnit4.class) 18 | public class ExampleInstrumentedTest { 19 | @Test 20 | public void useAppContext() throws Exception { 21 | // Context of the app under test. 22 | Context appContext = InstrumentationRegistry.getTargetContext(); 23 | 24 | assertEquals("com.example.dimpychhabra.capo", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /php_files/login.php: -------------------------------------------------------------------------------- 1 | connect_error) { 12 | die("Connection failed: " . $conn->connect_error); 13 | } 14 | $mob_no = $_POST['mob_no']; 15 | $password = $_POST['password']; 16 | 17 | $sql = "SELECT u_name, u_college, u_email, u_sex, u_enroll , u_id, u_enroll, u_fb FROM user_details WHERE u_id = '$mob_no' AND u_pass = '$password'"; 18 | $result = $conn->query($sql); 19 | 20 | if ($result->num_rows > 0) { 21 | // output data of each row 22 | while($row = $result->fetch_assoc()) { 23 | echo " ". $row["u_name"]. " > " . $row["u_id"]. " > " . $row["u_college"]. " > " . $row["u_email"]. " > " . $row["u_sex"]. " > " . $row["u_enroll"]. " > " . $row["u_fb"]. "
"; 24 | } 25 | } else { 26 | echo "NO_PROF" ; 27 | } 28 | $conn->close(); 29 | ?> -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_get_capo__frag2.xml: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | 17 |