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. (WTA) Maksain EVDO

Buat bro, bos, suhu semua....
Gimana sih cara set phone cdma injec tetap di evdo atau 3G, enggak berubah
ke 2000 1x kalo didaerah yg sinyalnya kurang. seperti di modem atau gsm
gitu? Apa diset sewaktu injec? Mohon sharingnya...
Terima kasih....

-- 
===============

2. Game android HD

Bro...ane mau nawarin game2 HD buat HTC desire dan Motorola DEFY

Daripada capek donlot mending terima jadi ajah...

Untuk info lebih lanjut bisa contact ane di 08111880663

-- 
===============

3. Best way to start a frame animation in an adapter

4. HELP: Take video captures of your screen

5. [WTInfo] Official Froyo Update for Milestone is now available!

6. tanya x10

7. VPN L2TP connected error