Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QtNativeLibrariesDir.java
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// Copyright (C) 2012 BogDan Vatra <bogdan@kde.org>
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5package org.qtproject.qt.android;
6
7import android.content.Context;
8import android.content.pm.ApplicationInfo;
9import android.content.pm.PackageManager.NameNotFoundException;
10
12 public static final String systemLibrariesDir = "/system/lib/";
13 public static String nativeLibrariesDir(Context context)
14 {
15 String m_nativeLibraryDir = null;
16 try {
17 ApplicationInfo ai = context.getPackageManager().getApplicationInfo(context.getPackageName(), 0);
18 m_nativeLibraryDir = ai.nativeLibraryDir + "/";
19 } catch (NameNotFoundException e) {
20 e.printStackTrace();
21 }
22 return m_nativeLibraryDir;
23 }
24}
double e
static void * context