Skip to main content

Featured

Android studio “SDK tools directory is missing”

Following 2 possible solutions will resolve this problem :  Solution1 : To fix the problem, it was required that I list the path to my corporate PAC file by using  Configure -> "Appearance and Behavior" -> System Settings -> HTTP Proxy . I selected "Automatic proxy configuration url:" Delete your  ~/.Android*  folders (losing all of your settings :/). Run Android Studio. It will show you a welcome wizard where it tries to download the SDK again (and fails due to my rubbish internet). Click the X on the wizard window. That will enable you to get to the normal welcome dialog. Go to Settings->Project Defaults->Project Structure and change the Android SDK location to the correct one. Solution 2 : To fix the problem, it was required that I list the path to my corporate PAC file by using  Configure -> "Appearance and Behavior" -> System Settings -> HTTP Proxy . I selected "Automatic proxy configuration url:&quo

Code to fix the docuble click or double tap issue,in android

Issue : whenever user clicks many times in a button/list to show any screen,it shows multiple(duplicate) screens,based on the button clicks of User.   

I faced this issue many times.I fixed this issue by following either of two cases:

1)
using      setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);  to intent like this: 
 
Intent i=new Intent(JobsListScreen.this,JobDetailsScreen.class);                   
                    i.putExtras(b);
                    i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
                    startActivity(i);


(OR)


2)  use android:launchMode="singleTop" this property in Manifest file like this:

<activity
            android:name=".pl.Mobile.HomeScreen"
            android:configChanges="orientation|keyboardHidden"
            android:screenOrientation="portrait"
            android:launchMode="singleTop"
            android:theme="@android:style/Theme.NoTitleBar"
            android:windowSoftInputMode="adjustPan" >

for more information please follow the Below link:
http://developer.android.com/guide/topics/manifest/activity-element.html#lmode

Comments

Post a Comment