Revision 697895bc

b/src/com/rackspace/cloud/servers/api/client/ServerManager.java
265 265

  
266 266
		StringEntity tmp = null;
267 267
		try {
268
			Log.d("info", "captin the flavor id is " + flavorId);
269 268
			tmp = new StringEntity("<resize xmlns=\"http://docs.rackspacecloud.com/servers/api/v1.0\" flavorId=\"" + flavorId + "\"/>");
270 269
		} catch (UnsupportedEncodingException e) {
271 270
			CloudServersException cse = new CloudServersException();
b/src/com/rackspacecloud/android/AddContainerActivity.java
171 171
				}
172 172
			} else if (exception != null) {
173 173
				startFileError("There was a problem creating your container: " + exception.getMessage()+" Check container name and try again", bundle);				
174
			}			
174
			}
175
			finish();
175 176
		}
176 177
    }
177 178

  
b/src/com/rackspacecloud/android/ContainerObjectDetails.java
42 42
import android.view.View;
43 43
import android.widget.Button;
44 44
import android.widget.TextView;
45
import android.widget.Toast;
45 46

  
46 47
import com.rackspace.cloud.files.api.client.ContainerObjectManager;
47 48
import com.rackspace.cloud.files.api.client.ContainerObjects;
......
313 314
	    String extension = android.webkit.MimeTypeMap.getFileExtensionFromUrl(Uri.fromFile(file).toString());
314 315
	    String mimetype = android.webkit.MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension);
315 316
	    Log.d("info", "captin the file name is " + object.getName());
316
	    Log.d("info", "captin the uri is " + Uri.fromFile(object).toString());
317
	    Log.d("info", "captin the uri is " + Uri.decode(Uri.fromFile(object).toString()));
317 318
	    myIntent.setDataAndType(Uri.fromFile(file),mimetype);
318
	    startActivity(myIntent);
319
	    //myIntent.setData(Uri.fromFile(file));
320
	    try{
321
	    	startActivity(myIntent);
322
	    }
323
	    catch(Exception e){
324
	    	Toast.makeText(this, "Could not open file.", Toast.LENGTH_SHORT).show();
325
	    }
319 326
	}
320 327
	
321 328
	private boolean writeFile(byte[] data){

Also available in: Unified diff