project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/MainActivity.java
changeset 7349 12fdfd2038d4
parent 7344 25b8906f901a
child 7352 641f11cdd319
equal deleted inserted replaced
7346:b0f67c5b4215 7349:12fdfd2038d4
    23 import java.io.IOException;
    23 import java.io.IOException;
    24 
    24 
    25 import org.hedgewars.hedgeroid.Downloader.DownloadAssets;
    25 import org.hedgewars.hedgeroid.Downloader.DownloadAssets;
    26 import org.hedgewars.hedgeroid.Downloader.DownloadListActivity;
    26 import org.hedgewars.hedgeroid.Downloader.DownloadListActivity;
    27 import org.hedgewars.hedgeroid.netplay.LobbyActivity;
    27 import org.hedgewars.hedgeroid.netplay.LobbyActivity;
    28 import org.hedgewars.hedgeroid.netplay.TestActivity;
       
    29 
    28 
    30 import android.app.AlertDialog;
    29 import android.app.AlertDialog;
    31 import android.app.Dialog;
    30 import android.app.Dialog;
    32 import android.app.ProgressDialog;
    31 import android.app.ProgressDialog;
    33 import android.content.DialogInterface;
    32 import android.content.DialogInterface;
    34 import android.content.Intent;
    33 import android.content.Intent;
    35 import android.content.pm.PackageManager.NameNotFoundException;
       
    36 import android.os.Bundle;
    34 import android.os.Bundle;
    37 import android.preference.PreferenceManager;
       
    38 import android.support.v4.app.FragmentActivity;
    35 import android.support.v4.app.FragmentActivity;
    39 import android.util.Log;
       
    40 import android.view.View;
    36 import android.view.View;
    41 import android.view.View.OnClickListener;
    37 import android.view.View.OnClickListener;
    42 import android.widget.Button;
    38 import android.widget.Button;
    43 import android.widget.Toast;
    39 import android.widget.Toast;
    44 
    40 
    56 
    52 
    57 		downloader.setOnClickListener(downloadClicker);
    53 		downloader.setOnClickListener(downloadClicker);
    58 		startGame.setOnClickListener(startGameClicker);
    54 		startGame.setOnClickListener(startGameClicker);
    59 		joinLobby.setOnClickListener(new OnClickListener() {
    55 		joinLobby.setOnClickListener(new OnClickListener() {
    60 			public void onClick(View v) {
    56 			public void onClick(View v) {
    61 				startActivity(new Intent(getApplicationContext(), TestActivity.class));
    57 				startActivity(new Intent(getApplicationContext(), LobbyActivity.class));
    62 			}
    58 			}
    63 		});
    59 		});
    64 
    60 
    65 		if(!Utils.isDataPathAvailable()){
    61 		if(!Utils.isDataPathAvailable()){
    66 			showDialog(0);
    62 			showDialog(0);