aboutsummaryrefslogtreecommitdiff
path: root/runners/gradle-integration-tests/testData/androidMultiFlavourApp/app/src/main/java
diff options
context:
space:
mode:
authorKamil Doległo <kamilok1965@interia.pl>2020-01-17 15:01:18 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-01-20 08:34:33 +0100
commit4417ab37e0e16663bde81efd5207c0e1929b881a (patch)
tree883e76b7a33d8ece6c8a8c8756be61c5ab5d6c88 /runners/gradle-integration-tests/testData/androidMultiFlavourApp/app/src/main/java
parent0e125fce5c09b1a0a8413d2e6be443e29d4ebebe (diff)
downloaddokka-4417ab37e0e16663bde81efd5207c0e1929b881a.tar.gz
dokka-4417ab37e0e16663bde81efd5207c0e1929b881a.tar.bz2
dokka-4417ab37e0e16663bde81efd5207c0e1929b881a.zip
Move the Gradle integration tests back to `:runners`
Diffstat (limited to 'runners/gradle-integration-tests/testData/androidMultiFlavourApp/app/src/main/java')
-rw-r--r--runners/gradle-integration-tests/testData/androidMultiFlavourApp/app/src/main/java/org/example/kotlin/mixed/JavaActivity.java34
1 files changed, 34 insertions, 0 deletions
diff --git a/runners/gradle-integration-tests/testData/androidMultiFlavourApp/app/src/main/java/org/example/kotlin/mixed/JavaActivity.java b/runners/gradle-integration-tests/testData/androidMultiFlavourApp/app/src/main/java/org/example/kotlin/mixed/JavaActivity.java
new file mode 100644
index 00000000..3668c594
--- /dev/null
+++ b/runners/gradle-integration-tests/testData/androidMultiFlavourApp/app/src/main/java/org/example/kotlin/mixed/JavaActivity.java
@@ -0,0 +1,34 @@
+package org.example.kotlin.mixed;
+
+import android.content.Intent;
+import android.os.Bundle;
+import android.app.Activity;
+import android.view.Menu;
+import android.view.View;
+import android.widget.Button;
+
+public class JavaActivity extends Activity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_main);
+
+ Button next = (Button) findViewById(R.id.Button01);
+ next.setOnClickListener(new View.OnClickListener() {
+ public void onClick(View view) {
+ Intent myIntent = new Intent(view.getContext(), KotlinActivity.class);
+ startActivityForResult(myIntent, 0);
+ }
+ });
+ }
+
+
+ @Override
+ public boolean onCreateOptionsMenu(Menu menu) {
+ // Inflate the menu; this adds items to the action bar if it is present.
+ getMenuInflater().inflate(R.menu.main, menu);
+ return true;
+ }
+
+}