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 Display Activity as dialog on center of Screen with no Title,Android

Here we can display any Activity in the form of Dialog, by just adding Theme to that Activity in AndroidManifest file:   Theme.Dialog in your AndroidManifest.xml

After doing that dialog will be displayed ,but it has default Title having Application name..
To avoid that title U must remove the title by specifying :

this.requestWindowFeature(Window.FEATURE_NO_TITLE);
  in Ur Activitys onCreate() method..then u will get it.

//Remove title bar
this.requestWindowFeature(Window.FEATURE_NO_TITLE);

//Remove notification bar
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
Note: i used this in my SnailMail  proj in FilesListScreen.java file

Comments