make function for .class and .dex

This commit is contained in:
Jean-Marie 'Histausse' Mineau 2025-10-30 23:43:24 +01:00
parent 8feefbefe5
commit 1d6ff63406
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2
6 changed files with 91 additions and 24 deletions

View file

@ -0,0 +1,30 @@
package com.example.shadowing;
import android.app.Activity;
import android.os.Bundle;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.util.Log;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
String txt = Main.getValue();
String pkg_name = getApplicationContext().getPackageName();
LinearLayout ll = new LinearLayout(this);
ll.setOrientation(LinearLayout.VERTICAL);
ll.generateViewId();
setContentView(ll);
TextView tw = new TextView(this);
tw.setText(txt);
tw.generateViewId();
ll.addView(tw);
Log.i("SHADOWING", "App: " + pkg_name + ", txt: " + txt);
}
}