Commit fc983cbb authored by René Nierath's avatar René Nierath

First Commit

Launch of Version 1.10
parents
*.iml
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
/captures
.externalNativeBuild
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<resourceExtensions />
<wildcardResourcePatterns>
<entry name="!?*.java" />
<entry name="!?*.form" />
<entry name="!?*.class" />
<entry name="!?*.groovy" />
<entry name="!?*.scala" />
<entry name="!?*.flex" />
<entry name="!?*.kt" />
<entry name="!?*.clj" />
<entry name="!?*.aj" />
</wildcardResourcePatterns>
<annotationProcessing>
<profile default="true" name="Default" enabled="false">
<processorPath useClasspath="true" />
</profile>
</annotationProcessing>
</component>
</project>
\ No newline at end of file
<component name="CopyrightManager">
<settings default="" />
</component>
\ No newline at end of file
<component name="ProjectDictionaryState">
<dictionary name="Rene" />
</component>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="distributionType" value="DEFAULT_WRAPPED" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />
<option value="$PROJECT_DIR$/app" />
</set>
</option>
<option name="resolveModulePerSourceSet" value="false" />
</GradleProjectSettings>
</option>
</component>
</project>
\ No newline at end of file
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="LoggerInitializedWithForeignClass" enabled="false" level="WARNING" enabled_by_default="false">
<option name="loggerClassName" value="org.apache.log4j.Logger,org.slf4j.LoggerFactory,org.apache.commons.logging.LogFactory,java.util.logging.Logger" />
<option name="loggerFactoryMethodName" value="getLogger,getLogger,getLog,getLogger" />
</inspection_tool>
<inspection_tool class="ResourceType" enabled="false" level="ERROR" enabled_by_default="false" />
<inspection_tool class="SpellCheckingInspection" enabled="false" level="TYPO" enabled_by_default="false">
<option name="processCode" value="true" />
<option name="processLiterals" value="true" />
<option name="processComments" value="true" />
</inspection_tool>
</profile>
</component>
\ No newline at end of file
<component name="InspectionProjectProfileManager">
<settings>
<option name="PROJECT_PROFILE" value="Project Default" />
<option name="USE_PROJECT_PROFILE" value="true" />
<version value="1.0" />
</settings>
</component>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="NullableNotNullManager">
<option name="myDefaultNullable" value="android.support.annotation.Nullable" />
<option name="myDefaultNotNull" value="android.support.annotation.NonNull" />
<option name="myNullables">
<value>
<list size="4">
<item index="0" class="java.lang.String" itemvalue="org.jetbrains.annotations.Nullable" />
<item index="1" class="java.lang.String" itemvalue="javax.annotation.Nullable" />
<item index="2" class="java.lang.String" itemvalue="edu.umd.cs.findbugs.annotations.Nullable" />
<item index="3" class="java.lang.String" itemvalue="android.support.annotation.Nullable" />
</list>
</value>
</option>
<option name="myNotNulls">
<value>
<list size="4">
<item index="0" class="java.lang.String" itemvalue="org.jetbrains.annotations.NotNull" />
<item index="1" class="java.lang.String" itemvalue="javax.annotation.Nonnull" />
<item index="2" class="java.lang.String" itemvalue="edu.umd.cs.findbugs.annotations.NonNull" />
<item index="3" class="java.lang.String" itemvalue="android.support.annotation.NonNull" />
</list>
</value>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">
<option name="id" value="Android" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/Don.iml" filepath="$PROJECT_DIR$/Don.iml" />
<module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RunConfigurationProducerService">
<option name="ignoredProducers">
<set>
<option value="org.jetbrains.plugins.gradle.execution.test.runner.AllInPackageGradleConfigurationProducer" />
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestClassGradleConfigurationProducer" />
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestMethodGradleConfigurationProducer" />
</set>
</option>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion "26.0.2"
defaultConfig {
applicationId "de.HS_Aalen.don"
minSdkVersion 15
targetSdkVersion 26
versionCode 4
versionName "1.10"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions{
disable "ResourceType"
}
}
dependencies {
compile 'com.github.PhilJay:MPAndroidChart:v3.0.1'
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:26.1.0'
testCompile 'junit:junit:4.12'
compile 'com.ms-square:expandableTextView:0.1.4'
}
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in C:\Users\Vladimir\AppData\Local\Android\Sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
package de.HS_Aalen.OptikFormelrechner;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumentation test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() throws Exception {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();
assertEquals("de.HS_Aalen.don", appContext.getPackageName());
}
}
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="de.HS_Aalen.OptikFormelrechner">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name="de.HS_Aalen.OptikFormelrechner.MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="de.HS_Aalen.OptikFormelrechner.Raytracing_Start"></activity>
<activity android:name="de.HS_Aalen.OptikFormelrechner.Raytracing_Berechnung"></activity>
<activity android:name="de.HS_Aalen.OptikFormelrechner.Exaktes_Raytracing_Start"></activity>
<activity android:name="de.HS_Aalen.OptikFormelrechner.Exaktes_Raytracing_Berechnung"></activity>
<activity android:name="de.HS_Aalen.OptikFormelrechner.Powervektoren"></activity>
<activity android:name="de.HS_Aalen.OptikFormelrechner.Schott"></activity>
<activity android:name="de.HS_Aalen.OptikFormelrechner.Shape"></activity>
<activity android:name="de.HS_Aalen.OptikFormelrechner.Glasberechnung"></activity>
<activity android:name="de.HS_Aalen.OptikFormelrechner.Transmission_Start"></activity>
<activity android:name="de.HS_Aalen.OptikFormelrechner.Transmission_Berechnung"></activity>
<activity android:name="de.HS_Aalen.OptikFormelrechner.HSA_Umrechner"></activity>
<activity android:name="de.HS_Aalen.OptikFormelrechner.Info"></activity>
</application>
</manifest>
\ No newline at end of file
package de.HS_Aalen.OptikFormelrechner;
import android.app.ActionBar.LayoutParams;
import android.content.Context;
import android.os.Bundle;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.text.Html;
import android.text.InputType;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.View;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.ScrollView;
import android.widget.TextView;
import static android.util.TypedValue.COMPLEX_UNIT_DIP;
public class Exaktes_Raytracing_Berechnung extends AppCompatActivity {
final Context context = this;
EditText B1, B1_1, B2,B3,B4,B5,Z1,Z2,Z3,Z4,VN1,VNM1;
TextView Ausgabe, Ausgabe_zwischenergebnisse;
double S,S_1,S_2,N1,N2,N5,R1,D1,S1,S2,A,B,C,D2,f_1,D,f,E,Z_R1,Z_N1,Z_N2,Z_D,Z_S_1,Z_B,Z_A,sH,
sH_1,knoten,knoten_1,Vgr,Vgr_T,Vgr_W,Vgr_N1,Vgr_Nm1,D_Ges;
double SinE1, SinE1_1, U1_1, Y;
int zwischenspeicher;
String formation;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.exaktes_raytracing_berechnung);
// Empfängt die gesendeten Inhalte aus der Bundle Funktion
Bundle zielkorb = getIntent().getExtras();
String text2 = zielkorb.getString("datenpaket3");
final int fn = Integer.parseInt(text2);
// Verhindert das Öffnen des Tastaturlayouts beim Starten der Activity
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
ScrollView sv = new ScrollView(this);
LinearLayout ll = new LinearLayout(this);
ll.setOrientation(LinearLayout.VERTICAL);
final LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(
LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
params.setMargins(200,0,0,0);
sv.addView(ll);
int k = 1;
// Erstellt an dieser Stelle die TextView und EditText Elemente die zur Eingabe benötigt
// werden und weißt jedem Element eine eigene ID zu
for (int i = 0; i < fn; i++) {
TextView tV0 = new TextView(this);
tV0.setPadding(20,0,0,0);
tV0.setLines(3);
tV0.setGravity(Gravity.CENTER_VERTICAL);
tV0.setTextSize(TypedValue.COMPLEX_UNIT_DIP, 20);
TextView tVa = new TextView(this);
tVa.setPadding(100,0,0,5);
TextView tVa2 = new TextView(this);
tVa2.setPadding(100,0,0,5);
TextView tVb = new TextView(this);
tVb.setPadding(100,0,0,5);
TextView tVc = new TextView(this);
tVc.setPadding(100,0,0,5);
TextView tVd = new TextView(this);
tVd.setPadding(100,0,0,5);
TextView tVe = new TextView(this);
tVe.setPadding(100,0,0,5);
TextView tVf = new TextView(this);
tVf.setLines(3);
tVf.setPadding(20,0,0,0);
tVf.setGravity(Gravity.CENTER_VERTICAL);
tVf.setTextSize(TypedValue.COMPLEX_UNIT_DIP, 20);
EditText et1 = new EditText(this);
et1.setLayoutParams(params);
et1.setPadding(20,0,20,20);
et1.setEms(4);
et1.setGravity(Gravity.CENTER_HORIZONTAL | Gravity.CENTER_VERTICAL);
et1.setInputType(InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_FLAG_SIGNED |
InputType.TYPE_NUMBER_FLAG_DECIMAL);
et1.setId(k);
k = k + 1;
EditText et1_1 = new EditText(this);
et1_1.setLayoutParams(params);
et1_1.setPadding(20,0,20,20);
et1_1.setEms(4);
et1_1.setGravity(Gravity.CENTER_HORIZONTAL | Gravity.CENTER_VERTICAL);
et1_1.setInputType(InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_FLAG_SIGNED |
InputType.TYPE_NUMBER_FLAG_DECIMAL);
et1_1.setId(k);
k = k + 1;
EditText et2 = new EditText(this);
et2.setLayoutParams(params);
et2.setPadding(20,0,20,20);
et2.setEms(4);
et2.setGravity(Gravity.CENTER_HORIZONTAL | Gravity.CENTER_VERTICAL);
et2.setInputType(InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_FLAG_DECIMAL);
et2.setId(k);
k = k + 1;
EditText et3 = new EditText(this);
et3.setLayoutParams(params);
et3.setPadding(20,0,20,20);
et3.setEms(4);
et3.setGravity(Gravity.CENTER_HORIZONTAL | Gravity.CENTER_VERTICAL);
et3.setInputType(InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_FLAG_DECIMAL);
et3.setId(k);
k = k + 1;
EditText et4 = new EditText(this);
et4.setLayoutParams(params);
et4.setPadding(20,0,20,20);
et4.setEms(4);
et4.setGravity(Gravity.CENTER_HORIZONTAL | Gravity.CENTER_VERTICAL);
et4.setInputType(InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_FLAG_SIGNED |
InputType.TYPE_NUMBER_FLAG_DECIMAL);
et4.setId(k);
k = k + 1;
EditText et5 = new EditText(this);
et5.setLayoutParams(params);
et5.setPadding(20,0,20,20);
et5.setEms(4);
et5.setGravity(Gravity.CENTER_HORIZONTAL | Gravity.CENTER_VERTICAL);
et5.setInputType(InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_FLAG_DECIMAL);
et5.setId(k);
k = k + 1;
tV0.setText("Fläche: " + (i + 1));
// Benötigt vor der ersten Fläche die Felder für den Objektabstand s, den Brechungsindex
// n und den Winkel u des einfallenden Lichtstrahls
if (i == 0) {
tVa.setText(Html.fromHtml("s" + "<sub><small>" + (i + 1) + "</small></sub> [mm]"));
tVa2.setText(Html.fromHtml("u" + "<sub><small>" + (i + 1) + "</small></sub> [°]"));
tVb.setText(Html.fromHtml("n" + "<sub><small>" + (i + 1) + "</small></sub>"));
}
tVc.setText(Html.fromHtml("n" + "<sub><small>" + (i + 2) + "</small></sub>"));
tVd.setText(Html.fromHtml("r" + "<sub><small>" + (i + 1) + "</small></sub> [mm]"));
tVe.setText(Html.fromHtml("d" + "<sub><small>" + (i + 1) + "</small></sub> [mm]"));
tVf.setText("Abstand zwischen Fläche " + (i+1) + " & " + (i+2));
ll.addView(tV0);
if (i == 0) {
ll.addView(tVa);
ll.addView(et1);
ll.addView(tVa2);
ll.addView(et1_1);
ll.addView(tVb);
ll.addView(et2);
}
ll.addView(tVc);
ll.addView(et3);
ll.addView(tVd);
ll.addView(et4);
//Lässt das Eingabefeld und die Beschreibung für den Abstand zwischen den Flächen "d"
// nach der letzten Fläche weg
if (i < fn - 1) {
ll.addView(tVf);
ll.addView(tVe);
ll.addView(et5);
}
}
Button bt = new Button(this);
bt.setText("Berechnen");
bt.setAllCaps(false);
ll.addView(bt);
//Erstellt das das finale TextView in der das Ergebnis anschließend dargestellt wird
final TextView tv = new TextView(this);
tv.setText("");
tv.setId(0);
tv.setVisibility(View.GONE);
tv.setWidth(200);
tv.setTextSize(COMPLEX_UNIT_DIP, 20);
tv.setPadding(100,50,0,50);
ll.addView(tv);
//Erstellt das TextView in der die Zwischenergebnisse fargestellt werden
final TextView zwischenergebnisse = new TextView(this);
zwischenspeicher = fn*6+1;
zwischenergebnisse.setId(zwischenspeicher);
zwischenergebnisse.setMaxLines(fn*3-2);
zwischenergebnisse.setPadding(15,0,0,15);
zwischenergebnisse.setVisibility(View.GONE);
zwischenergebnisse.setTextSize(COMPLEX_UNIT_DIP, 17);
ll.addView(zwischenergebnisse);
this.setContentView(sv);
bt.setOnClickListener (new View.OnClickListener() {
public void onClick(View v) {
int j = 1;
int absolut = 1;
tv.setVisibility(View.VISIBLE);
f_1 = 1;
if (fn > 1) {
zwischenergebnisse.setVisibility(View.VISIBLE);
if (fn == 2) {
formation = "Zwischenergebnis: <br>";
} else {
formation = "Zwischenergebnisse: <br>";
}
}
// Berechnung wird für die Anzahl "fn" der Flächen durchgeführt
for ( int k = 0; k < fn; k++) {
// Für die erste Fläche wird zusätzlich der Objektabstand s mit eingelesen
if (k == 0) {
//Abfrage ob das Eingabegeld leer ist mit Warnhinweis
B1 = (EditText) findViewById(j);
String Alarm = B1.getText().toString();
if (Alarm.equals("") || Alarm.equals(".") || Alarm.equals("-") ||
Alarm.equals("+")) {
AlertDialog.Builder AlarmBox = new AlertDialog.Builder(context);
AlarmBox.setTitle("Leeres Feld!");
AlarmBox.setMessage(Html.fromHtml("s<sub><small>1</small></sub> " +
"ist leer<br>"));
AlarmBox.setNeutralButton("OK", null);
AlertDialog dialog = AlarmBox.create();
dialog.show();
tv.setVisibility(View.GONE);
zwischenergebnisse.setVisibility(View.GONE);
return;
}
double S1 = Double.parseDouble(B1.getText().toString());
j = j + 1;
B1_1= (EditText) findViewById(j);
Alarm = B1_1.getText().toString();
if (Alarm.equals("") || Alarm.equals(".") || Alarm.equals("-") ||
Alarm.equals("+")) {
AlertDialog.Builder AlarmBox = new AlertDialog.Builder(context);
AlarmBox.setTitle("Leeres Feld!");
AlarmBox.setMessage(Html.fromHtml("u<sub><small>1</small></sub> " +
"ist leer<br>"));
AlarmBox.setNeutralButton("OK", null);
AlertDialog dialog = AlarmBox.create();
dialog.show();
tv.setVisibility(View.GONE);
zwischenergebnisse.setVisibility(View.GONE);
return;
}
double U1 = Double.parseDouble(B1_1.getText().toString());
j = j + 1;
B2 = (EditText) findViewById(j);
Alarm = B2.getText().toString();
if (Alarm.equals("") || Alarm.equals(".") || Alarm.equals("-") ||
Alarm.equals("+")) {
AlertDialog.Builder AlarmBox = new AlertDialog.Builder(context);
AlarmBox.setTitle("Leeres Feld!");
AlarmBox.setMessage(Html.fromHtml("n<sub><small>1</small></sub> " +
"ist leer<br>"));
AlarmBox.setNeutralButton("OK", null);
AlertDialog dialog = AlarmBox.create();
dialog.show();
tv.setVisibility(View.GONE);
zwischenergebnisse.setVisibility(View.GONE);
return;
}
double N1 = Double.parseDouble(B2.getText().toString());
j = j + 1;
B3 = (EditText) findViewById(j);
Alarm = B3.getText().toString();
if (Alarm.equals("") || Alarm.equals(".") || Alarm.equals("-") ||
Alarm.equals("+")) {
AlertDialog.Builder AlarmBox = new AlertDialog.Builder(context);
AlarmBox.setTitle("Leeres Feld!");
AlarmBox.setMessage(Html.fromHtml("n<sub><small>2</small></sub> " +
"ist leer<br>"));
AlarmBox.setNeutralButton("OK", null);
AlertDialog dialog = AlarmBox.create();
dialog.show();
tv.setVisibility(View.GONE);
zwischenergebnisse.setVisibility(View.GONE);
return;
}
double N2 = Double.parseDouble(B3.getText().toString());
j = j + 1;
B4 = (EditText) findViewById(j);
Alarm = B4.getText().toString();
if (Alarm.equals("") || Alarm.equals(".") || Alarm.equals("-") ||
Alarm.equals("+")) {
AlertDialog.Builder AlarmBox = new AlertDialog.Builder(context);
AlarmBox.setTitle("Leeres Feld!");
AlarmBox.setMessage(Html.fromHtml("r<sub><small>1</small></sub> " +
"ist leer<br>"));
AlarmBox.setNeutralButton("OK", null);
AlertDialog dialog = AlarmBox.create();
dialog.show();
tv.setVisibility(View.GONE);
zwischenergebnisse.setVisibility(View.GONE);
return;
}
double R1 = Double.parseDouble(B4.getText().toString());
j = j + 1;
// So lange noch nicht die letzte Fläche erreicht wurde, wird der
// Abstand zwischen den Flächen "d" eingelesen
if (k < fn - 1) {
B5 = (EditText) findViewById(j);
Alarm = B5.getText().toString();
if (Alarm.equals("") || Alarm.equals(".") || Alarm.equals("-") ||
Alarm.equals("+")) {
AlertDialog.Builder AlarmBox = new AlertDialog.Builder(context);
AlarmBox.setTitle("Leeres Feld!");
AlarmBox.setMessage(Html.fromHtml("d<sub><small>1</small>" +
"</sub> ist leer<br>"));
AlarmBox.setNeutralButton("OK", null);
AlertDialog dialog = AlarmBox.create();
dialog.show();
tv.setVisibility(View.GONE);
zwischenergebnisse.setVisibility(View.GONE);
return;
}
double D1 = Double.parseDouble(B5.getText().toString());
j = j + 1;
}
SinE1 = ((S1 / R1) - 1) * Math.sin(Math.toRadians(U1));
SinE1_1 = (N1/N2) * SinE1;
U1_1 = U1 + Math.toDegrees(Math.asin(SinE1)) -
Math.toDegrees(Math.asin(SinE1_1));
S_1 = R1 * (1 + (SinE1_1/Math.sin(Math.toRadians(U1_1))));
B = N2;
Vgr = (S_1)/S1;
} else {
j = j + 3;
B3 = (EditText) findViewById(j);
String Alarm = B3.getText().toString();
if(Alarm.equals("") || Alarm.equals(".") || Alarm.equals("-") ||
Alarm.equals("+")) {
AlertDialog.Builder AlarmBox = new AlertDialog.Builder(context);
AlarmBox.setTitle("Leeres Feld!");
AlarmBox.setMessage(Html.fromHtml("n<sub><small>" + (k+2) +
"</small></sub> ist leer<br>"));
AlarmBox.setNeutralButton("OK", null);
AlertDialog dialog = AlarmBox.create();
dialog.show();
tv.setVisibility(View.GONE);
zwischenergebnisse.setVisibility(View.GONE);
return;
}
double N2 = Double.parseDouble(B3.getText().toString());