Bitcoin Core  21.99.0
P2P Digital Currency
BitcoinQtActivity.java
Go to the documentation of this file.
1 package org.bitcoincore.qt;
2 
3 import android.os.Bundle;
4 import android.system.ErrnoException;
5 import android.system.Os;
6 
7 import org.qtproject.qt5.android.bindings.QtActivity;
8 
9 import java.io.File;
10 
11 public class BitcoinQtActivity extends QtActivity
12 {
13  @Override
14  public void onCreate(Bundle savedInstanceState)
15  {
16  final File bitcoinDir = new File(getFilesDir().getAbsolutePath() + "/.bitcoin");
17  if (!bitcoinDir.exists()) {
18  bitcoinDir.mkdir();
19  }
20 
21  try {
22  Os.setenv("QT_QPA_PLATFORM", "android", true);
23  } catch (ErrnoException e) {
24  e.printStackTrace();
25  }
26 
27  super.onCreate(savedInstanceState);
28  }
29 }
org.bitcoincore.qt.BitcoinQtActivity.onCreate
void onCreate(Bundle savedInstanceState)
Definition: BitcoinQtActivity.java:14
org
org.bitcoincore.qt.BitcoinQtActivity
Definition: BitcoinQtActivity.java:11