File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Security and the fly likes java.lang.SecurityException: Permission Denial in android Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » Security
Reply Bookmark "java.lang.SecurityException: Permission Denial in android" Watch "java.lang.SecurityException: Permission Denial in android" New topic
Author

java.lang.SecurityException: Permission Denial in android

rashmi swamy
Greenhorn

Joined: Oct 05, 2010
Posts: 14
Hi,
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"),
PackageManager.COMPONENT_ENABLED_STATE_DEFAULT, PackageManager.DONT_KILL_APP);

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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: java.lang.SecurityException: Permission Denial in android
 
Similar Threads
Bean Managed Entity Bean problem
Bean Managed Entity Bean problem
can't get input stream from internet connection
How to tackle this manager?
How to shut down / reboot android phone from an application?