2023-03-06 14:42:04 +01:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
// Copyright The Music Player Daemon Project
|
2014-02-18 08:33:06 +01:00
|
|
|
|
|
|
|
package org.musicpd;
|
|
|
|
|
|
|
|
import android.util.Log;
|
|
|
|
|
|
|
|
public class Loader {
|
2014-07-30 09:57:40 +02:00
|
|
|
private static final String TAG = "MPD";
|
2014-02-18 08:33:06 +01:00
|
|
|
|
2014-07-30 09:57:40 +02:00
|
|
|
public static boolean loaded = false;
|
|
|
|
public static String error;
|
2014-02-18 08:33:06 +01:00
|
|
|
|
2014-07-30 09:57:40 +02:00
|
|
|
static {
|
|
|
|
try {
|
|
|
|
System.loadLibrary("mpd");
|
|
|
|
loaded = true;
|
|
|
|
} catch (UnsatisfiedLinkError e) {
|
|
|
|
Log.e(TAG, e.getMessage());
|
|
|
|
error = e.getMessage();
|
|
|
|
}
|
|
|
|
}
|
2014-02-18 08:33:06 +01:00
|
|
|
}
|