File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.SecurityException: Permission Denial in android

 
rashmi swamy
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
dogan kose
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic