서버를 통한 로그인

박승현·2022년 4월 21일
0
post-thumbnail

Volley 실습

로그인/회원가입

0. eclipse

이클립스에 AndroidServer 생성

1. pom.xml

<properties>
		<java-version>1.6</java-version>
		<org.springframework-version>5.1.5.RELEASE</org.springframework-version>
<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.5.1</version>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>

3.Maven Update

maven project update

4.cmd

IPv4주소를 복사해
http://(IPv4 주소)/android/ 에 넣으면 정상 출력

5.액티비티 구성

① 화면 구성

② id설정

6. 로그인 > 회원가입 연결

  • Manifest

    <application
    android:usesCleartextTraffic="true"

          
  • gradle

  • loginActivity

              ```
     //클릭 이벤트
     joinBtn.setOnClickListener(new View.OnClickListener() {
         @Override
         public void onClick(View view) {
    
             //화면 이동
             Intent intent = new Intent(LoginActivity.this,JoinActivity.class);
             startActivity(intent);
         }
     });

                 
                 
                 

0개의 댓글