Example usage for android.content Context getObbDir

List of usage examples for android.content Context getObbDir

Introduction

In this page you can find the example usage for android.content Context getObbDir.

Prototype

public abstract File getObbDir();

Source Link

Document

Return the primary shared/external storage directory where this application's OBB files (if there are any) can be found.

Usage

From source file:Main.java

public static String getAppExternalPath(Context context) {
    /*        StringBuilder sb = new StringBuilder();
     sb.append(Environment.getExternalStorageDirectory().getAbsolutePath());
     sb.append(File.separator);/*from   w  w  w  .  jav a  2  s  .  c  o  m*/
     sb.append("Android/data/");
     sb.append(packageName);
     return sb.toString();*/
    return context.getObbDir().getAbsolutePath();
}