My device gives me an error "Download failed, A memory card is needed
for file download, please insert one and try again.

Here is my code.  I'm a little new to this, is there a line needed to
specify the download path?


package com.HelloWebView;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.webkit.WebView;



public class HelloWebView extends Activity {

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

Uri uri = Uri.parse("http://usacac.army.mil/cac2/WOCC/repository/
2011_Welcome_Letter.pdf");
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);


}
}

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to