Difference between EXTERNAL_CONTENT_URI and INTERNAL_CONTENT_URI?

by kingkung » Fri, 27 Jun 2008 05:42:37 GMT


Sponsored Links
 Trying to store an image to the Image content provider.  Which of the
above should I use to insert an image?  Also, I heard people had
problems with the image content provider... is it (still) broken/non-
functional?

                ContentValues imageValues = new ContentValues();
                imageValues.put(Images.ImageColumns.TITLE, "A Large, Brown
Armadillo");
                Uri uri = _resolver.insert(Images.Media.EXTERNAL_CONTENT_URI,
imageValues);
                OutputStream outStream = _resolver.openOutputStream(uri);
                bitmap.compress(Bitmap.CompressFormat.JPEG, 50, outStream);
                outStream.close();

Thanks,

James



--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. popup menus woes

hi,

i registred [registerForContextMenu()] a child of some Dialog.

i perform long click,
onCreateContextMenu is called and populated with some MenuItems.

then populated popup menu is shown, and then i press some item
but onContextItemSelected is NOT called.

when i registered some other View (not being Dialog's child) the same
code works without any problems.

so can i add pooup menu for some Dialog's child?

skink
--~--~---------~--~----~------------~-------~--~----~

2. IDEA: Android Applications I'd most like to see

These are the apps I'd like to see for the Android - if they were
available, they'd make it a killer product:
*Facebook (similar to the iPhone version, but I would like to chat as
well)

*Windows Media Player (or VLC or something like it, for audio/video
playlist creation, shuffle, streaming audio; ability to fill in
missing id3 tag info via web, and use Zune media maps);
Audio formats: MP3, WMA, AC3, AAC, FLAC, OGG Vorbis, OGG FLAC, Apple
Lossless, True Audio, Monkey Audio, MusePack, WavPack, G.726, and PCM
(minimum: mp3, wma, wav)
Video formats: AVI, WMV, ASF, MP4, MKV, OGM, DAT, MTV, DivX, XviD,
MPEG-4, WMV 9/8/7, H.264, M-JPEG, and MPEG 1 (minimum: avi, mp4, wmv,
mpeg, divx/xvid)
-basically, a more fully featured media player.  The interface is nice
on the included player, but with a few extra features, it'd be an
awesome player.

*Wikipedia Mobile - search English, German, etc. wikipedias in mobile
format
*Powerpoint Viewer - view MS Office 2007 Powerpoint files (better yet,
edit)
*Excel Viewer - view/edit MS Excel 2007 files
*Locale Switcher - switch UI to other languages and date/time format,
currency to other locales
*MAME 32 Emulator - play classic arcade games on the go
*Freecell, Solitaire, Spider Solitaire - card games
*E-Book Reader - view & bookmark *.lit files
*Adobe Acrobat Viewer - view PDF files
*Dictionary/Translation - look up words, spell-check, translate into
other languages.  I used dict.leo.org for Eng<->German, having found
it the most accurate.  Even better if the user can add his own
translations for new languages.
*

--~--~---------~--~----~------------~-------~--~----~

3. Switches in Aapt tool

4. OnApplicationStart ?

5. on press event

6. How firmware update thro OTA works?

7. USB socket