| | |
| | | package com.lotaai.canguiayw; |
| | | |
| | | import android.content.Context; |
| | | import android.content.Intent; |
| | | import android.os.Bundle; |
| | | import android.os.Handler; |
| | |
| | | import com.lotaai.canguiayw.device.CanguiStatus; |
| | | import com.lotaai.canguiayw.device.DeviceMessage; |
| | | import com.lotaai.canguiayw.device.MessageType; |
| | | import com.lotaai.canguiayw.view.TipDialog; |
| | | import com.pranavpandey.android.dynamic.toasts.DynamicToast; |
| | | |
| | | import org.greenrobot.eventbus.EventBus; |
| | |
| | | |
| | | public class CunOjbActivity extends AppCompatActivity { |
| | | OpenDoorFragment openDoorFragment; |
| | | public String pickupCode; |
| | | public int isHand; |
| | | |
| | | @Override |
| | | protected void onCreate(Bundle savedInstanceState) { |
| | | super.onCreate(savedInstanceState); |
| | | setContentView(R.layout.activity_cunobj); |
| | | pickupCode = getIntent().getStringExtra("code"); |
| | | isHand = getIntent().getIntExtra("isHand",0); |
| | | openDoorFragment = new OpenDoorFragment(); |
| | | getSupportFragmentManager().beginTransaction().replace(R.id.mframe, openDoorFragment).commitAllowingStateLoss(); |
| | | } |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | public void showResult(String msg){ |
| | | TipDialog tipDialog = new TipDialog(); |
| | | Bundle bundle = new Bundle(); |
| | | bundle.putString("msg",msg); |
| | | tipDialog.setArguments(bundle); |
| | | tipDialog.show(getSupportFragmentManager(),"res"); |
| | | tipDialog.callback = new TipDialog.ExitCallback() { |
| | | @Override |
| | | public void onExit() { |
| | | finish(); |
| | | } |
| | | }; |
| | | } |
| | | } |