File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Security and the fly likes java.lang.SecurityException: Permission Denial in android Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "java.lang.SecurityException: Permission Denial in android" Watch "java.lang.SecurityException: Permission Denial in android" New topic

java.lang.SecurityException: Permission Denial in android

rashmi swamy

Joined: Oct 05, 2010
Posts: 14
I am trying to disable the application by using following code in android

PackageManager pm = this.getPackageManager();
pm.setComponentEnabledSetting(new ComponentName("com.sasken.remotesample",".Player"),

and with permission in Androimanifest.xml is
<uses-permission android:name="android.permission.CHANGE_COMPONENT_ENABLED_STATE"/>

But it is giving me the exception

java.lang.SecurityException: Permission Denial: attempt to change component state

Please give me the solution
dogan kose

Joined: Aug 01, 2013
Posts: 1
hi man
I have the same problem.
if you solved this problem,you can help me.
[UD: removed email address]
I am waiting for your answer.
I agree. Here's the link:
subject: java.lang.SecurityException: Permission Denial in android
It's not a secret anymore!