MY MEMO
[ANDROID] android 추가 본문
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