0
這是我的代碼模擬器不會重新加載代碼
public class MainActivity extends Activity { Button btn; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); btn = (Button) findViewById(R.id.button1); btn.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent(MainActivity.this, socialnetworking.class); startActivity(intent); } }); }
}
但我從我的控制檯得到這個消息:
[2013-05-17 17:57:44 - NXTRemoteControl] ------------------------------ [2013-05-17 17:57:44 - NXTRemoteControl] Android Launch! [2013-05-17 17:57:44 - NXTRemoteControl] adb is running normally. [2013-05-17 17:57:44 - NXTRemoteControl] Performing com.example.nxtremotecontrol.MainActivity activity launch [2013-05-17 17:57:44 - NXTRemoteControl] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'GalaxyNexus' [2013-05-17 17:57:46 - NXTRemoteControl] Application already deployed. No need to reinstall. [2013-05-17 17:57:46 - NXTRemoteControl] Starting activity com.example.nxtremotecontrol.MainActivity on device emulator-5554 [2013-05-17 17:57:47 - NXTRemoteControl] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.nxtremotecontrol/.MainActivity } [2013-05-17 17:57:47 - NXTRemoteControl] ActivityManager: Warning: Activity not started, its current task has been brought to the front
- 我有點困惑,它是什麼意思,它已經被帶到了前臺,而這整個事情作爲一個整體
謝謝你好! – SalTor
不客氣!如果我的答案解決了您的問題,請選擇旁邊的複選標記。 – DigCamara