diff --git a/app/src/main/java/org/ntlab/amaryllis/client/LoginActivity.java b/app/src/main/java/org/ntlab/amaryllis/client/LoginActivity.java index 31b9c7a..cab47de 100644 --- a/app/src/main/java/org/ntlab/amaryllis/client/LoginActivity.java +++ b/app/src/main/java/org/ntlab/amaryllis/client/LoginActivity.java @@ -32,7 +32,7 @@ super.onCreate(savedInstanceState); setContentView(R.layout.activity_login); Retrofit retrofit = new Retrofit.Builder() - .baseUrl("http://nitta-lab-www.is.konan-u.ac.jp/amaryllis/rest/") + .baseUrl("http://nitta-lab-www.is.konan-u.ac.jp/amaryllis/") .addConverterFactory(JacksonConverterFactory.create()) .build(); final AccountsRest LoginService = retrofit.create(AccountsRest.class); @@ -52,7 +52,8 @@ @Override public void onResponse(Call call, Response response) { LoginJson loginJson =response.body(); - String token = loginJson.getToken(); + Amaryllis app = (Amaryllis) getApplication(); + app.setToken(loginJson.getToken()); Intent intent = new Intent(LoginActivity.this, MapsActivity.class); startActivity(intent); }