Download manager

by davidyu » Mon, 04 May 2009 14:02:30 GMT


Sponsored Links
 I want to access Download manager in my application, and set
   <uses-permission
android:name="android.permission.ACCESS_DOWNLOAD_MANAGER"/>
   <uses-permission
android:name="android.permission.ACCESS_DOWNLOAD_MANAGER_ADVANCED"/>
   <uses-permission
android:name="android.permission.ACCESS_CACHE_FILESYSTEM"/>
   <uses-permission
android:name="android.permission.SEND_DOWNLOAD_COMPLETED_INTENTS"/>

 in manifest.xml

  However, I still get /AndroidRuntime(14300): Caused by:
java.lang.SecurityException: Permission Denial: reading
com.android.providers.downloads.DownloadProvider uri
content://downloads/download from pid=14300, uid=10057 requires
android.permission.ACCESS_DOWNLOAD_MANAGER
E/AndroidRuntime(14300):        at android.os.Parcel.readException
(Parcel.java:1234)
E/AndroidRuntime(14300):        at
android.database.DatabaseUtils.readExceptionFromParcel
(DatabaseUtils.java:145)
E/AndroidRuntime(14300):        at
android.database.DatabaseUtils.readExceptionFromParcel
(DatabaseUtils.java:111)
E/AndroidRuntime(14300):        at
android.content.ContentProviderProxy.bulkQuery
(ContentProviderNative.java:279)
E/AndroidRuntime(14300):        at
android.content.ContentProviderProxy.query(ContentProviderNative.java:
298)
E/AndroidRuntime(14300):        at
android.content.ContentResolver.query(ContentResolver.java:149)
E/AndroidRuntime(14300):        at
android.app.Activity.managedQuery(Activity.java:1499)

is there anything else I should do to access Download Manager?
--~--~---------~--~----~------------~-------~--~----~



Download manager

by ondraz » Fri, 12 Jun 2009 11:45:59 GMT


 Hello,

has anyone tried this? I got exactly the same error as davidyu. My
application has permission android.permission.ACCESS_DOWNLOAD_MANAGER
but download manager does not allow it to read downloads with the
message that android.permission.ACCESS_DOWNLOAD_MANAGER is required.

Ondra



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


Sponsored Links


Download manager

by Hod » Fri, 17 Jul 2009 01:53:32 GMT


 android.permission.ACCESS_DOWNLOAD_MANAGER has protection level
signatureOrSystem.  You can read about that at
 http://developer.android.com/guide/topics/manifest/permission-element.html 

Basically, only applications signed using the same certificate as
Download Manager or installed on the /system partition will be granted
that permission.  Just putting the "uses" clause in your manifest
isn't enough.  To try the /system approach, do

adb remount
adb push <your apk> /system/app

Hod





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



Download manager

by Hod » Fri, 17 Jul 2009 01:53:55 GMT


 android.permission.ACCESS_DOWNLOAD_MANAGER has its protection level
set to signatureOrSystem.  You can read about that at
 http://developer.android.com/guide/topics/manifest/permission-element.html 

Basically, only an application signed with the same certificate as the
Download Manager application, or one installed on the /system
partition can be granted that permission.  Just putting in a "uses"
clause in your manifest isn't enough.  To try the /system route, do

adb remount
adb push <your apk> /system/app

Hod





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



Other Threads

1. Gingerbread update on Nexus One

Today I received on air update message (Gingerbread) to my Nexus One.
It was written that program needs to restart my phone which I
confirmed. But there was no update or any other changes after restart.

Was it a fake message? Is ther already Gingerbread update for Nexus
One? If there is, how can I update and activate?

Thanks in advance.

-- 

2. How To Reduce Camera Resolution?

Hi,

Query the picture sizes the camera supports.
http://developer.android.com/reference/android/hardware/Camera.Parameters.html#getSupportedPictureSizes().
Then set accordingly. If you wish to retain same size but reduce
'resolution' save resulting JPEG with less quailty.

Regards




-- 

3. MapView and large number of Overlay

4. Can we use AbstractCursor to support data changes?

5. NFC default app - thoughts?

6. OOT: Call dari "3"

7. how to get location quickly and How to obtain a position on every launch