This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<EditText | |
android:inputType="textNoSuggestions" | |
android:digits="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890" | |
/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* send an email. Lets the user select the email app if there is more than one | |
* @param to | |
* @param subject | |
* @param body | |
*/ | |
void email(String to, String subject, String body){ | |
//mailto url | |
to = to == null ? "" :to; | |
Intent intent = new Intent(Intent.ACTION_SENDTO, Uri.parse("mailto:" +to +"?subject=" + Uri.encode(subject) + "&body=" + Uri.encode(body))); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<activity android:name=".SearchableActivity"> | |
<intent-filter> | |
<action android:name="android.intent.action.MAIN" /> | |
<action android:name="android.intent.action.SEARCH" /> | |
</intent-filter> | |
<!-- note: this is needed to show a keyboard with proposals --> | |
<meta-data | |
android:name="android.app.searchable" | |
android:resource="@xml/searchable" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public Dialog onCreateDialog(Bundle savedInstanceState) { | |
Dialog dialog = super.onCreateDialog(savedInstanceState); | |
dialog.setTitle("Suche verfeinern"); | |
//set the dialog to non-modal and disable dim out fragment behind | |
Window window = dialog.getWindow(); | |
window.setFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL, | |
WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public Dialog onCreateDialog(Bundle savedInstanceState) { | |
Dialog dialog = super.onCreateDialog(savedInstanceState); | |
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); | |
//set the dialog to non-modal and disable dim out fragment behind | |
Window window = dialog.getWindow(); | |
window.setFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL, | |
WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL); | |
//blur out the background |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void onStart() { | |
super.onStart(); | |
Log.d(LOG_TAG, "onStart"); | |
if(null == getDialog()) return; | |
int dialogWidth = 300; | |
int dialogHeight = 400; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="release-custumrules"> | |
<target name="-pre-build"> | |
<tstamp> | |
<format property="builddate" pattern="dd.MM.yyyy HH:mm:ss" locale="de,CH" /> | |
</tstamp> | |
<if condition="${build.is.packaging.debug}"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ui:composition xmlns="http://www.w3.org/1999/xhtml" | |
xmlns:ui="http://java.sun.com/jsf/facelets" | |
xmlns:h="http://java.sun.com/jsf/html" | |
xmlns:f="http://java.sun.com/jsf/core" | |
xmlns:fn="http://java.sun.com/jsp/jstl/functions" | |
xmlns:c="http://java.sun.com/jsp/jstl/core" | |
> | |
<ui:fragment rendered="#{null != journey}"> | |
only shown if journey not null. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INSERT INTO HandlingUnitCodeRange (PK_ID, plant, storageLocation, prefix , minRange, maxRange, nextValue, active) | |
VALUES ( 1, '5000', '', '08150815', 100000, 150000, 100000, true); |