コード例 #1
0
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.ashare);
   mStartBtn = (Button) findViewById(R.id.start_btn);
   mStopBtn = (Button) findViewById(R.id.stop_btn);
   mStartBtn.setOnClickListener(this);
   mStopBtn.setOnClickListener(this);
   mJniCallback = AShareJniCallBack.getInstance();
   mJniCallback.addCallBackListener(this);
   mDisplay = AshareStartActivity.this.getWindowManager().getDefaultDisplay();
   getIPAddrOfCurrentRenderer();
 }
コード例 #2
0
 @Override
 protected void onGetIPAddrOfCurrentRenderer(String ipAddr) {
   super.onGetIPAddrOfCurrentRenderer(ipAddr);
   mCurrentRenderIp = ipAddr;
   Log.d(TAG, "mCurrentRenderIp=" + mCurrentRenderIp);
 }