Android Show keyboard automatically

consider you want to show keyboard when new activity started and your edittext also have focus for this you can use following code EditText txtRecieverName=(EditText)findViewById(R.id.txtRecieverName); if(txtRecieverName!=null){ txtRecieverName.requestFocus(); getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE); }  

Continue reading

php soap client and soap client xml request

calling webservice from php is easy now for this we can use SoapClient object . we can do this in two ways first we will see when you have wsdl url like soap service of weather $client = new SoapClient(“https://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl”); $res = $client->GetWeather(array(‘CityName’ => ‘Islamabad’, ‘CountryName’ => ‘Pakistan’)); dump($res) In

Continue reading

Reading JSON Files from javascript

Today i am going to tell you how you can read a hirerical file of json using javascript . I have a json file with following format { “pakistan”:{ “provinces”:”5″, “cities”:”30″, “flagcolors”:”2″ }, “india”:{ “provinces”:”32″, “cities”:”200″, “flagcolors”:”3″ }   you can read this file using following javascript code function readJsonFile(){

Continue reading

Tamarind benifits

Tamarind is a fruit.Which commonly found in market and usually we just ignore it but it have lot of benifits for health . First of all tamarind is good for digistive system it contain good amount of fiber. It mainitain blood pressure.It is also good for kidneys,skin and hairs.it has vitmain

Continue reading