mirror of
https://github.com/QM4RS/FridaBox.git
synced 2026-10-28 17:52:47 +01:00
Add floating log output menu and fix several issues
This commit is contained in:
@@ -10,8 +10,8 @@ android {
|
||||
applicationId "com.qm4rs.fridabox.sample"
|
||||
minSdk rootProject.ext.minSdk
|
||||
targetSdk rootProject.ext.targetSdkVersion
|
||||
versionCode 1
|
||||
versionName "1.0"
|
||||
versionCode 2
|
||||
versionName "1.1"
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
|
||||
@@ -3,6 +3,7 @@ package com.qm4rs.fridabox.sample;
|
||||
import android.app.Activity;
|
||||
import android.os.Bundle;
|
||||
import android.view.Gravity;
|
||||
import android.view.View;
|
||||
import android.widget.Button;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
@@ -16,7 +17,12 @@ public final class MainActivity extends Activity {
|
||||
output.setText("Press the button to call Target.add(2, 3)");
|
||||
Button button = new Button(this);
|
||||
button.setText("Call Target.add(2, 3)");
|
||||
button.setOnClickListener(view -> output.setText("Result: " + Target.add(2, 3)));
|
||||
button.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
output.setText("Result: " + Target.add(2, 3));
|
||||
}
|
||||
});
|
||||
LinearLayout root = new LinearLayout(this);
|
||||
root.setOrientation(LinearLayout.VERTICAL);
|
||||
root.setGravity(Gravity.CENTER);
|
||||
|
||||
Reference in New Issue
Block a user