Java Code Examples for io.vov.vitamio.utils.ContextUtils#getDataDir()
The following examples show how to use
io.vov.vitamio.utils.ContextUtils#getDataDir() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Vitamio.java From video-player with MIT License | 5 votes |
/** * Check if Vitamio is initialized at this device * * @param ctx Android Context * @return true if the Vitamio has been initialized. */ @SuppressLint("NewApi") public static boolean isInitialized(Context ctx) { vitamioPackage = ctx.getPackageName(); vitamioLibraryPath = ctx.getApplicationInfo().nativeLibraryDir + "/"; vitamioDataPath = ContextUtils.getDataDir(ctx) + "lib/"; browserlibraryPath = ctx.getApplicationContext().getDir("libs", Context.MODE_PRIVATE).getPath(); return true; }
Example 2
Source File: Vitamio.java From NetEasyNews with GNU General Public License v3.0 | 5 votes |
/** * Check if Vitamio is initialized at this device * * @param ctx Android Context * @return true if the Vitamio has been initialized. */ @SuppressLint("NewApi") public static boolean isInitialized(Context ctx) { vitamioPackage = ctx.getPackageName(); if(VERSION.SDK_INT > 23) { vitamioLibraryPath = ctx.getApplicationInfo().nativeLibraryDir + "/"; }else{ vitamioLibraryPath = ContextUtils.getDataDir(ctx) + "lib/"; } return true; }
Example 3
Source File: Vitamio.java From MyHearts with Apache License 2.0 | 2 votes |
/** * Check if Vitamio is initialized at this device * * @param ctx Android Context * @return true if the Vitamio has been initialized. */ public static boolean isInitialized(Context ctx) { vitamioPackage = ctx.getPackageName(); vitamioLibraryPath = ContextUtils.getDataDir(ctx) + "lib/"; return true; }
Example 4
Source File: Vitamio.java From HPlayer with Apache License 2.0 | 2 votes |
/** * Check if Vitamio is initialized at this device * * @param ctx Android Context * @return true if the Vitamio has been initialized. */ public static boolean isInitialized(Context ctx) { vitamioPackage = ctx.getPackageName(); vitamioLibraryPath = ContextUtils.getDataDir(ctx) + "lib/"; return true; }