Now on i tried to Run my code, there is error as follows,
"Unable to execute dex: java.nio.BufferOverflowException. "
I tried to check it line by line, but not solve yet
anyone can give me some advise,
Thank you
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
Now on i tried to Run my code, there is error as follows,
"Unable to execute dex: java.nio.BufferOverflowException. "
I tried to check it line by line, but not solve yet
anyone can give me some advise,
Thank you
Hi,
Please post your full code what you have tried.
Happy to help
Thanks,
ERROR COME FROM private WindowManager wm;public class MyView extends RelativeLayout { // Bitmap localBitmap; private static final String TAG = "MyView"; // private final int FP = -1; // private final int WC = -2; public boolean disableApplication = false; private int imgType = 1; public boolean isBlack = false; boolean isInitialized; private Bitmap myBitmap; private Paint myPaint = new Paint(); private int[] numbers; private Tama[] oyatamaArray; private Tama[][] tamaArray; private Bitmap localBitmap; private Context ctx; private WindowManager wm;
public int getWinHeight() { ctx = getContext(); wm = (WindowManager) ctx.getSystemService(Context.WINDOW_SERVICE); DisplayMetrics displaymetrics = new DisplayMetrics(); int height = displaymetrics.heightPixels; // int width = displaymetrics.widthPixels; return height; } public int getWinWidth() { ctx = getContext(); wm = (WindowManager) ctx.getSystemService(Context.WINDOW_SERVICE); DisplayMetrics displaymetrics = new DisplayMetrics(); // int height = displaymetrics.heightPixels; int width = displaymetrics.widthPixels; return width;