Skip to content

Commit a7df941

Browse files
Update MainActivity.java
1 parent e0bdbc1 commit a7df941

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

app/src/main/java/de/mide/implizite_intents/MainActivity.java

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public void onClick(View view) {
148148
else {
149149

150150
Helferlein.zeigeToast(this,
151-
"Dieser Intent wird auf Ihrem Gerät leider nicht unterstützt.");
151+
"Dieser Intent wird auf Ihrem Gerät leider nicht unterstützt." );
152152
view.setEnabled(false); // Button deaktivieren
153153
}
154154
}
@@ -163,10 +163,10 @@ public void onClick(View view) {
163163
*/
164164
protected Intent createIntentBrowserOeffnen() {
165165

166-
Uri httpUri = Uri.parse("https://www.heise.de");
166+
Uri httpUri = Uri.parse("https://www.heise.de" );
167167

168-
Intent intent = new Intent(Intent.ACTION_VIEW);
169-
intent.setData(httpUri);
168+
Intent intent = new Intent( Intent.ACTION_VIEW );
169+
intent.setData( httpUri );
170170

171171
// Alternative: new Intent(Intent.ACTION_VIEW, httpUri);
172172

@@ -192,10 +192,10 @@ protected Intent createIntentGeoKoordinate() {
192192

193193
// Dezimal-Koordinaten für Schloss KA als URI;
194194
// "Südlich" oder "Westlich" können mit negativen Vorzeichen definiert werden.
195-
Uri geoUri = Uri.parse("geo:49.014,8.4043");
195+
Uri geoUri = Uri.parse("geo:49.014,8.4043" );
196196

197-
Intent intent = new Intent(Intent.ACTION_VIEW);
198-
intent.setData(geoUri);
197+
Intent intent = new Intent( Intent.ACTION_VIEW );
198+
intent.setData( geoUri );
199199

200200
return intent;
201201
}
@@ -219,10 +219,10 @@ protected Intent createIntentGeoKoordinate() {
219219
*/
220220
protected Intent createIntentAppstoreEintrag() {
221221

222-
Uri appStoreUri = Uri.parse("market://details?id=de.spiegel.android.app.spon");
222+
Uri appStoreUri = Uri.parse("market://details?id=de.spiegel.android.app.spon" );
223223

224-
Intent intent = new Intent(Intent.ACTION_VIEW);
225-
intent.setData(appStoreUri);
224+
Intent intent = new Intent( Intent.ACTION_VIEW );
225+
intent.setData( appStoreUri );
226226

227227
return intent;
228228
}
@@ -240,15 +240,15 @@ protected Intent createIntentAppstoreEintrag() {
240240
*/
241241
protected Intent createIntentEMailVerfassen() {
242242

243-
Uri emailUri = Uri.parse("mailto:");
243+
Uri emailUri = Uri.parse("mailto:" );
244244

245-
Intent intent = new Intent(Intent.ACTION_SEND);
246-
intent.setData(emailUri);
245+
Intent intent = new Intent (Intent.ACTION_SEND );
246+
intent.setData( emailUri );
247247

248-
intent.setType("text/plain");
249-
intent.putExtra(Intent.EXTRA_EMAIL , new String[]{"info@eine-firma.com"});
250-
intent.putExtra(Intent.EXTRA_SUBJECT , "Betreff-Zeile");
251-
intent.putExtra(Intent.EXTRA_TEXT , "Hier steht die eigentliche Nachricht drin.");
248+
intent.setType( "text/plain" );
249+
intent.putExtra( Intent.EXTRA_EMAIL , new String[]{ "info@eine-firma.com" });
250+
intent.putExtra( Intent.EXTRA_SUBJECT , "Betreff-Zeile" );
251+
intent.putExtra( Intent.EXTRA_TEXT , "Hier steht die eigentliche Nachricht drin." );
252252

253253
return intent;
254254
}
@@ -264,10 +264,10 @@ protected Intent createIntentEMailVerfassen() {
264264
*/
265265
protected Intent createIntentTelefonanruf() {
266266

267-
Uri telefonUri = Uri.parse("tel:0123456789");
267+
Uri telefonUri = Uri.parse("tel:0123456789" );
268268

269-
Intent intent = new Intent(Intent.ACTION_DIAL);
270-
intent.setData(telefonUri);
269+
Intent intent = new Intent( Intent.ACTION_DIAL );
270+
intent.setData( telefonUri );
271271

272272
return intent;
273273
}

0 commit comments

Comments
 (0)