What to do when - java.io.FileNotFoundException: No content provider??

by kivy » Tue, 20 Jul 2010 17:34:59 GMT


Sponsored Links
 i everyone,

when I try to attach a file to an email, I get a
java.io.FileNotFoundException: No content provider logcat output. If
anyone could tell me what I am doing wrong or what I should do
instead, that would be great.Thank you.

This is how I add the files to the email..:

Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_STREAM, uri);
sendIntent.setType("video/3gp");
sendIntent.setType("video/mp4");
startActivity(sendIntent);

...and here is the entire logcat error output:

20 09:15:58.364: ERROR/Mms/media(168): IOException caught while
opening or reading stream
07-20 09:15:58.364: ERROR/Mms/media(168):
java.io.FileNotFoundException: No content provider: /sdcard/
Video0006.mp4
07-20 09:15:58.364: ERROR/Mms/media(168): at
android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:
507)
07-20 09:15:58.364: ERROR/Mms/media(168): at
android.content.ContentResolver.openInputStream(ContentResolver.java:
345)
07-20 09:15:58.364: ERROR/Mms/media(168): at
com.android.mms.model.MediaModel.initMediaSize(MediaModel.java:268)
07-20 09:15:58.364: ERROR/Mms/media(168): at
com.android.mms.model.MediaModel.<init>(MediaModel.java:76)
07-20 09:15:58.364: ERROR/Mms/media(168): at
com.android.mms.model.RegionMediaModel.<init>(RegionMediaModel.java:
40)
07-20 09:15:58.364: ERROR/Mms/media(168): at
com.android.mms.model.VideoModel.<init>(VideoModel.java:55)
07-20 09:15:58.364: ERROR/Mms/media(168): at
com.android.mms.model.VideoModel.<init>(VideoModel.java:48)
07-20 09:15:58.364: ERROR/Mms/media(168): at
com.android.mms.data.WorkingMessage.changeMedia(WorkingMessage.java:
434)
07-20 09:15:58.364: ERROR/Mms/media(168): at
com.android.mms.data.WorkingMessage.setAttachment(WorkingMessage.java:
343)
07-20 09:15:58.364: ERROR/Mms/media(168): at
com.android.mms.ui.ComposeMessageActivity.addVideo(ComposeMessageActivity.java:
2472)
07-20 09:15:58.364: ERROR/Mms/media(168): at
com.android.mms.ui.ComposeMessageActivity.addAttachment(ComposeMessageActivity.java:
2544)
07-20 09:15:58.364: ERROR/Mms/media(168): at
com.android.mms.ui.ComposeMessageActivity.handleSendIntent(ComposeMessageActivity.java:
2521)
07-20 09:15:58.364: ERROR/Mms/media(168): at
com.android.mms.ui.ComposeMessageActivity.initialize(ComposeMessageActivity.java:
1703)
07-20 09:15:58.364: ERROR/Mms/media(168): at
com.android.mms.ui.ComposeMessageActivity.onCreate(ComposeMessageActivity.java:
1633)
07-20 09:15:58.364: ERROR/Mms/media(168): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1047)
07-20 09:15:58.364: ERROR/Mms/media(168): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2459)
07-20 09:15:58.364: ERROR/Mms/media(168): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2512)
07-20 09:15:58.364: ERROR/Mms/media(168): at
android.app.ActivityThread.access$2200(ActivityThread.java:119)
07-20 09:15:58.364: ERROR/Mms/media(168): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
07-20 09:15:58.364: ERROR/Mms/media(168): at
android.os.Handler.dispatchMessage(Handler.java:99)
07-20 09:15:58.364: ERROR/Mms/media(168): at
android.os.Looper.loop(Looper.java:123)
07-20 09:15:58.364: ERROR/Mms/m



What to do when - java.io.FileNotFoundException: No content provider??

by DanH » Tue, 20 Jul 2010 20:21:51 GMT


 ell, I can tell you it's looking for the file /sdcard/Video0006.mp4
and not finding it.

On Jul 20, 4:34am, kivy <victoriasarabu...@gmail.com> wrote:

--


Sponsored Links


What to do when - java.io.FileNotFoundException: No content provider??

by Victoria Busse » Tue, 20 Jul 2010 20:40:23 GMT


  was trying to use sendIntent.putExtra(Intent.EXTRA_STREAM,
Uri.fromFile(new File(uri)));

but then I get an eclipse error saying that I should change String vuri =
Uri.parse(videocursor.getString(0)); into an uri because of a type mismatch,
when I do that eclipse says I should change it back into a String...



On Tue, Jul 20, 2010 at 1:21 PM, DanH <danhi...@ieee.org> wrote:

>



What to do when - java.io.FileNotFoundException: No content provider??

by DanH » Tue, 20 Jul 2010 23:57:15 GMT


 ri.parse() returns a Uri.  I'm guessing you misinterpreted the second
message.

On Jul 20, 7:39am, Victoria Busse <victoriasarabu...@gmail.com>
wrote:
> >



What to do when - java.io.FileNotFoundException: No content provider??

by Victoria Busse » Wed, 21 Jul 2010 05:32:31 GMT


 kay, I really have no idea what I have to do:
I tried to create the file:// but nothing I try seems to work... :(((

Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(new
File(videocursor.getString(0))));
sendIntent.setType("video/3gp");
sendIntent.setType("video/mp4");
startActivity(Intent.createChooser(sendIntent, "Email:"));

On Tue, Jul 20, 2010 at 4:56 PM, DanH <danhi...@ieee.org> wrote:

> > >



Other Threads

1. some users getting package not signed correctly

A small percentage of our users are getting a package not signed
correctly error when installing our app that was downloaded from the
Market.  They can't re-download from the Market, so we are having to
get them to download and install it from our site, which works fine.
It seems to happen to maybe 1% of our users, and only for our paid
app, not for the free one (at least that we've heard of, naturally the
paid users are going to contact us more than the free ones).

I'm guessing it's a problem when the download is corrupted for some
reason, but in that case shouldn't the Market let them re-download it
and try again?

Anyone else seeing this?

-- Peter

-- 

2. Doc/howTo/faq Milestone 2.1update1 ROO

Hi suhu2 guru2 dan kuankong2 terhormat.

Maap. Ini pertanyaan newbie.

Sudah 1 minggu saya memiliki motorola milestone, dan sudah bergabung di
berbagai forum dan milis termasuk jeruknipis dan id droid all**oid dll.

Tapiiiii
Ssaya bingung
1. bagaiimana cara nge root miley yg sudah saya update secara official
2. Saya perlu info link or thread tentang bahasa2 yg dipakai. Seperti mod
ini mod itu heheehhe dll deh
3. Kira2 dimana yah saya mendapatkan informasi sebagai newbie sehingga saya
dpt mengerti dan ikut di milis ini?

Trims.... android kill ipun

-- 
"Indonesian Android Community [id-android]" 

3. Emulator's /dev/ttyS0

4. SSL handshake logging in Android

5. space rom di g1 dengan costum rom cm5.0.7

6. Newb: Display URL Image

7. Help: Wireless Tether Nexus