MY MEMO

[ANDROID] android 추가 본문

카테고리 없음

[ANDROID] android 추가

l_j_yeon 2017. 6. 8. 02:53

1) Manifest ->noactionbar

Activity -> app theme ->no action bar

 

2) Android 에는 보안상 mysql driver 없음 따라서 php파일을 만들어서 서버에서 돌려줘야함

서버에서 php파일을 넣어놨으면

안드로이드 스튜디오에서


1.      AndroidManifest추가

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

</uses-premission>


2.     Build.gradle(Module) – dependencies 아래에 코드 추가

3.   
dependencies {
    compile fileTree(
dir: 'libs', include: ['*.jar'])
    androidTestCompile(
'com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude
group: 'com.android.support', module: 'support-annotations'
   
})
    compile
'com.android.support:appcompat-v7:25.3.1'
   
compile 'com.android.support.constraint:constraint-layout:1.0.2'
   
testCompile 'junit:junit:4.12'
   
compile 'com.android.volley:volley:1.0.0'
}

3) splash화면 -> gif와 같이 나타나는 것


4) 비밀번호 암호화


$checkedPassword = password_hash($userPassword,PASSWROD_DEFAULT);


if(password_verify($userPassword,$checkedPasswrod)){

$response["success"] = true;

$response["userID"] = $userID;

}

Comments