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

Simple code to Display Month of Date ,from int(means in the form of String) to String..(e.G:2->February)...in Android

String date="11/11/2011";///(String) android.text.format.DateFormat.format("MM-dd-yyyy", new java.util.Date());
        System.out.println("-------Given Date---"+date);
        //Converting String type to Date..
        SimpleDateFormat df = new SimpleDateFormat("MM-dd-yyyy");
        Date date1=null;
        try {
           
            date1 = df.parse(date);///Converting the given String to Date dataType..
        } catch (ParseException e) {
           
            e.printStackTrace();
        }
        String updateDate=(String) android.text.format.DateFormat.format("MMMM dd yyyy", date1);
        System.out.println("----------updateDate----"+updateDate);

Comments