2013-05-17 35 views
0
  1. 這是我的代碼模擬器不會重新加載代碼

    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);  
         } 
        });  
    }  
    

    }

  2. 但我從我的控制檯得到這個消息:

    [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 
    
    1. 我有點困惑,它是什麼意思,它已經被帶到了前臺,而這整個事情作爲一個整體

回答

0

模擬器只是告訴你,

  1. 您的應用程序已經是「設備」
  2. 它無法檢測到任何明顯變化
  3. 它已經在運行,因此它只需要被帶到前面

如果你需要刷新它,您可以

  • 卸載它,並開始重新運行
  • 更改它,並開始重新運行 或
  • 清理項目,並開始重新運行
+0

謝謝你好! – SalTor

+0

不客氣!如果我的答案解決了您的問題,請選擇旁邊的複選標記。 – DigCamara

相關問題