Panduan Praktis Pembuatan Aplikasi Android/Even
- Perbandingan kode even Android dan Gambas:
Kode Even Android Kode Even Gambas public void onCreate(BundlesavedInstanceState) { super.onCreate(savedInstancetate);
}
Public Sub Form_Open() End
public void onStart() { super.onStart();
}
Public Sub Form_Show() End
public void onResume() { super.onResume();
}
Public Sub Form_Activate() End
public void onPause() { super.onPause();
}
Public Sub Form_Deactivate() End
public void onStop() { super.onStop();
}
public void onRestart() { super.onRestart();
}
public void onDestroy() { super.onDestroy();
}
Public Sub Form_Close() End
public void namaEven(Integer integer) { }
Public Sub Nama_Even(integer As Integer)
End
public boolean onKeyDown(int KeyCode, KeyEvent event) { return boolean;
}
Public Sub Form_KeyPress() End
public void onCreate(BundlesavedInstanceState) { super.onCreate(savedInstancetate); setContentView(R.layout.main); Button btn = (Button) findViewById(R.id.btn); btn1.setOnClickListener(newOnClickListener() { @Override public void onClick(View view) { //Kode program } }); }
Public Sub Form_Open() End Public Sub btn_Click() 'Kode program End