Skip to content
Snippets Groups Projects
Select Git revision
  • 9b5d7f63adb9f5f52373f0361ced4debf5ec0c47
  • master default protected
2 results

Adminconsole.java

Blame
    • raj kiran reddy koppala's avatar
      9b5d7f63
      Committer: raj kiran reddy koppala <raj kiran reddy koppala> · 9b5d7f63
      raj kiran reddy koppala authored
       Changes to be committed:
      	new file:   .gitignore
      	new file:   .idea/compiler.xml
      	new file:   .idea/copyright/profiles_settings.xml
      	new file:   .idea/gradle.xml
      	new file:   .idea/misc.xml
      	new file:   .idea/modules.xml
      	new file:   .idea/runConfigurations.xml
      	new file:   app/.gitignore
      	new file:   app/build.gradle
      	new file:   app/google-services.json
      	new file:   app/proguard-rules.pro
      	new file:   app/src/androidTest/java/com/example/kiran/carrents/ExampleInstrumentedTest.java
      	new file:   app/src/main/AndroidManifest.xml
      	new file:   app/src/main/java/com/example/kiran/carrents/Adminconsole.java
      	new file:   app/src/main/java/com/example/kiran/carrents/Admindelete.java
      	new file:   app/src/main/java/com/example/kiran/carrents/Adminlogin.java
      	new file:   app/src/main/java/com/example/kiran/carrents/Bookings.java
      	new file:   app/src/main/java/com/example/kiran/carrents/MainActivity.java
      	new file:   app/src/main/java/com/example/kiran/carrents/RVAdapter.java
      	new file:   app/src/main/java/com/example/kiran/carrents/ServercallGetAuth.java
      	new file:   app/src/main/java/com/example/kiran/carrents/Userselect.java
      	new file:   app/src/main/java/com/example/kiran/carrents/addcar.java
      	new file:   app/src/main/java/com/example/kiran/carrents/bookingstatus.java
      	new file:   app/src/main/java/com/example/kiran/carrents/eventobject.java
      	new file:   app/src/main/java/com/example/kiran/carrents/location.java
      	new file:   app/src/main/java/com/example/kiran/carrents/loccars.java
      	new file:   app/src/main/java/com/example/kiran/carrents/login.java
      	new file:   app/src/main/java/com/example/kiran/carrents/servercallback.java
      	new file:   app/src/main/java/com/example/kiran/carrents/signup.java
      	new file:   app/src/main/java/com/example/kiran/carrents/uscars.java
      	new file:   app/src/main/res/drawable/audicar.jpg
      	new file:   app/src/main/res/drawable/audihalf.jpg
      	new file:   app/src/main/res/drawable/carblack.jpg
      	new file:   app/src/main/res/drawable/carrow.jpg
      	new file:   app/src/main/res/drawable/joker.jpg
      	new file:   app/src/main/res/drawable/keys.jpg
      	new file:   app/src/main/res/drawable/location1.jpg
      	new file:   app/src/main/res/drawable/speedometer.png
      	new file:   app/src/main/res/drawable/toycar.jpg
      	new file:   app/src/main/res/layout/activity_addcar.xml
      	new file:   app/src/main/res/layout/activity_adminconsole.xml
      	new file:   app/src/main/res/layout/activity_admindelete.xml
      	new file:   app/src/main/res/layout/activity_adminlogin.xml
      	new file:   app/src/main/res/layout/activity_bookings.xml
      	new file:   app/src/main/res/layout/activity_bookingstatus.xml
      	new file:   app/src/main/res/layout/activity_location.xml
      	new file:   app/src/main/res/layout/activity_login.xml
      	new file:   app/src/main/res/layout/activity_main.xml
      	new file:   app/src/main/res/layout/activity_signup.xml
      	new file:   app/src/main/res/layout/activity_uscars.xml
      	new file:   app/src/main/res/layout/activity_userselect.xml
      	new file:   app/src/main/res/layout/cardview.xml
      	new file:   app/src/main/res/layout/fragment_loccars.xml
      	new file:   app/src/main/res/mipmap-hdpi/ic_launcher.png
      	new file:   app/src/main/res/mipmap-mdpi/ic_launcher.png
      	new file:   app/src/main/res/mipmap-xhdpi/ic_launcher.png
      	new file:   app/src/main/res/mipmap-xxhdpi/ic_launcher.png
      	new file:   app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
      	new file:   app/src/main/res/values-w820dp/dimens.xml
      	new file:   app/src/main/res/values/colors.xml
      	new file:   app/src/main/res/values/dimens.xml
      	new file:   app/src/main/res/values/strings.xml
      	new file:   app/src/main/res/values/styles.xml
      	new file:   app/src/test/java/com/example/kiran/carrents/ExampleUnitTest.java
      	new file:   build.gradle
      	new file:   gradle.properties
      	new file:   gradle/wrapper/gradle-wrapper.jar
      	new file:   gradle/wrapper/gradle-wrapper.properties
      	new file:   gradlew
      	new file:   gradlew.bat
      	new file:   settings.gradle
      9b5d7f63
      History
      Committer: raj kiran reddy koppala <raj kiran reddy koppala>
      raj kiran reddy koppala authored
       Changes to be committed:
      	new file:   .gitignore
      	new file:   .idea/compiler.xml
      	new file:   .idea/copyright/profiles_settings.xml
      	new file:   .idea/gradle.xml
      	new file:   .idea/misc.xml
      	new file:   .idea/modules.xml
      	new file:   .idea/runConfigurations.xml
      	new file:   app/.gitignore
      	new file:   app/build.gradle
      	new file:   app/google-services.json
      	new file:   app/proguard-rules.pro
      	new file:   app/src/androidTest/java/com/example/kiran/carrents/ExampleInstrumentedTest.java
      	new file:   app/src/main/AndroidManifest.xml
      	new file:   app/src/main/java/com/example/kiran/carrents/Adminconsole.java
      	new file:   app/src/main/java/com/example/kiran/carrents/Admindelete.java
      	new file:   app/src/main/java/com/example/kiran/carrents/Adminlogin.java
      	new file:   app/src/main/java/com/example/kiran/carrents/Bookings.java
      	new file:   app/src/main/java/com/example/kiran/carrents/MainActivity.java
      	new file:   app/src/main/java/com/example/kiran/carrents/RVAdapter.java
      	new file:   app/src/main/java/com/example/kiran/carrents/ServercallGetAuth.java
      	new file:   app/src/main/java/com/example/kiran/carrents/Userselect.java
      	new file:   app/src/main/java/com/example/kiran/carrents/addcar.java
      	new file:   app/src/main/java/com/example/kiran/carrents/bookingstatus.java
      	new file:   app/src/main/java/com/example/kiran/carrents/eventobject.java
      	new file:   app/src/main/java/com/example/kiran/carrents/location.java
      	new file:   app/src/main/java/com/example/kiran/carrents/loccars.java
      	new file:   app/src/main/java/com/example/kiran/carrents/login.java
      	new file:   app/src/main/java/com/example/kiran/carrents/servercallback.java
      	new file:   app/src/main/java/com/example/kiran/carrents/signup.java
      	new file:   app/src/main/java/com/example/kiran/carrents/uscars.java
      	new file:   app/src/main/res/drawable/audicar.jpg
      	new file:   app/src/main/res/drawable/audihalf.jpg
      	new file:   app/src/main/res/drawable/carblack.jpg
      	new file:   app/src/main/res/drawable/carrow.jpg
      	new file:   app/src/main/res/drawable/joker.jpg
      	new file:   app/src/main/res/drawable/keys.jpg
      	new file:   app/src/main/res/drawable/location1.jpg
      	new file:   app/src/main/res/drawable/speedometer.png
      	new file:   app/src/main/res/drawable/toycar.jpg
      	new file:   app/src/main/res/layout/activity_addcar.xml
      	new file:   app/src/main/res/layout/activity_adminconsole.xml
      	new file:   app/src/main/res/layout/activity_admindelete.xml
      	new file:   app/src/main/res/layout/activity_adminlogin.xml
      	new file:   app/src/main/res/layout/activity_bookings.xml
      	new file:   app/src/main/res/layout/activity_bookingstatus.xml
      	new file:   app/src/main/res/layout/activity_location.xml
      	new file:   app/src/main/res/layout/activity_login.xml
      	new file:   app/src/main/res/layout/activity_main.xml
      	new file:   app/src/main/res/layout/activity_signup.xml
      	new file:   app/src/main/res/layout/activity_uscars.xml
      	new file:   app/src/main/res/layout/activity_userselect.xml
      	new file:   app/src/main/res/layout/cardview.xml
      	new file:   app/src/main/res/layout/fragment_loccars.xml
      	new file:   app/src/main/res/mipmap-hdpi/ic_launcher.png
      	new file:   app/src/main/res/mipmap-mdpi/ic_launcher.png
      	new file:   app/src/main/res/mipmap-xhdpi/ic_launcher.png
      	new file:   app/src/main/res/mipmap-xxhdpi/ic_launcher.png
      	new file:   app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
      	new file:   app/src/main/res/values-w820dp/dimens.xml
      	new file:   app/src/main/res/values/colors.xml
      	new file:   app/src/main/res/values/dimens.xml
      	new file:   app/src/main/res/values/strings.xml
      	new file:   app/src/main/res/values/styles.xml
      	new file:   app/src/test/java/com/example/kiran/carrents/ExampleUnitTest.java
      	new file:   build.gradle
      	new file:   gradle.properties
      	new file:   gradle/wrapper/gradle-wrapper.jar
      	new file:   gradle/wrapper/gradle-wrapper.properties
      	new file:   gradlew
      	new file:   gradlew.bat
      	new file:   settings.gradle
    Adminconsole.java 1.54 KiB
    package com.example.kiran.carrents;
    
    import android.content.Intent;
    import android.support.v7.app.AppCompatActivity;
    import android.os.Bundle;
    import android.view.ContextMenu;
    import android.view.MenuItem;
    import android.view.View;
    import android.widget.ArrayAdapter;
    import android.widget.BaseAdapter;
    import android.widget.Button;
    import android.widget.ListView;
    import android.widget.Toast;
    
    public class Adminconsole extends AppCompatActivity {
    
        Button b1,b2,b3;
    
        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_adminconsole);
            b1 = (Button)findViewById(R.id.button7);
            b2 = (Button)findViewById(R.id.button8);
            b3 = (Button)findViewById(R.id.button9);
    
    
            b1.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    Intent i = new Intent(Adminconsole.this,addcar.class);
                    startActivity(i);
                }
            });
    
            b2.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    Intent j = new Intent(Adminconsole.this,Admindelete.class);
                    startActivity(j);
                }
            });
    
            b3.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    Intent x = new Intent(Adminconsole.this,Userselect.class);
                    startActivity(x);
                }
            });
    
        }
    
    
    }