Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/365.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 对象我的想法是启动一个线程,在序列化还没有准备好的时候增加一个计数器。 private class YourTask extends AsyncTask<String, Void, String> { @Override_Java_Android_File Io - Fatal编程技术网

Java 对象我的想法是启动一个线程,在序列化还没有准备好的时候增加一个计数器。 private class YourTask extends AsyncTask<String, Void, String> { @Override

Java 对象我的想法是启动一个线程,在序列化还没有准备好的时候增加一个计数器。 private class YourTask extends AsyncTask<String, Void, String> { @Override,java,android,file-io,Java,Android,File Io,对象我的想法是启动一个线程,在序列化还没有准备好的时候增加一个计数器。 private class YourTask extends AsyncTask<String, Void, String> { @Override protected String doInBackground(String... s) { //Here you have to make the loading / parsing tasks

对象我的想法是启动一个线程,在序列化还没有准备好的时候增加一个计数器。
    private class YourTask extends AsyncTask<String, Void, String> {
        @Override
        protected String doInBackground(String... s) {

            //Here you have to make the loading / parsing tasks
            //Don't call any UI actions here. For example a Toast.show() this will couse Exceptions
            // UI stuff you have to make in onPostExecute method

        }

        @Override
        protected void onPreExecute() {
            // This method will called during doInBackground is in process
            // Here you can for example show a ProgressDialog
        }

        @Override
        protected void onPostExecute(Long result) {
            // onPostExecute is called when doInBackground finished
            // Here you can for example fill your Listview with the content loaded in doInBackground method

        }

}
new YourTask().execute("");