Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Open Source License 

import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;

import java.util.Properties;

import android.content.Context;

public class Main {
    private static Properties loadPropties(Context context, String file) throws IOException {
        Properties properties = new Properties();
        try {
            InputStream fileStream = context.getAssets().open(file);
            properties.load(fileStream);
            fileStream.close();
        } catch (FileNotFoundException e) {
        }
        return properties;
    }
}