Compare commits

...

2 Commits

@ -119,7 +119,6 @@
android:exported="true"> android:exported="true">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" /> <category android:name="android.intent.category.LAUNCHER" />
</intent-filter> </intent-filter>
</activity> </activity>

@ -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();

Loading…
Cancel
Save