Revision f39579c4 src/com/rackspacecloud/android/ListAccountsActivity.java

b/src/com/rackspacecloud/android/ListAccountsActivity.java
61 61
	@Override
62 62
	protected void onSaveInstanceState(Bundle outState) {
63 63
		super.onSaveInstanceState(outState);
64
		Log.d("info", "captin the acounnt activity state has been saved");
65
		Log.d("info", "captin it is " + Boolean.toString(authenticating) + "that the app is authing");
66 64
		outState.putBoolean("authenticating", authenticating);
67 65
		//need to set authenticating back to true because it is set to false
68 66
		//in hideDialog()
......
96 94
	@Override
97 95
	protected void onStart(){
98 96
		super.onStart();
99
		Log.d("info", "captin onStop called");
100 97
		if(authenticating){
101 98
			showDialog();
102 99
		}
......
105 102
	@Override
106 103
	protected void onStop(){
107 104
		super.onStop();
108
		Log.d("info", "captin onStart called");
109 105
		if(authenticating){
110 106
			hideDialog();
111 107
			authenticating = true;
......
113 109
	}
114 110
		
115 111
	private void loadAccounts() {
116
		if(accounts != null)
117
			Log.d("loadAccounts", "captin the lenght is: " + accounts.size());
118 112
		//check and see if there are any in memory
119 113
		if(accounts == null){
120 114
			accounts = readAccounts();
......
123 117
		if(accounts == null){
124 118
			accounts = new ArrayList<Account>();
125 119
		}
126
		Log.d("loadAccounts2", "captin the lenght is: " + accounts.size());
127 120

  
128 121
		setAccountList();
129 122
	}
......
164 157
			in = new ObjectInputStream(fis);
165 158
			ArrayList<Account> file = (ArrayList<Account>)in.readObject();
166 159
			in.close();
167
			Log.d("captin", Boolean.toString(file == null));
168 160
			return file;
169 161
		} catch (FileNotFoundException e) {
170 162
			//showAlert("Error", "Could not load accounts.");
......
303 295
			acc.setApiKey(b.getString("apiKey"));
304 296
			acc.setUsername(b.getString("username"));
305 297
			acc.setAuthServer(b.getString("server"));
306
			Log.d("captin captin!", acc.getAuthServer());
307 298
			accounts.add(acc);
308 299
			writeAccounts();
309 300
			loadAccounts();

Also available in: Unified diff