Main.java:1: error: class MainActivity is public, should be declared in a file named MainActivity.java
public class MainActivity extends Activity {
^
Main.java:1: error: cannot find symbol
public class MainActivity extends Activity {
^
symbol: class Activity
Main.java:4: error: cannot find symbol
protected void onCreate(Bundle savedInstanceState) {
^
symbol: class Bundle
location: class MainActivity
Main.java:6: error: package android.os does not exist
android.os.Debug.waitForDebugger();
^
Main.java:8: error: cannot find symbol
super.onCreate(savedInstanceState);
^
symbol: variable super
location: class MainActivity
Main.java:9: error: cannot find symbol
Screen screen = new Screen(this,(WindowManager)getSystemService(WINDOW_SERVICE));
^
symbol: class Screen
location: class MainActivity
Main.java:9: error: cannot find symbol
Screen screen = new Screen(this,(WindowManager)getSystemService(WINDOW_SERVICE));
^
symbol: class Screen
location: class MainActivity
Main.java:9: error: cannot find symbol
Screen screen = new Screen(this,(WindowManager)getSystemService(WINDOW_SERVICE));
^
symbol: class WindowManager
location: class MainActivity
Main.java:9: error: cannot find symbol
Screen screen = new Screen(this,(WindowManager)getSystemService(WINDOW_SERVICE));
^
symbol: variable WINDOW_SERVICE
location: class MainActivity
Main.java:11: error: cannot find symbol
Executors.newSingleThreadScheduledExecutor().scheduleAtFixedRate(screen, 1, 500, TimeUnit.MILLISECONDS);
^
symbol: variable TimeUnit
location: class MainActivity
Main.java:11: error: cannot find symbol
Executors.newSingleThreadScheduledExecutor().scheduleAtFixedRate(screen, 1, 500, TimeUnit.MILLISECONDS);
^
symbol: variable Executors
location: class MainActivity
Main.java:3: error: method does not override or implement a method from a supertype
@Override
^
12 errors