Skip to content

Instantly share code, notes, and snippets.

@Morfly
Last active February 21, 2022 00:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Morfly/7ccb2c2125080c40ffc52f4694ea313c to your computer and use it in GitHub Desktop.
Save Morfly/7ccb2c2125080c40ffc52f4694ea313c to your computer and use it in GitHub Desktop.
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