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. How to narrow down the method that is involved in exception from the pid

Hello,

I was getting IllegalStateException caused by the cursor. The logcat
is as follows:
Ljava/lang/IllegalStateException;: Finalizing cursor
android.database.sqlite.sqlitecur...@437c0e60 on null that has not
been deactivated or closed

I/dalvikvm( 585): at
android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596)

I/dalvikvm( 585): at dalvik.system.NativeStart.run(Native Method)

I/dalvikvm( 585): Uncaught exception thrown by finalizer (will be
discarded):

I understand the 585 is PID but I have used many cursor which I have
taken care off properly. But may one among those is giving this
exception. I was unable to narrow down to particular portion in the
code from this exception.

Could anybody help me to know, how could I understand which cursor /
line of code , from the error that I see in the logcat

-- 

2. Is it possible to start an Activity from a non-context class?




It sounds to me like you're giving this utility class a responsibility it
should not have. If it's purpose is to send requests (and report back
errors) then that's all it should do.

I don't know how you've set up your code, but I would expect a main activity
that is responsible for doing the request using the utility class. If that
fails (which the utility class would report), the calling activity would
then launch the login activity to get the details, which you would get back
in onActivityResult, which the main activity would then pass on to the
utility class to try the request again.

Again, I don't know the details of your code, but I don't see why this class
would need to start and get results from an activity.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 

3. Opa

4. Is it possible to start an Activity from a non-context class?

5. Alarm Clock Settings Invocation?

6. Front Camera di Xperia X10

7. Access active window from a background service