• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Application not authorized to access the restricted api

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic