
Search In
Sometimes we need to resize image in Java to fulfil our requirement. You can use the below code to resize image in Java very easily:
Define the dimension boundary of which you want resized image as below
Dimension boundary = new Dimension(350, 35
Wiring MongoDB Repository Class with SpringMVC:- Spring Data point out the specialties of repository support for MongoDB. To use the repository concept you have to define your repository and attach the required XML element inside Spring Context XML f
In the below example I have created a custom toast Function in Android, the toast will open in center of the screen. Here I have used a image, image shown below contains a toast at the bottom of the screen. For more see the below code, in which I hav
In unity physics plays a very impotant role .So to make the object rotate real and affected by force. We have to set the physics of unity 4 engine manually.If you are using unity 5 then things goes someway different.
Unity 4
To achieve the affect
You can simply use below code to show the multiple markers on google map.
var arr = new Array();
function initialize() {
var i;
var Locations = [
{
lat:48.856614,
鈥淏ut others were firing by the hundreds. I remember when I came in, on April 1, 2010, we looked at the backlog, and while we had a lot of promises, nothing came out, so we had to change focus and change direction, and add new markets, and I think tha
Sometimes we need to show a overlay view over the main view so that user not able to click on the background view assets like button click.
in order to display the overlay view use the following function--
- (void)getOverlayView{
overlayView=[[U
Hi i am currently working on an android application in it has list view inside the main activity. What i want is disable the scrolling of list and allow the whole page to scroll only,is there any way for that please do help.....
I tried with belo
A module is light weight extension which pulls information from database or from joomla components.It can be placed in any predefined module position within joomla template.
For Creating any custom module we need to create four basic files which
In the below example I have created an animation splash screen. Here I have first created animate.xml and traslate.xml layout in anim folder and in activity_main.xml layout I have added ImageView. I have used AnimationUtil.loadAnimation method in Mai
