Text für IP Eingabe verändert
Aufruf eines Editors eingebunden
This commit is contained in:
parent
91fd87bf9c
commit
3e65d83ede
@ -3,6 +3,7 @@ package com.example.aped;
|
||||
import android.Manifest;
|
||||
import android.app.AlertDialog;
|
||||
import android.content.DialogInterface;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.util.Log;
|
||||
import android.view.MenuItem;
|
||||
@ -107,7 +108,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
Toast.LENGTH_SHORT).show();
|
||||
MaterialAlertDialogBuilder alert = new MaterialAlertDialogBuilder(MainActivity.this);
|
||||
alert.setTitle(R.string.action_set_IP);
|
||||
alert.setMessage("Please enter the IP address");
|
||||
alert.setMessage("Please enter the ip address of the device to be connected");
|
||||
final EditText input = new EditText(MainActivity.this);
|
||||
input.setText(ip);
|
||||
LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(
|
||||
@ -138,6 +139,15 @@ public class MainActivity extends AppCompatActivity {
|
||||
case R.id.action_adjust_xml:
|
||||
Toast.makeText(this, "Adjust .xml",
|
||||
Toast.LENGTH_SHORT).show();
|
||||
Intent intent = new Intent(Intent.ACTION_SEND);
|
||||
String shareBody = "gegen xml für den PI ersetzen";
|
||||
intent.setType("text/platin");
|
||||
intent.putExtra(intent.EXTRA_TEXT, shareBody);
|
||||
startActivity(intent);
|
||||
/**
|
||||
* xml anstatt beispieltext muss übergeben werden
|
||||
* rückgabe der xml fehlt noch
|
||||
*/
|
||||
break;
|
||||
|
||||
case R.id.action_download_xml:
|
||||
|
Loading…
x
Reference in New Issue
Block a user