hour24
This commit is contained in:
parent
5ce150c9c6
commit
b937c21923
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
<mapping directory="$PROJECT_DIR$/work" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
|
@ -0,0 +1,5 @@
|
|||
package com.hnucm.weather;
|
||||
|
||||
public class LoginResult {
|
||||
|
||||
}
|
|
@ -1,13 +1,25 @@
|
|||
package com.hnucm.weather;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
import android.app.DownloadManager;
|
||||
import android.content.Intent;
|
||||
import android.content.SharedPreferences;
|
||||
import android.os.Bundle;
|
||||
import android.util.Log;
|
||||
|
||||
import com.gyf.immersionbar.ImmersionBar;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import okhttp3.Call;
|
||||
import okhttp3.Callback;
|
||||
import okhttp3.OkHttp;
|
||||
import okhttp3.OkHttpClient;
|
||||
import okhttp3.Request;
|
||||
import okhttp3.Response;
|
||||
|
||||
public class WelcomeActivity extends AppCompatActivity {
|
||||
|
||||
@Override
|
||||
|
@ -15,6 +27,29 @@ public class WelcomeActivity extends AppCompatActivity {
|
|||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_welcome);
|
||||
ImmersionBar.with(this).init();
|
||||
// Request request = new Request.Builder()
|
||||
// .url("https://test1265l.usemock.com/text3213")
|
||||
// .get()
|
||||
// .build();
|
||||
// OkHttpClient okHttpClient = new OkHttpClient();
|
||||
// Call call = okHttpClient.newCall(request);
|
||||
// call.enqueue(new Callback() {
|
||||
// @Override
|
||||
// public void onFailure(@NonNull Call call, @NonNull IOException e) {
|
||||
// Log.i("errorTest",e.toString());
|
||||
// }
|
||||
// @Override
|
||||
// public void onResponse(@NonNull Call call, @NonNull Response response) throws IOException {
|
||||
// String result = response.body().string();
|
||||
// Log.i("test",result);
|
||||
// runOnUiThread(new Runnable() {
|
||||
// @Override
|
||||
// public void run() {
|
||||
//
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
// });
|
||||
Thread thread = new Thread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
|
|
Loading…
Reference in New Issue