com.brogent.development.tool
Class ResCombineManager

java.lang.Object
  extended by com.brogent.development.tool.ResCombineManager

public class ResCombineManager
extends java.lang.Object

Author:
Andrew, Welly

Method Summary
 void destroy()
           
static ResCombineManager getInstance()
          getter method of the singleton ResCombineManager
static ResCombineManager initCombineInstantce(Context c, Resources res, int resId)
          Init the singleton ResCombineManager by context, package resource and the split resource file id, and return the manager.
 void selectBglResourceFile(java.lang.String fileName)
          if the file represented by fileName does not exist, this combines the file from split files, then select the file by MiniBGLLibrary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

initCombineInstantce

public static ResCombineManager initCombineInstantce(Context c,
                                                     Resources res,
                                                     int resId)
Init the singleton ResCombineManager by context, package resource and the split resource file id, and return the manager. The package resource does not need to be the same by context.getResources(), one can access other packages resources.

Parameters:
c - application context
res - package resource
resId - resource id of the split config xml file
Returns:
the singleton ResCombineManager
See Also:
ResCombineManager

getInstance

public static ResCombineManager getInstance()
getter method of the singleton ResCombineManager

Returns:
the singleton ResCombineManager

selectBglResourceFile

public void selectBglResourceFile(java.lang.String fileName)
if the file represented by fileName does not exist, this combines the file from split files, then select the file by MiniBGLLibrary

Parameters:
fileName - the B3Z file, file name only, contains no path
See Also:
MiniBgl

destroy

public void destroy()