I am facing problem with some packages like Javax, when i am trying to import the following packages in my android applications!
Javax.naming.Naming.Exception;
Javax.naming.directory.DirContext;
Javax.naming.directory.InitialDirContext;
private DirContext connectLDAP()
throws NamingException
{
Properties localProperties = new Properties();
localProperties.setProperty("java.naming.factory.initial", LDAP_PROVIDER);
localProperties.setProperty("java.naming.batchsize", "0");
localProperties.setProperty("java.naming.provider.url", this.params.getLdapURL());
localProperties.setProperty("java.naming.factory.url.pkgs", "com.sun.jndi.url");
localProperties.setProperty("java.naming.referral", REFERRALS_IGNORE);
localProperties.setProperty("java.naming.security.authentication", "none");
return new InitialDirContext(localProperties);
}
help me to resolve this problem.