title: canvas.drawPoint not working in 4.4 or 5.0
body: <p>I have been facing this problem since months ago, i couldn't find anything about it.</p>
  
  <p>I have an application with the function canvas.drawPoint and it's never drawing anything in android 4.4 or 5.0 or higher.</p>
  
  <p>But it's perfectly working from 2.3 until 4.2, i actually tested different real devices to say so.</p>
  
  <p>The same for the virtual devices.</p>
  
  <p>The problem is only with points because drawing rectangles or lines with canvas.drawRect or canvas.drawLine is perfectly working even in the same app.</p>
  
  <p>Example:</p>
  
  <pre><code>canvas.drawRect(0, 0, 400, 400, paint); // working for all devices
  for (int ii=0;ii&lt;500+1;ii++) 
          {
              for (int jj=0;jj&lt;500+1;jj++)
              {  canvas.drawPoint(ii, jj, paint);  //not working for higher than 4.4 android version
                  } }
  </code></pre>
  
  <p>This will draw the first 400*400 rectangle but not the second 500*500 series of points.</p>
  
  <p>For my real application it is using 2 classes, i actually deleted some calculations, and oncliklistners just to make it simple but not working.</p>
  
  <p>DrawView.java</p>
  
  <pre><code>package com.example.hazim.myapplication;
  
  import android.content.Context;
  import android.graphics.Canvas;
  import android.graphics.Paint;
  import android.util.AttributeSet;
  import android.view.View;
  
  public class DrawView extends View {
      int pr=150;int pry=150; int it=23; double cx=-0.1;double cy=0.65;
      Paint paint = new Paint();
  
  
  
      public DrawView(Context context, AttributeSet att) {
          super(context, att); //set the color in the creator of drawview
          paint.setARGB(255, 150,150,150);
      }
  
  
      @Override
      public void onDraw(Canvas canvas) {
  
          super.onDraw(canvas);
              canvas.drawRect(0, 0, 100, 100, paint); // as a test the drawview display
  
  
          double prr=pr; double pryy=pry;
  
  
          for (int ii=0;ii&lt;pr+1;ii++) //pass the screen pixels in 2 directions
          {
              for (int jj=0;jj&lt;pry+1;jj++)
              {
                      canvas.drawPoint(ii, jj, paint); 
              }
          }
      }
      //parameter setters
      public void setpr(int a) {pr=a;}
      public void setpry(int a) {pry=a;}
      public void setcx(double a) {cx=a;}
      public void setcy(double a) {cy=a;}
  
  }
  </code></pre>
  
  <p>and here is the MainActivity.java</p>
  
  <pre><code>package com.example.hazim.myapplication;
  
  import android.os.Bundle;
  import android.view.View;
  import android.view.inputmethod.InputMethodManager;
  import android.widget.Button;
  import android.widget.EditText;
  import android.app.Activity;
  import android.content.Context;
  
  public class MainActivity extends Activity {
      DrawView drawView=null; //instanciation of drawview
      Button bouton=null;
      EditText cx=null;
      EditText cy=null;
      EditText pr=null;
      EditText pry=null;
  
  
      public void onCreate(Bundle savedInstanceState) {
  
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main); // display activity main XML
  
          drawView = (DrawView)findViewById(R.id.drawView1); // load the drawView
          bouton = (Button)findViewById(R.id.button1); // load the button
          cx = (EditText)findViewById(R.id.EditText02); // load the 4 editTexts
          cy = (EditText)findViewById(R.id.EditText01);
          pr = (EditText)findViewById(R.id.EditText03);
          pry = (EditText)findViewById(R.id.EditText04);
  
  
  
      }
  }
  </code></pre>