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. ListView onItemClick - I need something more than just the position of the click

I'm getting a call to my AdapterView.OnItemClickListener() when I
touch an item in my ListView.  The ListView (subclass of) is populated from
a String[] data like this:

this.setAdapter(new ArrayAdapter(this.context, 
android.R.layout.simple_list_item_1, data));

Each row in the data holds an individual's first and last name along
with their database ID#.  Here is what I'm getting back from the call:

parent   The AdapterView where the click happened.
view     The view within the AdapterView that was clicked (this will be a view 
provided by the adapter)
position The position of the view in the adapter.
id       The row id of the item that was clicked.

Now, if I keep a representation of the data set somewhere else in an array, then
I could index that array by the position parameter.  I'd like to get the 
information
from the parameters to the event handler though.  Right now, the 'id' param 
mirrors
the position parameter.  Is that something that I can set somewhere?  Otherwise,
it's ugly, but I could glean the information from the text that is displayed in
each row.  How would I do that given the 'parent' or 'view' parameter.

Thanks,

Tobiah

--

2. Software Engineers needed for Mobile Services startup in Mountain View, CA

Senior Level Engineer/Developer
Junior Mid-level engineer
Terms: 6 month contract

At-Tech Staffing is seeking a hands on senior level engineer + junior
developer with extensive coding abilities, who can look at the
architecture as a whole, and document it.  They will be working on a
product that provides customization of content to various mobile
devices and optimizes it to fit their screens.  They are currently
utilizing HP servers.  The project is being constructed in Mountain
View, CA, and budgeted for six months.

Must be able to program in C/C++, HTML, XML, Perl, PHP, on Linux.
Experience working with MySQL, and SQLite.
Must be able to read and modify open source code related to video,
ffmpeg, mplayer, and Live555.
Must have a good understanding of HTTP, RTSP, RTP, RTCP, and UDP
protocols, and experience with streaming over HTTP and RTSP.
Proficient in creating, modifying, understanding video containers,
video codecs, and audio codecs.
Must read existing PHP/Perl code, and modify as needed.
Must know database connectivity and understand scalability aspects
over DB.
Must be able to create/read XML.
Should have a deep knowledge on HTTP request headers, and a good
understanding on Linux.

Expertise in Android OS, Linux and Kernel modification is an added
plus

Pay rate: market rate.


Jennifer Loesch
Technical Recruiter
AT-Tech Staffing
www.at-tech.com
jloe...@at-tech.com

408-448-5353 main line
408-448-5355 fax

http://www.linkedin.com/in/jenniferloesch

-- 
.

3. Text to speech on Tablet

4. What is the name of this widget?

5. why metaData in providerInfo is always null?

6. Loop Mount system.img file of Android emulator

7. Getting the calling application's context