Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
/** * This method is so huge, * because it does a lot of FANCY painting. * We could shorten this method to a few lines. * But as users like eye-candy apps ;) ... */ protected class MyLocationOverlay extends Overlay { @Override public void draw(Canvas canvas, PixelCalculator calculator, boolean shadow) { super.draw(canvas, calculator, shadow); // Setup our "brush"/"pencil"/ whatever... Paint paint = new Paint(); paint.setTextSize(14); // Create a Point that represents our GPS-Location Double lat = FriendFinderMap.this.myLocation.getLatitude() * 1E6; Double lng = FriendFinderMap.this.myLocation.getLongitude() * 1E6; Point point = new Point(lat.intValue(), lng.intValue()); int[] myScreenCoords = new int[2]; // Converts lat/lng-Point to OUR coordinates on the screen. calculator.getPointXY(point, myScreenCoords); // Draw a circle for our location RectF oval = new RectF(myScreenCoords[0] - 7, myScreenCoords[1] + 7, myScreenCoords[0] + 7, myScreenCoords[1] - 7); // Setup a color for our location paint.setStyle(Style.FILL); paint.setARGB(255, 80, 150, 30); // Nice strong Android-Green // Draw our name canvas.drawText(getString(R.string.map_overlay_own_name), myScreenCoords[0] +9, myScreenCoords[1], paint); // Change the paint to a 'Lookthrough' Android-Green paint.setARGB(80, 156, 192, 36); paint.setStrokeWidth(1); // draw an oval around our location canvas.drawOval(oval, paint); // With a black stroke around the oval we drew before. paint.setARGB(255,0,0,0); paint.setStyle(Style.STROKE); canvas.drawCircle(myScreenCoords[0], myScreenCoords[1], 7, paint); int[] friendScreenCoords = new int[2]; //Draw each friend with a line pointing to our own location. for(Friend aFriend : FriendFinderMap.this.nearFriends){ lat = aFriend.itsLocation.getLatitude() * 1E6; lng = aFriend.itsLocation.getLongitude() * 1E6; point = new Point(lat.intValue(), lng.intValue()); // Converts lat/lng-Point to coordinates on the screen. calculator.getPointXY(point, friendScreenCoords); if(Math.abs(friendScreenCoords[0]) < 2000 && Math.abs(friendScreenCoords[1]) < 2000){ // Draw a circle for this friend and his name oval = new RectF(friendScreenCoords[0] - 7, friendScreenCoords[1] + 7, friendScreenCoords[0] + 7, friendScreenCoords[1] - 7); // Setup a color for all friends paint.setStyle(Style.FILL); paint.setARGB(255, 255, 0, 0); // Nice red canvas.drawText(aFriend.itsName, friendScreenCoords[0] +9, friendScreenCoords[1], paint); // Draw a line connecting us to the current Friend paint.setARGB(80, 255, 0, 0); // Nice red, more look through... paint.setStrokeWidth(2); canvas.drawLine(myScreenCoords[0], myScreenCoords[1], friendScreenCoords[0], friendScreenCoords[1], paint); paint.setStrokeWidth(1); // draw an oval around our friends location canvas.drawOval(oval, paint); // With a black stroke around the oval we drew before. paint.setARGB(255,0,0,0); paint.setStyle(Style.STROKE); canvas.drawCircle(friendScreenCoords[0], friendScreenCoords[1], 7, paint); } } } }