Back to project page innovativeproject-meetingdataexchange.
The source code is released under:
MIT License
If you think the Android project innovativeproject-meetingdataexchange listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.TrololoCompany.meetingdataexchange; /* w ww .j a va 2 s .c o m*/ import java.util.ArrayList; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.Menu; import android.view.View; import android.widget.ListView; import com.TrololoCompany.meetingdataexchangeAdapters.ServerAdapter; import com.TrololoCompany.meetingdataexchangedataBase.DataBaseHelper; import com.TrololoCompany.meetingdataexchangedataBase.ServerEntity; public class ServerManageActivity extends Activity { private ArrayList<ServerEntity> arrayOfServers; private ServerAdapter adapter; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_server_manage); this.arrayOfServers = new DataBaseHelper(getApplicationContext()) .getServerEntities(); // Create the adapter to convert the array to views this.adapter = new ServerAdapter(this, arrayOfServers); // Attach the adapter to a ListView ListView listView = (ListView) findViewById(R.id.serverList); listView.setAdapter(adapter); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.server_manage, menu); return true; } public void add_new_server(View v) { Intent intent = new Intent(this, AddServerActivity.class); startActivity(intent); } }