PhoneCallTrigger
This commit is contained in:
parent
c926c85dd0
commit
9a7f66fa22
@ -142,7 +142,7 @@
|
|||||||
<activity android:name=".ActivityManageActionPlaySound" />
|
<activity android:name=".ActivityManageActionPlaySound" />
|
||||||
<activity android:name=".ActivityManageTriggerTimeFrame" />
|
<activity android:name=".ActivityManageTriggerTimeFrame" />
|
||||||
<activity android:name=".ActivityMaintenance" />
|
<activity android:name=".ActivityMaintenance" />
|
||||||
<activity android:name=".ActivityTriggerPhoneCall" />
|
<activity android:name=".ActivityManageTriggerPhoneCall" />
|
||||||
<activity android:name=".ActivityManageActionBrightnessSetting" />
|
<activity android:name=".ActivityManageActionBrightnessSetting" />
|
||||||
<activity android:name=".ActivityHelp" />
|
<activity android:name=".ActivityHelp" />
|
||||||
<activity
|
<activity
|
||||||
|
@ -140,7 +140,7 @@
|
|||||||
<activity android:name=".ActivityManageActionPlaySound" />
|
<activity android:name=".ActivityManageActionPlaySound" />
|
||||||
<activity android:name=".ActivityManageTriggerTimeFrame" />
|
<activity android:name=".ActivityManageTriggerTimeFrame" />
|
||||||
<activity android:name=".ActivityMaintenance" />
|
<activity android:name=".ActivityMaintenance" />
|
||||||
<activity android:name=".ActivityTriggerPhoneCall" />
|
<activity android:name=".ActivityManageTriggerPhoneCall" />
|
||||||
<activity android:name=".ActivityManageActionBrightnessSetting" />
|
<activity android:name=".ActivityManageActionBrightnessSetting" />
|
||||||
<activity android:name=".ActivityHelp" />
|
<activity android:name=".ActivityHelp" />
|
||||||
<activity
|
<activity
|
||||||
|
@ -134,7 +134,7 @@
|
|||||||
<activity android:name=".ActivityManageActionPlaySound" />
|
<activity android:name=".ActivityManageActionPlaySound" />
|
||||||
<activity android:name=".ActivityManageTriggerTimeFrame" />
|
<activity android:name=".ActivityManageTriggerTimeFrame" />
|
||||||
<activity android:name=".ActivityMaintenance" />
|
<activity android:name=".ActivityMaintenance" />
|
||||||
<activity android:name=".ActivityTriggerPhoneCall" />
|
<activity android:name=".ActivityManageTriggerPhoneCall" />
|
||||||
<activity android:name=".ActivityManageActionBrightnessSetting" />
|
<activity android:name=".ActivityManageActionBrightnessSetting" />
|
||||||
<activity android:name=".ActivityHelp" />
|
<activity android:name=".ActivityHelp" />
|
||||||
<activity
|
<activity
|
||||||
|
@ -51,6 +51,7 @@ public class Actions
|
|||||||
{
|
{
|
||||||
public static AutomationService autoMationServerRef;
|
public static AutomationService autoMationServerRef;
|
||||||
public static Context context;
|
public static Context context;
|
||||||
|
public static Context rootetcontext;
|
||||||
private static Intent playMusicIntent;
|
private static Intent playMusicIntent;
|
||||||
private static boolean suAvailable = false;
|
private static boolean suAvailable = false;
|
||||||
private static String suVersion = null;
|
private static String suVersion = null;
|
||||||
|
@ -99,6 +99,8 @@ public class ActivityManageRule extends Activity
|
|||||||
final static int requestCodeTriggerNfcNotificationEdit = 8001;
|
final static int requestCodeTriggerNfcNotificationEdit = 8001;
|
||||||
final static int requestCodeActionPlaySoundAdd = 501;
|
final static int requestCodeActionPlaySoundAdd = 501;
|
||||||
final static int requestCodeActionPlaySoundEdit = 502;
|
final static int requestCodeActionPlaySoundEdit = 502;
|
||||||
|
final static int requestCodeTriggerPhoneCallAdd = 601;
|
||||||
|
final static int requestCodeTriggerPhoneCallEdit = 602;
|
||||||
|
|
||||||
public static ActivityManageRule getInstance()
|
public static ActivityManageRule getInstance()
|
||||||
{
|
{
|
||||||
@ -567,7 +569,13 @@ public class ActivityManageRule extends Activity
|
|||||||
else if(triggerType == Trigger_Enum.roaming)
|
else if(triggerType == Trigger_Enum.roaming)
|
||||||
booleanChoices = new String[]{getResources().getString(R.string.activated), getResources().getString(R.string.deactivated)};
|
booleanChoices = new String[]{getResources().getString(R.string.activated), getResources().getString(R.string.deactivated)};
|
||||||
else if(triggerType == Trigger_Enum.phoneCall)
|
else if(triggerType == Trigger_Enum.phoneCall)
|
||||||
booleanChoices = new String[]{getResources().getString(R.string.started), getResources().getString(R.string.stopped)};
|
{
|
||||||
|
newTrigger.setTriggerType(Trigger_Enum.phoneCall);
|
||||||
|
Intent phoneTriggerEditor = new Intent(myContext, ActivityManageTriggerPhoneCall.class);
|
||||||
|
startActivityForResult(phoneTriggerEditor, requestCodeTriggerPhoneCallAdd);
|
||||||
|
return;
|
||||||
|
// booleanChoices = new String[]{getResources().getString(R.string.started), getResources().getString(R.string.stopped)};
|
||||||
|
}
|
||||||
else if(triggerType == Trigger_Enum.activityDetection)
|
else if(triggerType == Trigger_Enum.activityDetection)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
@ -1170,7 +1178,6 @@ public class ActivityManageRule extends Activity
|
|||||||
//add notification
|
//add notification
|
||||||
if(resultCode == RESULT_OK)
|
if(resultCode == RESULT_OK)
|
||||||
{
|
{
|
||||||
//newTrigger.setNfcTagId(ActivityManageNfc.generatedId);
|
|
||||||
ruleToEdit.getTriggerSet().add(newTrigger);
|
ruleToEdit.getTriggerSet().add(newTrigger);
|
||||||
|
|
||||||
newTrigger.setTriggerParameter2(
|
newTrigger.setTriggerParameter2(
|
||||||
@ -1182,8 +1189,6 @@ public class ActivityManageRule extends Activity
|
|||||||
);
|
);
|
||||||
this.refreshTriggerList();
|
this.refreshTriggerList();
|
||||||
}
|
}
|
||||||
else
|
|
||||||
Miscellaneous.logEvent("w", "ActivityManageNfc", "No nfc id returned. Assuming abort.", 5);
|
|
||||||
}
|
}
|
||||||
else if(requestCode == requestCodeTriggerNfcNotificationEdit)
|
else if(requestCode == requestCodeTriggerNfcNotificationEdit)
|
||||||
{
|
{
|
||||||
@ -1193,6 +1198,23 @@ public class ActivityManageRule extends Activity
|
|||||||
this.refreshTriggerList();
|
this.refreshTriggerList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if(requestCode == requestCodeTriggerPhoneCallAdd)
|
||||||
|
{
|
||||||
|
if(resultCode == RESULT_OK)
|
||||||
|
{
|
||||||
|
ruleToEdit.getTriggerSet().add(newTrigger);
|
||||||
|
newTrigger.setTriggerParameter2(data.getStringExtra("triggerParameter2"));
|
||||||
|
this.refreshTriggerList();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if(requestCode == requestCodeTriggerPhoneCallEdit)
|
||||||
|
{
|
||||||
|
if(resultCode == RESULT_OK)
|
||||||
|
{
|
||||||
|
newTrigger = ActivityManageTriggerPhoneCall.resultingTrigger;
|
||||||
|
this.refreshTriggerList();
|
||||||
|
}
|
||||||
|
}
|
||||||
else if(requestCode == requestCodeActionSpeakTextAdd)
|
else if(requestCode == requestCodeActionSpeakTextAdd)
|
||||||
{
|
{
|
||||||
if(resultCode == RESULT_OK)
|
if(resultCode == RESULT_OK)
|
||||||
|
@ -32,13 +32,14 @@ import static com.jens.automation2.Trigger.triggerParameter2Split;
|
|||||||
public class ActivityManageTriggerNotification extends Activity
|
public class ActivityManageTriggerNotification extends Activity
|
||||||
{
|
{
|
||||||
public static Trigger editedNotificationTrigger;
|
public static Trigger editedNotificationTrigger;
|
||||||
|
boolean edit = false;
|
||||||
|
ProgressDialog progressDialog = null;
|
||||||
|
|
||||||
EditText etNotificationTitle, etNotificationText;
|
EditText etNotificationTitle, etNotificationText;
|
||||||
Button bSelectApp, bSaveTriggerNotification;
|
Button bSelectApp, bSaveTriggerNotification;
|
||||||
Spinner spinnerTitleDirection, spinnerTextDirection;
|
Spinner spinnerTitleDirection, spinnerTextDirection;
|
||||||
TextView tvSelectedApplication;
|
TextView tvSelectedApplication;
|
||||||
CheckBox chkNotificationDirection;
|
CheckBox chkNotificationDirection;
|
||||||
boolean edit = false;
|
|
||||||
ProgressDialog progressDialog = null;
|
|
||||||
|
|
||||||
private static List<PackageInfo> pInfos = null;
|
private static List<PackageInfo> pInfos = null;
|
||||||
public static Trigger resultingTrigger;
|
public static Trigger resultingTrigger;
|
||||||
@ -393,7 +394,5 @@ public class ActivityManageTriggerNotification extends Activity
|
|||||||
progressDialog.dismiss();
|
progressDialog.dismiss();
|
||||||
getActionStartActivityDialog1().show();
|
getActionStartActivityDialog1().show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,143 @@
|
|||||||
|
package com.jens.automation2;
|
||||||
|
|
||||||
|
import android.app.Activity;
|
||||||
|
import android.app.AlertDialog;
|
||||||
|
import android.app.ProgressDialog;
|
||||||
|
import android.content.Context;
|
||||||
|
import android.content.DialogInterface;
|
||||||
|
import android.content.Intent;
|
||||||
|
import android.content.pm.ActivityInfo;
|
||||||
|
import android.content.pm.ApplicationInfo;
|
||||||
|
import android.content.pm.PackageInfo;
|
||||||
|
import android.content.pm.PackageManager;
|
||||||
|
import android.os.AsyncTask;
|
||||||
|
import android.os.Bundle;
|
||||||
|
import android.view.View;
|
||||||
|
import android.widget.ArrayAdapter;
|
||||||
|
import android.widget.Button;
|
||||||
|
import android.widget.CheckBox;
|
||||||
|
import android.widget.CompoundButton;
|
||||||
|
import android.widget.EditText;
|
||||||
|
import android.widget.RadioButton;
|
||||||
|
import android.widget.Spinner;
|
||||||
|
import android.widget.TextView;
|
||||||
|
|
||||||
|
import androidx.annotation.Nullable;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.Comparator;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import static com.jens.automation2.Trigger.triggerParameter2Split;
|
||||||
|
|
||||||
|
public class ActivityManageTriggerPhoneCall extends Activity
|
||||||
|
{
|
||||||
|
public static Trigger editedPhoneCallTrigger;
|
||||||
|
boolean edit = false;
|
||||||
|
public static Trigger resultingTrigger;
|
||||||
|
ProgressDialog progressDialog = null;
|
||||||
|
|
||||||
|
EditText etTriggerPhoneCallPhoneNumber;
|
||||||
|
RadioButton rbTriggerPhoneCallStateAny, rbTriggerPhoneCallStateRinging, rbTriggerPhoneCallStateStarted, rbTriggerPhoneCallStateStopped, rbTriggerPhoneCallDirectionAny, rbTriggerPhoneCallDirectionIncoming, rbTriggerPhoneCallDirectionOutgoing;
|
||||||
|
Button bSaveTriggerPhoneCall, bTriggerPhoneCallImportFromContacts;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onCreate(Bundle savedInstanceState)
|
||||||
|
{
|
||||||
|
super.onCreate(savedInstanceState);
|
||||||
|
setContentView(R.layout.activity_manage_trigger_notification);
|
||||||
|
|
||||||
|
etTriggerPhoneCallPhoneNumber = (EditText)findViewById(R.id.etTriggerPhoneCallPhoneNumber);
|
||||||
|
rbTriggerPhoneCallStateAny = (RadioButton)findViewById(R.id.rbTriggerPhoneCallStateAny);
|
||||||
|
rbTriggerPhoneCallStateRinging = (RadioButton)findViewById(R.id.rbTriggerPhoneCallStateRinging);
|
||||||
|
rbTriggerPhoneCallStateStarted = (RadioButton)findViewById(R.id.rbTriggerPhoneCallStateStarted);
|
||||||
|
rbTriggerPhoneCallStateStopped = (RadioButton)findViewById(R.id.rbTriggerPhoneCallStateStopped);
|
||||||
|
rbTriggerPhoneCallDirectionAny = (RadioButton)findViewById(R.id.rbTriggerPhoneCallDirectionAny);
|
||||||
|
rbTriggerPhoneCallDirectionIncoming = (RadioButton)findViewById(R.id.rbTriggerPhoneCallDirectionIncoming);
|
||||||
|
rbTriggerPhoneCallDirectionOutgoing = (RadioButton)findViewById(R.id.rbTriggerPhoneCallDirectionOutgoing);
|
||||||
|
bTriggerPhoneCallImportFromContacts = (Button) findViewById(R.id.bTriggerPhoneCallImportFromContacts);
|
||||||
|
bSaveTriggerPhoneCall = (Button) findViewById(R.id.bSaveTriggerPhoneCall);
|
||||||
|
|
||||||
|
bSaveTriggerPhoneCall.setOnClickListener(new View.OnClickListener()
|
||||||
|
{
|
||||||
|
@Override
|
||||||
|
public void onClick(View v)
|
||||||
|
{
|
||||||
|
String tp2Result = "";
|
||||||
|
|
||||||
|
if(rbTriggerPhoneCallStateAny.isChecked())
|
||||||
|
tp2Result += Trigger.triggerPhoneCallStateAny;
|
||||||
|
else if(rbTriggerPhoneCallStateRinging.isChecked())
|
||||||
|
tp2Result += Trigger.triggerPhoneCallStateRinging;
|
||||||
|
else if(rbTriggerPhoneCallStateStarted.isChecked())
|
||||||
|
tp2Result += Trigger.triggerPhoneCallStateStarted;
|
||||||
|
else if(rbTriggerPhoneCallStateStopped.isChecked())
|
||||||
|
tp2Result += Trigger.triggerPhoneCallStateStopped;
|
||||||
|
|
||||||
|
tp2Result += triggerParameter2Split;
|
||||||
|
|
||||||
|
if(rbTriggerPhoneCallDirectionAny.isChecked())
|
||||||
|
tp2Result += Trigger.triggerPhoneCallDirectionAny;
|
||||||
|
else if(rbTriggerPhoneCallDirectionIncoming.isChecked())
|
||||||
|
tp2Result += Trigger.triggerPhoneCallDirectionImcoming;
|
||||||
|
else if(rbTriggerPhoneCallDirectionOutgoing.isChecked())
|
||||||
|
tp2Result += Trigger.triggerPhoneCallDirectionOutgoing;
|
||||||
|
|
||||||
|
tp2Result += triggerParameter2Split;
|
||||||
|
|
||||||
|
if(etTriggerPhoneCallPhoneNumber.getText() != null && etTriggerPhoneCallPhoneNumber.getText().toString().length() > 0)
|
||||||
|
tp2Result += etTriggerPhoneCallPhoneNumber.getText().toString();
|
||||||
|
else
|
||||||
|
tp2Result += Trigger.triggerPhoneCallNumberAny;
|
||||||
|
|
||||||
|
if(edit)
|
||||||
|
{
|
||||||
|
editedPhoneCallTrigger.setTriggerParameter(false);
|
||||||
|
editedPhoneCallTrigger.setTriggerParameter2(tp2Result);
|
||||||
|
ActivityManageTriggerPhoneCall.this.setResult(RESULT_OK);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Intent data = new Intent();
|
||||||
|
data.putExtra("triggerParameter", false);
|
||||||
|
data.putExtra("triggerParameter2", tp2Result);
|
||||||
|
ActivityManageTriggerPhoneCall.this.setResult(RESULT_OK, data);
|
||||||
|
}
|
||||||
|
|
||||||
|
finish();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
Intent i = getIntent();
|
||||||
|
if(i.getBooleanExtra("edit", false) == true)
|
||||||
|
{
|
||||||
|
edit = true;
|
||||||
|
loadValuesIntoGui();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void loadValuesIntoGui()
|
||||||
|
{
|
||||||
|
String[] parts = editedPhoneCallTrigger.getTriggerParameter2().split(triggerParameter2Split);
|
||||||
|
|
||||||
|
if(parts[0].equals(Trigger.triggerPhoneCallStateAny))
|
||||||
|
rbTriggerPhoneCallStateAny.setChecked(true);
|
||||||
|
else if(parts[0].equals(Trigger.triggerPhoneCallStateRinging))
|
||||||
|
rbTriggerPhoneCallStateRinging.setChecked(true);
|
||||||
|
else if(parts[0].equals(Trigger.triggerPhoneCallStateStarted))
|
||||||
|
rbTriggerPhoneCallStateStarted.setChecked(true);
|
||||||
|
else if(parts[0].equals(Trigger.triggerPhoneCallStateStopped))
|
||||||
|
rbTriggerPhoneCallStateStopped.setChecked(true);
|
||||||
|
|
||||||
|
if(parts[1].equals(Trigger.triggerPhoneCallDirectionAny))
|
||||||
|
rbTriggerPhoneCallDirectionAny.setChecked(true);
|
||||||
|
else if(parts[0].equals(Trigger.triggerPhoneCallDirectionImcoming))
|
||||||
|
rbTriggerPhoneCallDirectionIncoming.setChecked(true);
|
||||||
|
else if(parts[0].equals(Trigger.triggerPhoneCallDirectionOutgoing))
|
||||||
|
rbTriggerPhoneCallDirectionOutgoing.setChecked(true);
|
||||||
|
|
||||||
|
if(!parts[2].equals(Trigger.triggerPhoneCallNumberAny))
|
||||||
|
etTriggerPhoneCallPhoneNumber.setText(parts[2]);
|
||||||
|
}
|
||||||
|
}
|
@ -1,16 +0,0 @@
|
|||||||
package com.jens.automation2;
|
|
||||||
|
|
||||||
import android.app.Activity;
|
|
||||||
import android.os.Bundle;
|
|
||||||
|
|
||||||
import androidx.annotation.Nullable;
|
|
||||||
|
|
||||||
public class ActivityTriggerPhoneCall extends Activity
|
|
||||||
{
|
|
||||||
@Override
|
|
||||||
protected void onCreate(@Nullable Bundle savedInstanceState)
|
|
||||||
{
|
|
||||||
super.onCreate(savedInstanceState);
|
|
||||||
setContentView(R.layout.activity_manage_trigger_phone_call);
|
|
||||||
}
|
|
||||||
}
|
|
@ -77,6 +77,15 @@ public class Trigger
|
|||||||
private PointOfInterest pointOfInterest = null;
|
private PointOfInterest pointOfInterest = null;
|
||||||
private TimeFrame timeFrame;
|
private TimeFrame timeFrame;
|
||||||
|
|
||||||
|
public static String triggerPhoneCallStateRinging = "ringing";
|
||||||
|
public static String triggerPhoneCallStateStarted = "started";
|
||||||
|
public static String triggerPhoneCallStateStopped = "stopped";
|
||||||
|
public static String triggerPhoneCallStateAny = "any";
|
||||||
|
public static String triggerPhoneCallDirectionImcoming = "incoming";
|
||||||
|
public static String triggerPhoneCallDirectionOutgoing = "outgoing";
|
||||||
|
public static String triggerPhoneCallDirectionAny = "any";
|
||||||
|
public static String triggerPhoneCallNumberAny = "any";
|
||||||
|
|
||||||
private double speed; //km/h
|
private double speed; //km/h
|
||||||
private long noiseLevelDb;
|
private long noiseLevelDb;
|
||||||
private String wifiName = "";
|
private String wifiName = "";
|
||||||
|
@ -1,10 +1,14 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<androidx.appcompat.widget.LinearLayoutCompat
|
<ScrollView
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="wrap_content"
|
||||||
android:layout_margin="@dimen/default_margin"
|
android:layout_margin="@dimen/default_margin" >
|
||||||
android:orientation="vertical"
|
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
<androidx.appcompat.widget.LinearLayoutCompat
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical" >
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
@ -25,6 +29,7 @@
|
|||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center_vertical"
|
||||||
android:text="@string/state" />
|
android:text="@string/state" />
|
||||||
|
|
||||||
<RadioGroup
|
<RadioGroup
|
||||||
@ -32,11 +37,26 @@
|
|||||||
android:layout_height="wrap_content" >
|
android:layout_height="wrap_content" >
|
||||||
|
|
||||||
<RadioButton
|
<RadioButton
|
||||||
|
android:id="@+id/rbTriggerPhoneCallStateAny"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:checked="true"
|
||||||
|
android:text="@string/any" />
|
||||||
|
|
||||||
|
<RadioButton
|
||||||
|
android:id="@+id/rbTriggerPhoneCallStateRinging"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/ringing" />
|
||||||
|
|
||||||
|
<RadioButton
|
||||||
|
android:id="@+id/rbTriggerPhoneCallStateStarted"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/started" />
|
android:text="@string/started" />
|
||||||
|
|
||||||
<RadioButton
|
<RadioButton
|
||||||
|
android:id="@+id/rbTriggerPhoneCallStateStopped"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/stopped" />
|
android:text="@string/stopped" />
|
||||||
@ -45,6 +65,19 @@
|
|||||||
|
|
||||||
</TableRow>
|
</TableRow>
|
||||||
|
|
||||||
|
<TableRow
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_span="2"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="1dp"
|
||||||
|
android:layout_margin="10dp"
|
||||||
|
android:background="#aa000000" />
|
||||||
|
|
||||||
|
</TableRow>
|
||||||
|
|
||||||
<TableRow
|
<TableRow
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content" >
|
android:layout_height="wrap_content" >
|
||||||
@ -52,6 +85,7 @@
|
|||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center_vertical"
|
||||||
android:text="@string/phoneDirection" />
|
android:text="@string/phoneDirection" />
|
||||||
|
|
||||||
<RadioGroup
|
<RadioGroup
|
||||||
@ -59,11 +93,20 @@
|
|||||||
android:layout_height="wrap_content" >
|
android:layout_height="wrap_content" >
|
||||||
|
|
||||||
<RadioButton
|
<RadioButton
|
||||||
|
android:id="@+id/rbTriggerPhoneCallDirectionAny"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:checked="true"
|
||||||
|
android:text="@string/any" />
|
||||||
|
|
||||||
|
<RadioButton
|
||||||
|
android:id="@+id/rbTriggerPhoneCallDirectionIncoming"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/incoming" />
|
android:text="@string/incoming" />
|
||||||
|
|
||||||
<RadioButton
|
<RadioButton
|
||||||
|
android:id="@+id/rbTriggerPhoneCallDirectionOutgoing"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/outgoing" />
|
android:text="@string/outgoing" />
|
||||||
@ -72,6 +115,19 @@
|
|||||||
|
|
||||||
</TableRow>
|
</TableRow>
|
||||||
|
|
||||||
|
<TableRow
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_span="2"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="1dp"
|
||||||
|
android:layout_margin="10dp"
|
||||||
|
android:background="#aa000000" />
|
||||||
|
|
||||||
|
</TableRow>
|
||||||
|
|
||||||
<TableRow
|
<TableRow
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content" >
|
android:layout_height="wrap_content" >
|
||||||
@ -79,15 +135,26 @@
|
|||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center_vertical"
|
||||||
android:text="@string/phoneNumber" />
|
android:text="@string/phoneNumber" />
|
||||||
|
|
||||||
<EditText
|
<EditText
|
||||||
|
android:id="@+id/etTriggerPhoneCallPhoneNumber"
|
||||||
|
android:inputType="text"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content" />
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center_vertical" />
|
||||||
|
|
||||||
|
</TableRow>
|
||||||
|
|
||||||
|
<TableRow
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content" >
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_span="2"
|
||||||
android:text="@string/phoneNumberExplanation" />
|
android:text="@string/phoneNumberExplanation" />
|
||||||
|
|
||||||
</TableRow>
|
</TableRow>
|
||||||
@ -97,17 +164,23 @@
|
|||||||
android:layout_height="wrap_content" >
|
android:layout_height="wrap_content" >
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
|
android:id="@+id/bTriggerPhoneCallImportFromContacts"
|
||||||
|
android:layout_marginVertical="@dimen/default_margin"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_span="2"
|
||||||
android:text="@string/importNumberFromContacts" />
|
android:text="@string/importNumberFromContacts" />
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="@string/phoneNumberExplanation" />
|
|
||||||
|
|
||||||
</TableRow>
|
</TableRow>
|
||||||
|
|
||||||
</TableLayout>
|
</TableLayout>
|
||||||
|
|
||||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
<Button
|
||||||
|
android:id="@+id/bSaveTriggerPhoneCall"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/save" />
|
||||||
|
|
||||||
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||||
|
|
||||||
|
</ScrollView>
|
@ -653,7 +653,7 @@
|
|||||||
<string name="noFilesImported">Keine Dateien konnten importiert werden.</string>
|
<string name="noFilesImported">Keine Dateien konnten importiert werden.</string>
|
||||||
<string name="notAllFilesImported">Nicht alle passenden Dateien konnten importiert werden.</string>
|
<string name="notAllFilesImported">Nicht alle passenden Dateien konnten importiert werden.</string>
|
||||||
<string name="openExamplesPage">Webseite mit Beispielen öffnen</string>
|
<string name="openExamplesPage">Webseite mit Beispielen öffnen</string>
|
||||||
<string name="phoneNumberExplanation">Sie können eine bestimmte Nummer eingeben, aber müssen nicht. Wenn Sie eine angeben wollen, können Sie auch eine aus dem Adressbuch auswählen.</string>
|
<string name="phoneNumberExplanation">Sie können eine bestimmte Nummer eingeben, aber müssen nicht. Wenn Sie eine angeben wollen, können Sie auch eine aus dem Adressbuch auswählen. Außerdem können Sie reguläre Audrücke verwenden.</string>
|
||||||
<string name="prefsImportError">Fehler beim Importieren der Einstellungen.</string>
|
<string name="prefsImportError">Fehler beim Importieren der Einstellungen.</string>
|
||||||
<string name="rulesImportedSuccessfully">Regeln und Orte wurden erfolgreich importiert.</string>
|
<string name="rulesImportedSuccessfully">Regeln und Orte wurden erfolgreich importiert.</string>
|
||||||
<string name="rulesImportError">Fehler beim Importieren der Regeln.</string>
|
<string name="rulesImportError">Fehler beim Importieren der Regeln.</string>
|
||||||
|
@ -51,10 +51,10 @@
|
|||||||
<string name="continueText">continuar</string>
|
<string name="continueText">continuar</string>
|
||||||
<string name="rule">Regla</string>
|
<string name="rule">Regla</string>
|
||||||
<string name="android.permission.SEND_SMS">Enviar mensajes SMS</string>
|
<string name="android.permission.SEND_SMS">Enviar mensajes SMS</string>
|
||||||
<string name="android.permission.READ_CONTACTS">Read contact data</string>
|
<string name="android.permission.READ_CONTACTS">Leer directorio</string>
|
||||||
<string name="ruleXrequiresThis">Regla \"%1$s\" requires this.</string>
|
<string name="ruleXrequiresThis">Regla \"%1$s\" lo necesita.</string>
|
||||||
<string name="sendTextMessage">Enviar mensaje SMS</string>
|
<string name="sendTextMessage">Enviar mensaje SMS</string>
|
||||||
<string name="importNumberFromContacts">Import number from contacts</string>
|
<string name="importNumberFromContacts">Importar numero del directorio</string>
|
||||||
<string name="edit">Edit</string>
|
<string name="edit">Edit</string>
|
||||||
<string name="textToSend">Texto de enviar</string>
|
<string name="textToSend">Texto de enviar</string>
|
||||||
<string name="password">Contraseña</string>
|
<string name="password">Contraseña</string>
|
||||||
@ -312,4 +312,5 @@
|
|||||||
<string name="parameterValue">Valor del parámetro</string>
|
<string name="parameterValue">Valor del parámetro</string>
|
||||||
<string name="addIntentValue">Añadir pareja intento</string>
|
<string name="addIntentValue">Añadir pareja intento</string>
|
||||||
<string name="parameterType">Tipo del parámetro</string>
|
<string name="parameterType">Tipo del parámetro</string>
|
||||||
|
<string name="phoneNumberExplanation">Puedes entrar un numero, pero es opciónal. Si quieres usar un puedes elegir un de su directorio o entrar un manualmente. Adiciónalmente puedes usar expresiónes regulares.</string>
|
||||||
</resources>
|
</resources>
|
@ -644,7 +644,7 @@
|
|||||||
<string name="enterValidAction">Enter a valid action</string>
|
<string name="enterValidAction">Enter a valid action</string>
|
||||||
<string name="enterPackageName">Enter a valid package name.</string>
|
<string name="enterPackageName">Enter a valid package name.</string>
|
||||||
<string name="state">State</string>
|
<string name="state">State</string>
|
||||||
<string name="phoneNumberExplanation">You can enter a specific phone number, but you don\'t have to. If you want to specify one you can either pick one from your address book or enter it manually.</string>
|
<string name="phoneNumberExplanation">You can enter a specific phone number, but you don\'t have to. If you want to specify one you can either pick one from your address book or enter it manually. In addition you may use regular expressions.</string>
|
||||||
<string name="importConfiguration">Import configuration</string>
|
<string name="importConfiguration">Import configuration</string>
|
||||||
<string name="exportConfiguration">Export configuration</string>
|
<string name="exportConfiguration">Export configuration</string>
|
||||||
<string name="moreSettings">More settings</string>
|
<string name="moreSettings">More settings</string>
|
||||||
@ -667,5 +667,6 @@
|
|||||||
<string name="packageName">Package name</string>
|
<string name="packageName">Package name</string>
|
||||||
<string name="activityOrActionName">Activity/action name</string>
|
<string name="activityOrActionName">Activity/action name</string>
|
||||||
<string name="warning">Warning</string>
|
<string name="warning">Warning</string>
|
||||||
|
<string name="ringing">ringing</string>
|
||||||
<!-- <string name="net.kollnig.missioncontrol.permission.ADMIN">Control the app Tracker Control</string>-->
|
<!-- <string name="net.kollnig.missioncontrol.permission.ADMIN">Control the app Tracker Control</string>-->
|
||||||
</resources>
|
</resources>
|
Loading…
Reference in New Issue
Block a user