Skip to content

Instantly share code, notes, and snippets.

@Morfly
Last active Feb 21, 2022
Embed
What would you like to do?
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