|
|
@ -27,6 +27,7 @@ import com.example.haiwei_mom.broadcast.MyScannerCall;
|
|
|
|
import com.example.haiwei_mom.broadcast.MyScannerReceiver;
|
|
|
|
import com.example.haiwei_mom.broadcast.MyScannerReceiver;
|
|
|
|
import com.example.haiwei_mom.uitls.MyToastUitls;
|
|
|
|
import com.example.haiwei_mom.uitls.MyToastUitls;
|
|
|
|
import com.google.gson.Gson;
|
|
|
|
import com.google.gson.Gson;
|
|
|
|
|
|
|
|
import com.google.gson.GsonBuilder;
|
|
|
|
|
|
|
|
|
|
|
|
import java.io.ByteArrayOutputStream;
|
|
|
|
import java.io.ByteArrayOutputStream;
|
|
|
|
import java.io.File;
|
|
|
|
import java.io.File;
|
|
|
@ -58,7 +59,9 @@ public class BaseActivity extends AppCompatActivity implements MyScannerCall {
|
|
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
|
|
super.onCreate(savedInstanceState);
|
|
|
|
super.onCreate(savedInstanceState);
|
|
|
|
Log.e("TAG", this.getLocalClassName() );
|
|
|
|
Log.e("TAG", this.getLocalClassName() );
|
|
|
|
gson = new Gson();
|
|
|
|
gson = new GsonBuilder()
|
|
|
|
|
|
|
|
.setLenient() // 对JSON语法更宽容
|
|
|
|
|
|
|
|
.create();
|
|
|
|
this.context=this;
|
|
|
|
this.context=this;
|
|
|
|
initDialog();
|
|
|
|
initDialog();
|
|
|
|
initSan();
|
|
|
|
initSan();
|
|
|
|