Tuesday, 10 October 2017

JSON Sample for android

{ 
"worldpopulation": 
 [
   {
   "rank":1,
   "country":"China",
   "attachement_count":"1",
   "population":"1,354,040,000",
   
   "images":[{"flag":"http://webneel.com/wallpaper/sites/default/files/images/04-2013/mountain-high-wallpaper.preview.jpg"}]
   
   }, 
  
   {
   "rank":2,
   "country":"India",
   "population":"1,210,193,422",
   "attachement_count":"2",
   "images":[{
   "flag":"http://miriadna.com/desctopwalls/images/max/Summer-in-mountains.jpg"},{
   "flag":"https://www.hdwallpapers.in/walls/mount_pilatus-wide.jpg"}
   ]
   }, 
   
   {
   "rank":3,
   "country":"United States",
   "population":"315,761,000",
   "attachement_count":"3",
   "images":[
   {
   "flag":"https://twistedsifter.files.wordpress.com/2015/03/china-deep-in-the-guangxi-province-m-1.jpg"},
   {
   "flag":"https://images6.alphacoders.com/329/329135.jpg"},
   {
   "flag":"https://www.hdwallpapers.in/walls/mount_pilatus-wide.jpg"}
   ]
   }, 
   
   {
   "rank":4,
   "country":"Indonesia",
   "population":"237,641,326",
   "attachement_count":"4",
   "images":[
   {
   "flag":"https://twistedsifter.files.wordpress.com/2015/03/china-deep-in-the-

Tuesday, 31 January 2017

World top 5 slimest phones ever

1. Micromax canvas sliver 5(5.1mm).
2.vivo v5 max (4.75 mm).
3.oppo R5s (4.85 mm).
4.Gionee elife s7(5.5 mm).
5.Samsung glaxy a8 (5.9 mm).

Tuesday, 27 September 2016

How to stop talkback of your android

Step 1:Use your two finger to slide your phone screen and keep different your fingers.
Step 2: Go to settings>accessibility>talk back then click on "off" button

Thanks.

Monday, 14 December 2015

How to create a bootable pendrive

To create a bootable pendrie without any softwere follow these steps
Step 1.

First of all format your pendrive in "NTFS" by select it NTFS to "FAT 32(Default)"

if you don't understand then look as in pic


Fomate your Pendrive


Step 2.

Copy Setups of your Operating System and then Paste it in pendrive, and wait to complete the copy of files in pendrive after complete copying, now your bootable pendrive is created








How to create JVM (Java Vertual Machine)

To create JVM (Java Virtual Machine) there are two simple steps that is :

Step 1.
Open folder where your JDK Install, that is in C drive

Then Open these location: "C:\Program Folder\Java\jdk1.7.0\bin" if you not found these location then
it may be as :"C:\Program Files (x86)\Java\jdk1.7.0_45\bin"
and copy the path

Step 2.
Now
Open Properties of  your system by right click on your Computer Icon then open "Advance System Setting" then open "Environment variables" then click on "New" then you will see two text fields that is "Variable name" and "Variable value" in the first field variable name give any name and in the variable values paste path that was you copied then click on "OK" Button
here your JVM is created

Saturday, 12 December 2015

How to Download and install JDK and create JVM (Java Virtual Machine) and run your first java program

Follow the Following steps

Step 1.

First of all you should need to download JDK (Java Development Kit) so go to Official Site of Oracle and choose a version of JDK and downlod it, you can directly download latest version of JDK from here to Download Click Here

Step 2.

After download JDK install it by double click on .exe file and flow instruction and you can also install it by right click on exe file and choose "run as Administrator"

Step 3.

After successfully installing your JDK (Java Development Kit) Go to C > Program Files  and look for folder name "Java" and open folder then open jdk1.8.0 folder then open "bin" folder and copy the path of folders :  It may be look like as "C:\Program Files \Java\jdk1.7.0_45\bin"

If you not found "java" folder in "Program Files" then see these steps
open C drive then open Program Files (x86) then open Java folder then open jdk1.8.0 then open "bin" folder and copy the path
It should be look like as "C:\Program Files (x86)\Java\jdk1.8.0_45\bin"

Step 4.

after copy path roght click on Computer choose properties then click on "Advance system settings" then choose "Environment variables" then click on "New" then type any name in variable name and paste the path of folder that was we are coped then click on "OK" > "OK" button it click on two time on ok button

Now we have successful JVM (Java Vertual Machine) have created to test it see as Step5

Step 5.

open "Command Prompt" and Type "java -version" and heat the enter button then you can see your version of JDK

Step 6.
 Now to run your first java program follow these steps
1.create a java program such as

public class Hello
{
public static void main(String []args)
{
System.out.println("hello world");
}
}

2. save it as Hello.java it necessary to save your program file as similar to your class name of program as in my case i save it on my desktop such as "Hello.java"

3.now open your command prompt and find path, as in my case it is "cd desktop" because i save my file on desktop and then type "javac Hello.hava" and heat enter button to compile your java program

4.then type "java Hello" to run your program your program will show you output