does media provider have private media file?

by jj » Thu, 30 Apr 2009 16:46:38 GMT

Sponsored Links
 hello folk

system media provider is global db, anybody can access file from it
and delete too,
i want add image in it, with private mode,

"public static final String  insertImage(ContentResolver cr, Bitmap
source, String title, String description) "

 is it possible, to have private media file in media provider, so that
nobody can change it or delete it. since in above API function there
is no such provision to keep media file in private mode.

thank you

Other Threads

1. Home Screen Customization problem

Hi all,

I am trying to customize the Android HomeScreen by adding some TextView &
some other Views on it. the Problem is i m not able to do it.

I tried some thing but ended up it for all the home screens. what i want is
to put the different things(views) on different HomeScreens.

How is it possible??

anybody knows how to do it?

please suggest..



2. Causing onMeasure() to be called for an EditView

I've got a ported application that doesn't use Android UI (our list
screens and touch screens).
We a FrameLayout that contains two children a View (that we use to
paint on our UI) and an EditText which is usually invisible until we
have a test field that we want to use in our own UI.

To have our UI test field aligned with the android one, once the user
press on our list item we set the layout params to set it to the right
x and y (using margins) and the width and height, and request focus
for the EditText item.

This works great, however when resizing we always get the EditText
with the previous screen's orientation's LayoutParams.

A short test shows the reason: the layout calls onMeasure on itse;f
and the children, only then does onResize is called on the View which
resizs the list item we have in our UI, and only then the layout
params is being assigned to the EditText. Of course it already to late
as onMEasure was called already.

What i need is for the onMeasure() of he textEdit to be called once
the onSizedChanged() has finished.

How can i do that ?
I can create an ugly hack that if in the onLayout of the FramLayout
the EditText's dimensions are not like the measured ones the call on
setMeasuredDimension(int, int) to set the size i want.
This is a pretty ugly hack though and can cause a lot of instability,
so i'll appreciate other suggestions :-\

requestLayout() in the onSizeChanged() didn't help as well (tried in
the sizeChanged of the view, the layout and the EditText).


3. trying to show a progressdialog in a lengthy task

4. Intent filters + prevent creation of multiple activity instances?

5. how much time we have at onPause until we are killed?

6. how much time we have at onPause until we are killed?

7. how much time we have at onPause until we are killed?