This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class LoginSession { | |
static String Session = ""; | |
static public String get_session() { | |
if (Session == "") { | |
HttpClient http = new DefaultHttpClient(); | |
CookieStore cookieStore = new BasicCookieStore(); | |
String url = "http://makeall.ml:8989/login"; | |
try { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.jen6.tester; | |
import android.app.Activity; | |
import android.content.Context; | |
import android.content.SharedPreferences; | |
/** | |
* Created by jen6 on 2015-07-13. | |
*/ | |
public class RbPreference { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class LoginSession { | |
static String Session = ""; | |
static public String get_session() { | |
if (Session == ""){ | |
HttpClient http = new DefaultHttpClient(); | |
CookieStore cookieStore = new BasicCookieStore(); | |
String url = "http://makeall.ml:8989/login"; | |
try{ | |
HttpContext context = new BasicHttpContext(); | |
HttpPost httpPost = new HttpPost(url); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.jen6.tester; | |
import android.app.ProgressDialog; | |
import android.os.AsyncTask; | |
import android.util.Log; | |
import org.apache.http.HttpResponse; | |
import org.apache.http.NameValuePair; | |
import org.apache.http.client.CookieStore; | |
import org.apache.http.client.HttpClient; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BusPostSetter { | |
public HttpClient http = new DefaultHttpClient(); | |
public CookieStore cookieStore = new BasicCookieStore(); | |
// ์ฟ ํค์คํ ์ด๋ httpclient๋ฅผ ํผ๋ธ๋ฆญ์ผ๋ก ์ ์ธ | |
public RbPreference pre = new RbPreference(this); | |
// ํ๋ฆฌ๋ ํผ๋ฐ์ค ์ฌ์ฉํ ๊ฐ์ฒด ์ ์ธ | |
public BusPostSetter() { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//๊ธ์ฐ๊ธฐ์ฉ | |
public class BusPostSetter { | |
public BusPostSetter(){} | |
public BusPostSetter(String Title, String Content, int Want) {} | |
public boolean post() {} | |
} | |
class BusList{ | |
int Id, Want; | |
String Title, Content; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BusPostSetter { | |
public BusPostSetter(){} | |
public BusPostSetter(String Title, String Content, int Want) {} | |
public boolean post() {} | |
} | |
class BusList{ | |
int Id, Want; | |
String Title, Content; | |
} |
NewerOlder