Use of non-public API sun.misc.BASE64Encoder;
Use of non-public API sun.misc.BASE64Encoder;
sun.misc.BASE64Encoder is non public API and any Android documentation strongly advises against it use. I'm building and Android App and a need the SFSClient as a static object in the Application object. However init of SFSClient fails with class not found sun.misc.BASE64Encoder; . I the same code is executed in the main Activity everything works like a charm. Any Help?
Further to my post here is the statement from Oracle : http://www.oracle.com/technetwork/java/ ... 42232.html
The issue is that the SFSClient object has to be outside the activity object, as activities are destroyed and recreated if you rotate the device. So far the only place I was able successfully to init SFSClient object is in an activity. Everywhere else I get sun.misc.BASE64Encoder class not found error.
Return to “SFS2X Java / Android API”
Who is online
Users browsing this forum: No registered users and 48 guests