Last active
February 21, 2022 00:02
-
-
Save Morfly/7ccb2c2125080c40ffc52f4694ea313c to your computer and use it in GitHub Desktop.
This file contains 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
package io.morfly.bfa; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.widget.TextView; | |
public class MainActivity extends Activity { | |
// Instaitiate features. | |
MyFeature myFeature = new MyFeature(); | |
MyFeatureWithRes myFeatureWithRes = new MyFeatureWithRes(); | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
TextView textView = findViewById(R.id.textView); | |
// Display info about included features. | |
String appInfo = textView.getText() | |
+ "\n\nIncluded features:\n" | |
+ myFeature.getInfo() | |
+ "\n" | |
+ myFeatureWithRes.getInfo(this); | |
textView.setText(appInfo); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment