Skip to main content

Posts

Showing posts with the label windows

Warning - No DNS Server found : Android

Mostly new android users face this problem when they install Android eclipse and run any created project than the below error comes on console of android eclipse and project does not run : Warning: No DNS servers found There is a simple solution to this issue.See below.. Go to -> Window -> Preferences -> Android -> Launch -> Default Emulator Option -> paste this: -dns-server 8.8.8.8,8.8.4.4 then Apply -> OK Now create any project you will never face this issue again.

How to create a full screen activity in Android

In this tutorial we are going to learn how to create a full screen Activity.. Copy and download the code and try yourself.. import android.os.Bundle; import android.view.Window; import android.view.WindowManager; import android.app.Activity; public class FullscreenActivities extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //removes the unwanted contents..... requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); //...................... setContentView(R.layout.activity_fullscreen_activities); }