From d42a46ac51ecd1a04c12b75e75cbda1ecab6d6f1 Mon Sep 17 00:00:00 2001 From: babyface Date: Fri, 30 Jun 2023 18:35:28 +0800 Subject: [PATCH 1/3] Rev1.1 --- .../com/jbvincey/instantappssample/helper/IntentHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/jbvincey/instantappssample/helper/IntentHelper.java b/app/src/main/java/com/jbvincey/instantappssample/helper/IntentHelper.java index 6231169..4a5fdb3 100644 --- a/app/src/main/java/com/jbvincey/instantappssample/helper/IntentHelper.java +++ b/app/src/main/java/com/jbvincey/instantappssample/helper/IntentHelper.java @@ -11,7 +11,7 @@ * Created by jean-baptistevincey on 24/06/2017. */ -public final class IntentHelper { +public final class hfhfhdashldhgklhslgr { private static final String PLAYSTORE_BASE_URL = "market://details?id="; From ed4ea5766b8c3e8e6fc482f940b128dd08382dbc Mon Sep 17 00:00:00 2001 From: babyface Date: Fri, 30 Jun 2023 18:41:11 +0800 Subject: [PATCH 2/3] Added Changed for lab 3 --- .../helper/IntentHelper1.java | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 app/src/main/java/com/jbvincey/instantappssample/helper/IntentHelper1.java diff --git a/app/src/main/java/com/jbvincey/instantappssample/helper/IntentHelper1.java b/app/src/main/java/com/jbvincey/instantappssample/helper/IntentHelper1.java new file mode 100644 index 0000000..4a5fdb3 --- /dev/null +++ b/app/src/main/java/com/jbvincey/instantappssample/helper/IntentHelper1.java @@ -0,0 +1,68 @@ +package com.jbvincey.instantappssample.helper; + +import android.content.Intent; +import android.net.Uri; + +import com.jbvincey.instantappssample.BuildConfig; +import com.jbvincey.instantappssample.constants.Constants; +import com.jbvincey.instantappssample.model.Coordinates; + +/** + * Created by jean-baptistevincey on 24/06/2017. + */ + +public final class hfhfhdashldhgklhslgr { + + private static final String PLAYSTORE_BASE_URL = "market://details?id="; + + private static final String PACKAGE_MAPS = "com.google.android.apps.maps"; + + private static final String COORDINATES_PREFIX = "geo:0,0?q="; + + private static final String COORDINATES_SEPARATOR = ","; + + private static final String SHARE_INTENT_TYPE = "text/plain"; + + private static final String MAILTO_URI = "mailto:"; + + public static Intent getMapsLocationItent(Coordinates coordinates) { + Uri mapsUri = Uri.parse(buildCoordinatesUri(coordinates)); + Intent mapIntent = new Intent(Intent.ACTION_VIEW, mapsUri); + mapIntent.setPackage(PACKAGE_MAPS); + return mapIntent; + } + + private static String buildCoordinatesUri(Coordinates coordinates) { + return COORDINATES_PREFIX + + coordinates.getLatitude() + + COORDINATES_SEPARATOR + + coordinates.getLongitude(); + } + + public static Intent getContactIntent(String contact) { + Intent intent = new Intent(Intent.ACTION_SENDTO); + intent.setData(Uri.parse(MAILTO_URI)); + intent.putExtra(Intent.EXTRA_EMAIL, new String[]{contact}); + return intent; + } + + public static Intent getShareDetailUrlIntent(String tripId) { + Intent shareIntent = new Intent(Intent.ACTION_SEND); + shareIntent.setType(SHARE_INTENT_TYPE); + shareIntent.putExtra(Intent.EXTRA_TEXT, buildDetailUrl(tripId)); + return shareIntent; + } + + private static String buildDetailUrl(String tripId) { + return Constants.BASE_URL + "/" + tripId; + } + + public static Intent getInstantTripPlayStoreIntent() { + return new Intent(Intent.ACTION_VIEW, buildPlayStoreUrl()); + } + + private static Uri buildPlayStoreUrl() { + return Uri.parse(PLAYSTORE_BASE_URL + BuildConfig.APPLICATION_ID); + } + +} From 22f858b41321c35e702b686347dbb37abb106006 Mon Sep 17 00:00:00 2001 From: babyface Date: Sat, 1 Jul 2023 10:53:32 +0800 Subject: [PATCH 3/3] Add new python --- Python/Test.py | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Python/Test.py diff --git a/Python/Test.py b/Python/Test.py new file mode 100644 index 0000000..79cb004 --- /dev/null +++ b/Python/Test.py @@ -0,0 +1,2 @@ +import json +print("Hello World!!") \ No newline at end of file