title: AndroidStudio error: "Cannot resolve symbol Constants"
body: <p>I'm trying to send a message to server on PC wrote on JAVA. </p>
  
  <p>The problem is on the string <code>out.println(Constants.MOUSE_LEFT_CLICK);</code>:
  AndroidStudio says: </p>
  
  <blockquote>
    <p>Cannot resolve symbol Constants...</p>
  </blockquote>
  
  <pre><code> //Get reference to the TextView acting as mousepad
      mousePad = (TextView)findViewById(R.id.mousePad);
  
      //capture finger taps and movement on the textview
      mousePad.setOnTouchListener(new View.OnTouchListener() {
          @Override
          public boolean onTouch(View v, MotionEvent event) {
  
              if(isConnected &amp;&amp; out!=null){
                  switch(event.getAction()){
                      case MotionEvent.ACTION_DOWN:
                          //save X and Y positions when user touches the TextView
                          initX =event.getX();
                          initY =event.getY();
                          mouseMoved=false;
                          break;
                      case MotionEvent.ACTION_MOVE:
                          disX = event.getX()- initX; //Mouse movement in x direction
                          disY = event.getY()- initY; //Mouse movement in y direction
                          /*set init to new position so that continuous mouse movement
                          is captured*/
                          initX = event.getX();
                          initY = event.getY();
                          if(disX !=0|| disY !=0){
                              out.println(disX +","+ disY); //send mouse movement to server
                          }
                          mouseMoved=true;
                          break;
                      case MotionEvent.ACTION_UP:
                          //consider a tap only if usr did not move mouse after ACTION_DOWN
                          if(!mouseMoved){
                              out.println(Constants.MOUSE_LEFT_CLICK);
                          }
                  }
              }
              return true;
          }
      });
  }
  </code></pre>