// Path: app/src/main/java/com/bedrock/padder/helper/FileHelper.java
// public static String PROJECT_LOCATION_PRESETS = Environment.getExternalStorageDirectory().getPath() + "/Tapad/presets";


import android.app.Activity;
import android.util.Log;
import android.util.Xml;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import static com.bedrock.padder.helper.FileHelper.PROJECT_LOCATION_PRESETS;
package com.bedrock.padder.model.tutorial;





/* Example from
* https://developer.android.com/training/basics/network-ops/xml.html */

public class TutorialXmlParser {

    String tag;

    Activity activity = null;

    public TutorialXmlParser(String tag, Activity activity) {
        this.activity = activity;
        this.tag = tag;
    }

    // We don't use namespaces
    private static final String ns = null;

    public Tutorial parse() {
        try {
// Path: app/src/main/java/com/bedrock/padder/helper/FileHelper.java
// public static String PROJECT_LOCATION_PRESETS = Environment.getExternalStorageDirectory().getPath() + "/Tapad/presets";


// Path: app/src/main/java/com/bedrock/padder/model/tutorial/TutorialXmlParser.java
import android.app.Activity;
import android.util.Log;
import android.util.Xml;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import static com.bedrock.padder.helper.FileHelper.PROJECT_LOCATION_PRESETS;

package com.bedrock.padder.model.tutorial;





/* Example from
* https://developer.android.com/training/basics/network-ops/xml.html */

public class TutorialXmlParser {

    String tag;

    Activity activity = null;

    public TutorialXmlParser(String tag, Activity activity) {
        this.activity = activity;
        this.tag = tag;
    }

    // We don't use namespaces
    private static final String ns = null;

    public Tutorial parse() {
        try {
            return parse(new FileInputStream(PROJECT_LOCATION_PRESETS + "/" + tag + "/timing/timing.tpt"));