출처 : http://cafe.naver.com/unityhub
'Unity3D' 카테고리의 다른 글
유니티 인스펙터 순서대로 sort 방법 (0) | 2016.08.25 |
---|---|
4.6 터치 이벤트 (0) | 2015.09.10 |
Unity Sprite Zorder (0) | 2015.09.10 |
유니티 애즈 연동 (4) | 2015.06.26 |
Admob 연동 방법 (0) | 2015.06.26 |
출처 : http://cafe.naver.com/unityhub
유니티 인스펙터 순서대로 sort 방법 (0) | 2016.08.25 |
---|---|
4.6 터치 이벤트 (0) | 2015.09.10 |
Unity Sprite Zorder (0) | 2015.09.10 |
유니티 애즈 연동 (4) | 2015.06.26 |
Admob 연동 방법 (0) | 2015.06.26 |
자바 컴파일러 버전이 달라 발생한 에러.
android-async-http-1.4.7.jar는 version 52.0에서 빌드 되었는데.
현재 프로젝트 컴파일할때 사용된 자바 컴파일러 버전은 version 52.0이 아니여서 발생한 문제이다.
version 52.0은 jdk 1.8 이므로 unsupported major.minor vesison 52.0 숫자에 맞게
jdk 버젼을 맞춰주는 방법으로 이 문제를 해결할 수 있다.
52.0 - jdk 1.8, 51.0 - jdk 1.7, 50.0 - jdk 1.6 으로 보면 될 것 같다.
티스토어 IAP 구매 (0) | 2015.08.14 |
---|---|
can't find right android-platform for project (0) | 2015.07.21 |
네트워크 상태 실시간 체크 (0) | 2015.06.26 |
상태바 error (you need to use a theme.appcompat theme (or descendant) with this activity) (0) | 2015.03.27 |
jni fatal signal (0) | 2015.02.18 |
OtherPage.html
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>Login Page</title>
</head>
<body>
<h1>Login Page</h1>
<form method="post">
<table>
<tr>
<td><label>UserName</label></td>
<td><input type="text" name='login'/></td>
</tr>
<tr>
<td><label>Password</label></td>
<td><input type="password" name='password' /></td>
</tr>
</table>
<input type="submit"/>
</form>
</body>
</html>
-----------------
var http = require("http");
var express = require("express");
var app = express();
var fs = require("fs");
var body_parser = require("body-parser");
var cookie_parser = require("cookie-parser");
app.use(body_parser.urlencoded({ extended: false }));
app.use(body_parser.json()); // body를 json 형식으로 만들어줌
app.use(cookie_parser());
app.get("/", function (request, response) {
if (request.cookies.auth) {
response.send("<h1>Login Success</h1>");
} else {
response.cookies.set("auth", false);
response.redirect("/login");
}
});
app.get("/login", function (request, response) {
fs.readFile("OtherPage.html", function (error, data) {
response.send(data.toString());
});
});
app.post("/login", function (request, response) {
var id = request.body.login;
var pw = request.body.password;
console.log(id, pw);
console.log(request.body);
if (id == "rint" && pw == "1234") {
response.cookies.set("auth", true);
response.redirect("/");
} else {
response.redirect("/login");
}
});
http.createServer(app).listen(52273, function () {
console.log("Server running 52273");
});
request handler가 응답하게 만들기 (0) | 2015.02.05 |
---|---|
URL path 기준으로 요청 구분하기 (0) | 2015.02.05 |
index.js 파일로 서버 실행 시키기 ( http 요청 받기 ) (0) | 2015.02.05 |
함수 호출하기 (0) | 2015.02.05 |
웹서버 만들기 (0) | 2015.02.05 |