コード例 #1
0
 @Override
 protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   TextView textView = new TextView(this);
   setContentView(textView);
   textView.setText(NetWorkUtil.getLocalIp(this));
 }
コード例 #2
0
 @Override
 protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.activity_crossfade);
   setUpViews();
 }