diff --git a/android/res/layout-land/dialog_stacked_buttons.xml b/android/res/layout-land/dialog_stacked_buttons.xml
index 2f4467e35a..106e9e1221 100644
--- a/android/res/layout-land/dialog_stacked_buttons.xml
+++ b/android/res/layout-land/dialog_stacked_buttons.xml
@@ -18,8 +18,7 @@
+ tools:text="Use mobile internet to show detailed information?"/>
+ tools:text="Use Always"/>
+ tools:text="Only Today"/>
+ tools:text="Do not Use Today"/>
diff --git a/android/res/layout-land/routing_details.xml b/android/res/layout-land/routing_details.xml
index 370d5ac9a1..020bc4e4d1 100644
--- a/android/res/layout-land/routing_details.xml
+++ b/android/res/layout-land/routing_details.xml
@@ -22,6 +22,5 @@
android:textColor="?colorAccent"
android:visibility="gone"
tools:text="43 m"
- tools:targetApi="jelly_bean"
tools:visibility="visible"/>
diff --git a/android/res/layout-w1020dp-land/routing_details.xml b/android/res/layout-w1020dp-land/routing_details.xml
index d35ce17136..f0b132825b 100644
--- a/android/res/layout-w1020dp-land/routing_details.xml
+++ b/android/res/layout-w1020dp-land/routing_details.xml
@@ -33,6 +33,5 @@
android:textColor="?colorAccent"
android:visibility="gone"
tools:text="43 m"
- tools:targetApi="jelly_bean"
tools:visibility="visible"/>
diff --git a/android/res/layout/bought_content.xml b/android/res/layout/bought_content.xml
deleted file mode 100644
index 2e77767615..0000000000
--- a/android/res/layout/bought_content.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
diff --git a/android/res/layout/dialog_stacked_buttons.xml b/android/res/layout/dialog_stacked_buttons.xml
index 409f88f1cd..603e50266e 100644
--- a/android/res/layout/dialog_stacked_buttons.xml
+++ b/android/res/layout/dialog_stacked_buttons.xml
@@ -18,8 +18,7 @@
+ tools:text="Use mobile internet to show detailed information?"/>
+ tools:text="Use Always"/>
+ tools:text="Only Today"/>
+ tools:text="Do not Use Today"/>
diff --git a/android/res/layout/fragment_auth_editor.xml b/android/res/layout/fragment_auth_editor.xml
index 00da26fdd8..14fd0673b3 100644
--- a/android/res/layout/fragment_auth_editor.xml
+++ b/android/res/layout/fragment_auth_editor.xml
@@ -103,8 +103,7 @@
android:fontFamily="@string/robotoMedium"
android:text="@string/openstreetmap"
android:textAllCaps="false"
- android:textAppearance="@style/MwmTextAppearance.Body1.Light"
- tools:targetApi="jelly_bean"/>
+ android:textAppearance="@style/MwmTextAppearance.Body1.Light"/>
+ android:textAppearance="@style/MwmTextAppearance.Body1.Light"/>
+ android:textColor="@color/text_dark"/>
diff --git a/android/res/layout/fragment_confirmation.xml b/android/res/layout/fragment_confirmation.xml
deleted file mode 100644
index 4235e5e722..0000000000
--- a/android/res/layout/fragment_confirmation.xml
+++ /dev/null
@@ -1,58 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/android/res/layout/fragment_driving_options.xml b/android/res/layout/fragment_driving_options.xml
index f0f2832d2d..acfaa9c0d5 100644
--- a/android/res/layout/fragment_driving_options.xml
+++ b/android/res/layout/fragment_driving_options.xml
@@ -25,8 +25,7 @@
android:layout_gravity="center_vertical"
android:layout_marginTop="@dimen/margin_half_double_plus"
android:paddingEnd="@dimen/margin_base"
- android:paddingStart="@dimen/margin_base"
- tools:targetApi="jelly_bean"/>
+ android:paddingStart="@dimen/margin_base"/>
+ android:textColor="?android:attr/textColorPrimary"/>
+ android:textColor="?android:attr/textColorPrimary"/>
+ android:textColor="?android:attr/textColorPrimary"/>
+ android:textColor="?android:attr/textColorPrimary"/>
+ android:elevation="@dimen/design_fab_elevation"/>
+ app:elevation="@dimen/dp_0">
+ android:textAppearance="@style/MwmTextAppearance.Button"/>
diff --git a/android/res/layout/item_bookmark_create_group.xml b/android/res/layout/item_bookmark_create_group.xml
index be4b2dac53..bab313a588 100644
--- a/android/res/layout/item_bookmark_create_group.xml
+++ b/android/res/layout/item_bookmark_create_group.xml
@@ -26,6 +26,5 @@
android:text="@string/bookmarks_create_new_group"
android:textAllCaps="true"
android:textAppearance="@style/MwmTextAppearance.Body3"
- android:textColor="?colorAccent"
- tools:targetApi="jelly_bean" />
+ android:textColor="?colorAccent"/>
diff --git a/android/res/layout/item_bookmark_import.xml b/android/res/layout/item_bookmark_import.xml
index de237530ed..f4d1c3c59e 100644
--- a/android/res/layout/item_bookmark_import.xml
+++ b/android/res/layout/item_bookmark_import.xml
@@ -1,7 +1,6 @@
+ android:textColor="?colorAccent"/>
diff --git a/android/res/layout/item_facility.xml b/android/res/layout/item_facility.xml
deleted file mode 100644
index ef61d5b9ce..0000000000
--- a/android/res/layout/item_facility.xml
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-
-
-
diff --git a/android/res/layout/item_guide_info.xml b/android/res/layout/item_guide_info.xml
deleted file mode 100644
index a9effe2fdd..0000000000
--- a/android/res/layout/item_guide_info.xml
+++ /dev/null
@@ -1,34 +0,0 @@
-
-
-
-
-
-
-
diff --git a/android/res/layout/item_image.xml b/android/res/layout/item_image.xml
deleted file mode 100644
index 9cc9280539..0000000000
--- a/android/res/layout/item_image.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
-
diff --git a/android/res/layout/item_nearby.xml b/android/res/layout/item_nearby.xml
deleted file mode 100644
index 604b6a9560..0000000000
--- a/android/res/layout/item_nearby.xml
+++ /dev/null
@@ -1,60 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/android/res/layout/item_search_more.xml b/android/res/layout/item_search_more.xml
deleted file mode 100644
index 1ec06f4005..0000000000
--- a/android/res/layout/item_search_more.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
-
-
diff --git a/android/res/layout/routing_details.xml b/android/res/layout/routing_details.xml
index d67dff3690..9a763d5308 100644
--- a/android/res/layout/routing_details.xml
+++ b/android/res/layout/routing_details.xml
@@ -18,7 +18,6 @@
android:layout_alignParentEnd="true"
android:visibility="gone"
tools:text="43 m"
- tools:targetApi="jelly_bean"
tools:visibility="visible"/>
+ android:text="@string/search_show_on_map"/>
-
-
-
-
-
diff --git a/android/res/menu/menu_bookmark_category_restriction.xml b/android/res/menu/menu_bookmark_category_restriction.xml
deleted file mode 100644
index d8c065e6f8..0000000000
--- a/android/res/menu/menu_bookmark_category_restriction.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
diff --git a/android/res/menu/menu_bookmarks_catalog.xml b/android/res/menu/menu_bookmarks_catalog.xml
deleted file mode 100644
index 796414fcb6..0000000000
--- a/android/res/menu/menu_bookmarks_catalog.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
diff --git a/android/res/values/styles-place_page.xml b/android/res/values/styles-place_page.xml
index f1a26b7d9b..72a3f2647d 100644
--- a/android/res/values/styles-place_page.xml
+++ b/android/res/values/styles-place_page.xml
@@ -1,10 +1,10 @@
-
+
diff --git a/android/res/values/styles-text.xml b/android/res/values/styles-text.xml
index 56f1f90acb..c1278a5488 100644
--- a/android/res/values/styles-text.xml
+++ b/android/res/values/styles-text.xml
@@ -1,7 +1,7 @@
-
+
@@ -18,7 +18,7 @@
@@ -154,13 +154,13 @@
@@ -190,7 +190,7 @@
@@ -209,11 +209,11 @@
diff --git a/android/res/values/styles.xml b/android/res/values/styles.xml
index 3ccb95cacc..e0b185fbd0 100644
--- a/android/res/values/styles.xml
+++ b/android/res/values/styles.xml
@@ -1,6 +1,5 @@
-
+
@@ -32,10 +31,10 @@
- wrap_content
- wrap_content
- ?buttonBackground
- - @null
- - @string/robotoMedium
+ - @null
+ - @string/robotoMedium
- true
- - 0.04
+ - 0.04
@@ -61,7 +60,7 @@
- wrap_content
- @dimen/margin_dialog_title
- @style/MwmTextAppearance.Body1
- - @string/robotoMedium
+ - @string/robotoMedium
@@ -113,7 +112,7 @@
@@ -57,7 +57,7 @@
@@ -193,13 +193,13 @@
diff --git a/android/src/com/mapswithme/maps/MwmActivity.java b/android/src/com/mapswithme/maps/MwmActivity.java
index 7485258672..aff9e6a7b6 100644
--- a/android/src/com/mapswithme/maps/MwmActivity.java
+++ b/android/src/com/mapswithme/maps/MwmActivity.java
@@ -420,7 +420,7 @@ public class MwmActivity extends BaseMwmFragmentActivity
}
mIsTabletLayout = getResources().getBoolean(R.bool.tabletLayout);
- if (!mIsTabletLayout && (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP))
+ if (!mIsTabletLayout)
getWindow().addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
setContentView(R.layout.activity_map);
diff --git a/android/src/com/mapswithme/maps/dialog/ConfirmationDialogFactory.java b/android/src/com/mapswithme/maps/dialog/ConfirmationDialogFactory.java
deleted file mode 100644
index cb56dfb106..0000000000
--- a/android/src/com/mapswithme/maps/dialog/ConfirmationDialogFactory.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package com.mapswithme.maps.dialog;
-
-import androidx.annotation.NonNull;
-
-public class ConfirmationDialogFactory implements DialogFactory
-{
- @NonNull
- @Override
- public AlertDialog createDialog()
- {
- return new DefaultConfirmationAlertDialog();
- }
-}
diff --git a/android/src/com/mapswithme/maps/dialog/DefaultConfirmationAlertDialog.java b/android/src/com/mapswithme/maps/dialog/DefaultConfirmationAlertDialog.java
deleted file mode 100644
index 4a5e1b1982..0000000000
--- a/android/src/com/mapswithme/maps/dialog/DefaultConfirmationAlertDialog.java
+++ /dev/null
@@ -1,12 +0,0 @@
-package com.mapswithme.maps.dialog;
-
-import com.mapswithme.maps.R;
-
-public class DefaultConfirmationAlertDialog extends AlertDialog
-{
- @Override
- protected int getLayoutId()
- {
- return R.layout.fragment_confirmation;
- }
-}
diff --git a/android/src/com/mapswithme/maps/routing/TransitStepView.java b/android/src/com/mapswithme/maps/routing/TransitStepView.java
index 7f39723c75..3f16a825f8 100644
--- a/android/src/com/mapswithme/maps/routing/TransitStepView.java
+++ b/android/src/com/mapswithme/maps/routing/TransitStepView.java
@@ -8,7 +8,6 @@ import android.graphics.Paint;
import android.graphics.Rect;
import android.graphics.RectF;
import android.graphics.drawable.Drawable;
-import android.os.Build;
import android.text.TextPaint;
import android.text.TextUtils;
import android.util.AttributeSet;
@@ -19,7 +18,6 @@ import androidx.annotation.Dimension;
import androidx.annotation.DrawableRes;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
-import androidx.annotation.RequiresApi;
import androidx.core.graphics.drawable.DrawableCompat;
import com.mapswithme.maps.R;
@@ -63,7 +61,6 @@ public class TransitStepView extends View implements MultilineLayoutManager.Sque
init(attrs);
}
- @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
public TransitStepView(Context context, @Nullable AttributeSet attrs, int defStyleAttr, int defStyleRes)
{
super(context, attrs, defStyleAttr, defStyleRes);
diff --git a/android/src/com/mapswithme/maps/widget/NestedScrollViewClickFixed.java b/android/src/com/mapswithme/maps/widget/NestedScrollViewClickFixed.java
index de5af57d86..465d5648bd 100644
--- a/android/src/com/mapswithme/maps/widget/NestedScrollViewClickFixed.java
+++ b/android/src/com/mapswithme/maps/widget/NestedScrollViewClickFixed.java
@@ -23,7 +23,6 @@ import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Rect;
-import android.os.Build;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
@@ -1894,11 +1893,7 @@ public class NestedScrollViewClickFixed extends FrameLayout implements NestedScr
int height = getHeight();
int xTranslation = 0;
int yTranslation = Math.min(0, scrollY);
- if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP || getClipToPadding()) {
- width -= getPaddingLeft() + getPaddingRight();
- xTranslation += getPaddingLeft();
- }
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP && getClipToPadding()) {
+ if (getClipToPadding()) {
height -= getPaddingTop() + getPaddingBottom();
yTranslation += getPaddingTop();
}
@@ -1915,11 +1910,8 @@ public class NestedScrollViewClickFixed extends FrameLayout implements NestedScr
int height = getHeight();
int xTranslation = 0;
int yTranslation = Math.max(getScrollRange(), scrollY) + height;
- if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP || getClipToPadding()) {
- width -= getPaddingLeft() + getPaddingRight();
- xTranslation += getPaddingLeft();
- }
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP && getClipToPadding()) {
+
+ if (getClipToPadding()) {
height -= getPaddingTop() + getPaddingBottom();
yTranslation -= getPaddingBottom();
}
diff --git a/android/src/com/mapswithme/maps/widget/PlaceholderView.java b/android/src/com/mapswithme/maps/widget/PlaceholderView.java
index 8a6d5829b0..3f47da0cd7 100644
--- a/android/src/com/mapswithme/maps/widget/PlaceholderView.java
+++ b/android/src/com/mapswithme/maps/widget/PlaceholderView.java
@@ -1,10 +1,8 @@
package com.mapswithme.maps.widget;
-import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.Resources;
import android.content.res.TypedArray;
-import android.os.Build;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
@@ -61,7 +59,6 @@ public class PlaceholderView extends LinearLayout
init(context, attrs);
}
- @TargetApi(Build.VERSION_CODES.LOLLIPOP)
public PlaceholderView(Context context, @Nullable AttributeSet attrs, int defStyleAttr,
int defStyleRes)
{
diff --git a/android/src/com/mapswithme/maps/widget/RoutingToolbarButton.java b/android/src/com/mapswithme/maps/widget/RoutingToolbarButton.java
index 7cadb5ae78..653b032bbc 100644
--- a/android/src/com/mapswithme/maps/widget/RoutingToolbarButton.java
+++ b/android/src/com/mapswithme/maps/widget/RoutingToolbarButton.java
@@ -1,11 +1,11 @@
package com.mapswithme.maps.widget;
import android.content.Context;
-import android.os.Build;
import android.util.AttributeSet;
import androidx.annotation.ColorRes;
import androidx.annotation.DrawableRes;
+import androidx.appcompat.content.res.AppCompatResources;
import androidx.appcompat.widget.AppCompatRadioButton;
import com.mapswithme.maps.R;
@@ -86,10 +86,7 @@ public class RoutingToolbarButton extends AppCompatRadioButton
public void setButtonTintList(@ColorRes int color)
{
- if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP)
- setSupportButtonTintList(getResources().getColorStateList(color));
- else
- setButtonTintList(getResources().getColorStateList(color));
+ setButtonTintList(AppCompatResources.getColorStateList(getContext(), color));
}
public void setIcon(@DrawableRes int icon)
diff --git a/android/src/com/mapswithme/maps/widget/placepage/FloatingMarkerView.java b/android/src/com/mapswithme/maps/widget/placepage/FloatingMarkerView.java
index a76509b142..0013763e07 100644
--- a/android/src/com/mapswithme/maps/widget/placepage/FloatingMarkerView.java
+++ b/android/src/com/mapswithme/maps/widget/placepage/FloatingMarkerView.java
@@ -4,7 +4,6 @@ package com.mapswithme.maps.widget.placepage;
import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.Canvas;
-import android.os.Build;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
@@ -13,7 +12,6 @@ import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
-import androidx.annotation.RequiresApi;
import com.github.mikephil.charting.charts.Chart;
import com.github.mikephil.charting.components.IMarker;
@@ -72,7 +70,6 @@ public class FloatingMarkerView extends RelativeLayout implements IMarker
LayoutInflater.from(getContext()).inflate(R.layout.floating_marker_view, this, true);
}
- @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
public FloatingMarkerView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
{
super(context, attrs, defStyleAttr, defStyleRes);
diff --git a/android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java b/android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java
index 388c9f6881..2748df674d 100644
--- a/android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java
+++ b/android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java
@@ -343,8 +343,7 @@ public class PlacePageView extends NestedScrollViewClickFixed
mDownloaderInfo = mPreview.findViewById(R.id.tv__downloader_details);
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP)
- setElevation(UiUtils.dimen(getContext(), R.dimen.placepage_elevation));
+ setElevation(UiUtils.dimen(getContext(), R.dimen.placepage_elevation));
if (UiUtils.isLandscape(getContext()))
setBackgroundResource(0);
diff --git a/android/src/com/mapswithme/util/PreLollipopSSLSocketFactory.java b/android/src/com/mapswithme/util/PreLollipopSSLSocketFactory.java
deleted file mode 100644
index cb2d9f498f..0000000000
--- a/android/src/com/mapswithme/util/PreLollipopSSLSocketFactory.java
+++ /dev/null
@@ -1,76 +0,0 @@
-package com.mapswithme.util;
-
-import androidx.annotation.NonNull;
-
-import java.io.IOException;
-import java.net.InetAddress;
-import java.net.Socket;
-
-import javax.net.ssl.SSLSocket;
-import javax.net.ssl.SSLSocketFactory;
-
-
-class PreLollipopSSLSocketFactory extends SSLSocketFactory
-{
- @NonNull
- private final SSLSocketFactory mSslSocketFactory;
-
- PreLollipopSSLSocketFactory(@NonNull SSLSocketFactory sslSocketFactory)
- {
- super();
- this.mSslSocketFactory = sslSocketFactory;
- }
-
- @Override
- public String[] getDefaultCipherSuites()
- {
- return mSslSocketFactory.getDefaultCipherSuites();
- }
-
- @Override
- public String[] getSupportedCipherSuites()
- {
- return mSslSocketFactory.getSupportedCipherSuites();
- }
-
- @Override
- public SSLSocket createSocket(Socket s, String host, int port, boolean autoClose) throws IOException
- {
- SSLSocket socket = (SSLSocket) mSslSocketFactory.createSocket(s, host, port, autoClose);
- socket.setEnabledProtocols(new String[] { "TLSv1.2" });
- return socket;
- }
-
- @Override
- public Socket createSocket(String host, int port) throws IOException
- {
- SSLSocket socket = (SSLSocket) mSslSocketFactory.createSocket(host, port);
- socket.setEnabledProtocols(new String[] { "TLSv1.2" });
- return socket;
- }
-
- @Override
- public Socket createSocket(String host, int port, InetAddress localHost, int localPort) throws IOException
- {
- SSLSocket socket = (SSLSocket) mSslSocketFactory.createSocket(host, port, localHost, localPort);
- socket.setEnabledProtocols(new String[] { "TLSv1.2" });
- return socket;
- }
-
- @Override
- public Socket createSocket(InetAddress host, int port) throws IOException
- {
- SSLSocket socket = (SSLSocket) mSslSocketFactory.createSocket(host, port);
- socket.setEnabledProtocols(new String[] { "TLSv1.2" });
- return socket;
- }
-
- @Override
- public Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort)
- throws IOException
- {
- SSLSocket socket = (SSLSocket) mSslSocketFactory.createSocket(address, port, localAddress, localPort);
- socket.setEnabledProtocols(new String[] { "TLSv1.2" });
- return socket;
- }
-}
diff --git a/android/src/com/mapswithme/util/UiUtils.java b/android/src/com/mapswithme/util/UiUtils.java
index 547b56fd9b..a5d08b8697 100644
--- a/android/src/com/mapswithme/util/UiUtils.java
+++ b/android/src/com/mapswithme/util/UiUtils.java
@@ -10,7 +10,6 @@ import android.content.res.TypedArray;
import android.graphics.Color;
import android.graphics.Rect;
import android.net.Uri;
-import android.os.Build;
import android.text.Html;
import android.text.TextUtils;
import android.text.method.LinkMovementMethod;
@@ -413,15 +412,7 @@ public final class UiUtils
public static void setupStatusBar(@NonNull Activity activity)
{
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP)
- {
- activity.getWindow().getDecorView().setSystemUiVisibility(
- View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);
- }
- else
- {
- activity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
- }
+ activity.getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);
View statusBarTintView = new View(activity);
FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT, getStatusBarHeight(activity));
diff --git a/android/src/com/mapswithme/util/Utils.java b/android/src/com/mapswithme/util/Utils.java
index b8375c8121..fccf2bf38e 100644
--- a/android/src/com/mapswithme/util/Utils.java
+++ b/android/src/com/mapswithme/util/Utils.java
@@ -201,10 +201,7 @@ public class Utils
{
final Intent marketIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
marketIntent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY | Intent.FLAG_ACTIVITY_MULTIPLE_TASK);
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP)
- marketIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_DOCUMENT);
- else
- marketIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
+ marketIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_DOCUMENT);
try
{