package com.rcarrillocruz.android.openstackdroid;

import android.app.Activity;
import android.os.Bundle;

public class ConnectionProfileActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.connection_profile_activity);
	}

}

@@ -92,277 +92,2197 @@
 oid.
-os.Bundle;%0A%0Apublic class ConnectionProfileActivity extends Activity %7B%0A%0A%09@Override%0A%09protected void onCreate(Bundle savedInstanceState) %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09super.onCreate(savedInstanceState);%0A%09%09setContentView(R.layout.connection_profile_activity);%0A%09%7D%0A
+content.ContentValues;%0Aimport android.net.Uri;%0Aimport android.os.Bundle;%0Aimport android.view.Menu;%0Aimport android.view.MenuItem;%0Aimport android.widget.EditText;%0A%0Apublic class ConnectionProfileActivity extends Activity %7B%0A%09private Uri connectionProfileUri;%0A%09%0A%09private EditText mProfileName;%0A%09private EditText mEndpoint;%0A%09private EditText mUsername;%0A%09private EditText mPassword;%0A%09private EditText mTenantId;%0A%09%0A%09@Override%0A%09protected void onCreate(Bundle savedInstanceState) %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09super.onCreate(savedInstanceState);%0A%09%09setContentView(R.layout.connection_profile_activity);%0A%09%09%0A%09%09mProfileName = (EditText) findViewById(R.id.profile_name_edittext);%0A%09%09mEndpoint = (EditText) findViewById(R.id.endpoint_edittext);%0A%09%09mUsername = (EditText) findViewById(R.id.username_edittext);%0A%09%09mPassword = (EditText) findViewById(R.id.password_edittext);%0A%09%09mTenantId = (EditText) findViewById(R.id.tenant_id_edittext);%0A%09%09%0A%09%09connectionProfileUri = null;%0A%09%7D%0A%0A    public boolean onCreateOptionsMenu(Menu menu) %7B%0A        getMenuInflater().inflate(R.menu.connection_profile_menu, menu);%0A        return true;%0A    %7D%0A    %0A%09public boolean onOptionsItemSelected(MenuItem item) %7B%0A%09%09switch(item.getItemId()) %7B%0A%09%09case R.id.save_profile:%0A%09%09%09saveConnectionProfile();%0A%09%09%09return true;%0A%09%09%7D%0A%09%09%0A%09%09return super.onOptionsItemSelected(item);%0A%09%7D%0A%0A%09private void saveConnectionProfile() %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09String profileName = (String) mProfileName.getText().toString();%0A%09%09String endpoint = mEndpoint.getText().toString();%0A%09%09String username = mUsername.getText().toString();%0A%09%09String password = mPassword.getText().toString();%0A%09%09String tenantId = mTenantId.getText().toString();%0A%09%09%0A%09%09ContentValues values = new ContentValues();%0A%09%09values.put(ConnectionProfileTable.COLUMN_PROFILE_NAME, profileName);%0A%09%09values.put(ConnectionProfileTable.COLUMN_ENDPOINT, endpoint);%0A%09%09values.put(ConnectionProfileTable.COLUMN_USERNAME, username);%0A%09%09values.put(ConnectionProfileTable.COLUMN_PASSWORD, password);%0A%09%09values.put(ConnectionProfileTable.COLUMN_TENANT_ID, tenantId);%0A%09%09%0A%09%09connectionProfileUri = getContentResolver().insert(ConnectionProfileContentProvider.CONTENT_URI, values);%0A%09%09%0A%09%09finish();%0A%09%7D
 %0A%7D%0A

Add menus and save form data to sqlite code