Cannot figure out why this keeps on generating an error when being compiled with B4A inline java code.
path.addArc((float) 0.0, (float) 0.0, (float) (targetWidth/2.0), (float) (targetHeight/2.0), (float) 180.0, (float) 100.0);
B4A version 4.30
Parsing code. 0.00
Compiling code. 0.06
Compiling layouts code. 0.00
Generating R file. 0.05
Compiling generated Java code. Error
javac 1.6.0_15
src\JHS\BubbleBitmap\main.java:579: addArc(android.graphics.RectF,float,float) in android.graphics.Path cannot be applied to (float,float,float,float,float,float)
path.addArc((float) 0.0, (float) 0.0, (float) (targetWidth/2.0), (float) (targetHeight/2.0), (float) 180.0, (float) 100.0);
^
1 error
targetWidth and targetHeight are declared as type int
It should use
android.graphics.Path
that I am already importing. The error above refers to
addArc(android.graphics.RectF,float,float)....??
path.addArc((float) 0.0, (float) 0.0, (float) (targetWidth/2.0), (float) (targetHeight/2.0), (float) 180.0, (float) 100.0);
B4A version 4.30
Parsing code. 0.00
Compiling code. 0.06
Compiling layouts code. 0.00
Generating R file. 0.05
Compiling generated Java code. Error
javac 1.6.0_15
src\JHS\BubbleBitmap\main.java:579: addArc(android.graphics.RectF,float,float) in android.graphics.Path cannot be applied to (float,float,float,float,float,float)
path.addArc((float) 0.0, (float) 0.0, (float) (targetWidth/2.0), (float) (targetHeight/2.0), (float) 180.0, (float) 100.0);
^
1 error
targetWidth and targetHeight are declared as type int
It should use
android.graphics.Path
that I am already importing. The error above refers to
addArc(android.graphics.RectF,float,float)....??
Last edited: