GroupExpenseManager/src/com/AndroidFriends/src/GroupSummaryActivity.java
// Functions to export the group database
Functions to export the group database
Functions to export the group database
public void exportAlert(View v) {
		final String DBPath = Environment.getExternalStorageDirectory() + "/" + FOLDER + "/" + grpName + DATABASE + DB_EXTENSION;
		AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(this);
		alertDialogBuilder.setTitle("Export Group Database");
		alertDialogBuilder
		.setMessage("The group database will be exported to " + DBPath + ". Continue?")
		.setCancelable(true)
		.setPositiveButton("Yes",new DialogInterface.OnClickListener() {
			public void onClick(DialogInterface dialog, int id) {
				exportGroupDatabase(DBPath);
			}
		})
		.setNegativeButton("No",new DialogInterface.OnClickListener() {
			public void onClick(DialogInterface dialog, int id) {
				dialog.cancel();
			}
		});
		AlertDialog alertDialog = alertDialogBuilder.create();
		alertDialog.show();
	}
public void exportAlert ( View v ) { final String DBPath = Environment . getExternalStorageDirectory ( ) + "/" + FOLDER + "/" + grpName + DATABASE + DB_EXTENSION ; AlertDialog . Builder alertDialogBuilder = new AlertDialog . Builder ( this ) ; alertDialogBuilder . setTitle ( "Export Group Database" ) ; alertDialogBuilder . setMessage ( "The group database will be exported to " + DBPath + ". Continue?" ) . setCancelable ( true ) . setPositiveButton ( "Yes" , new DialogInterface . OnClickListener ( ) { public void onClick ( DialogInterface dialog , int id ) { exportGroupDatabase ( DBPath ) ; } } ) . setNegativeButton ( "No" , new DialogInterface . OnClickListener ( ) { public void onClick ( DialogInterface dialog , int id ) { dialog . cancel ( ) ; } } ) ; AlertDialog alertDialog = alertDialogBuilder . create ( ) ; alertDialog . show ( ) ; }
Functions to export the group database
Functions to export the group database