Last active
January 27, 2018 14:26
-
-
Save LiewJunTung/e412fa69000329386e91c8114cbdeda7 to your computer and use it in GitHub Desktop.
Load C++ in Android Activity
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MainActivity extends AppCompatActivity { | |
// Used to load the 'calculator' cpp library on application startup. | |
static { | |
System.loadLibrary("calculator"); | |
} | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment