Commit 53706bbc authored by fallenstardust's avatar fallenstardust

toast软件错误退出提示文字

parent 4c0b8b51
...@@ -21,6 +21,7 @@ import java.util.HashMap; ...@@ -21,6 +21,7 @@ import java.util.HashMap;
import java.util.Map; import java.util.Map;
import cn.garymb.ygomobile.AppsSettings; import cn.garymb.ygomobile.AppsSettings;
import cn.garymb.ygomobile.lite.R;
public class CrashHandler implements Thread.UncaughtExceptionHandler { public class CrashHandler implements Thread.UncaughtExceptionHandler {
public static final String TAG = "YGOMobile-Exception"; public static final String TAG = "YGOMobile-Exception";
...@@ -69,7 +70,7 @@ public class CrashHandler implements Thread.UncaughtExceptionHandler { ...@@ -69,7 +70,7 @@ public class CrashHandler implements Thread.UncaughtExceptionHandler {
@Override @Override
public void run() { public void run() {
Looper.prepare(); Looper.prepare();
Toast.makeText(context, "软件错误退出", Toast.LENGTH_LONG).show(); Toast.makeText(context, R.string.crashed, Toast.LENGTH_LONG).show();
Looper.loop(); Looper.loop();
} }
}.start(); }.start();
......
...@@ -241,4 +241,5 @@ ...@@ -241,4 +241,5 @@
<string name="tutorial">가이드 북 보기</string> <string name="tutorial">가이드 북 보기</string>
<string name="about_help">원하는 내용을 클릭합니다.</string> <string name="about_help">원하는 내용을 클릭합니다.</string>
<string name="to_open">열기</string> <string name="to_open">열기</string>
<string name="crashed">YGOMobile 추락 한!</string>
</resources> </resources>
...@@ -78,8 +78,8 @@ ...@@ -78,8 +78,8 @@
<!-- settings --> <!-- settings -->
<string name="server_name">名称:</string> <string name="server_name">名称:</string>
<string name="server_ip">主机信息:</string> <string name="server_ip">主机信息:</string>
<string name="server_user">用户:</string> <string name="server_user">昵称:</string>
<string name="server_room_name">房间:</string> <string name="server_room_name">房间密码:</string>
<string name="server_port">端口:</string> <string name="server_port">端口:</string>
<string name="server_room_pwd">密码:</string> <string name="server_room_pwd">密码:</string>
<string name="server_user_pwd">密码:</string> <string name="server_user_pwd">密码:</string>
...@@ -240,4 +240,5 @@ ...@@ -240,4 +240,5 @@
<string name="tutorial">查看软件教程</string> <string name="tutorial">查看软件教程</string>
<string name="about_help">点击您想要了解的内容</string> <string name="about_help">点击您想要了解的内容</string>
<string name="to_open">去开启</string> <string name="to_open">去开启</string>
<string name="crashed">软件错误退出</string>
</resources> </resources>
...@@ -240,4 +240,5 @@ ...@@ -240,4 +240,5 @@
<string name="tutorial">Soft Tutorial</string> <string name="tutorial">Soft Tutorial</string>
<string name="about_help">Click button which you want to know</string> <string name="about_help">Click button which you want to know</string>
<string name="to_open">to Open</string> <string name="to_open">to Open</string>
<string name="crashed">YGOMobile Crashed!</string>
</resources> </resources>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment