This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes Application not authorized to access the restricted api Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Application not authorized to access the restricted api" Watch "Application not authorized to access the restricted api" New topic
Author

Application not authorized to access the restricted api

chandrap prakash
Greenhorn

Joined: Sep 19, 2008
Posts: 28

Hi,

In my application i am using File Connection API to browse and access a file from the phone memory.The j2me code is

String initDir = System.getProperty("fileconn.dir.photos");

private FileConnection currentRoot = null;

if (initDir != null)
{
try
{
currentRoot = (FileConnection) Connector.open(initDir);

}
catch (Exception e)
{
showAlert("ConnectionNotFound : "+e.getMessage());

}
}


This code works fine in Sony mobiles but throws an exception "Application not authorized to access the restricted api" in Nokia and Motorolla devices.

I am unable to understand this problem.

Thanks & Regards,

Chandra Prakash
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Application not authorized to access the restricted api
 
Similar Threads
java.lang.SecurityException
Send a file to server
ConnectionNotFoundException
Regarding FileConnection ...
"Allow Application to read data In" Block this alert