Avoid using of methods of libraries not available in android ports