Mobile apps are making a deep curiosity among the app developers. The challenge of converting the real time scenarios and binding into mobile is a market need.  Currently android platform being the open source is making the real craze.  Learning the android basics is an easy task but exploring the new apps really need to have skills. For the newbie’s, here is a simple demo of “Text to Speech Converter “.

I will guide you through all the basic phase of development.

1. After having all your installation done start with the new project select android application.

Name it “TextToSpeech_Converter”. And select Blank layout or xml.

Following will be your activity_main.xml. It is the graphical view.

Main XML

2. Now drag one edit text and a button

Drag and Drop TextView

3. Now at the bottom click on activity_main.xml

Make Two changes in it.

Change  android:text property of both ” EditText and Button”

Then save changes and go to graphical view of xml and see changes

XML File

4. Now  go to the src folder an open MainActivity.java

src Folder Screenshot

5. In onCreate() method verify  the name of layout is same as mentioned.

onCreate() Code Screenshot

6. In order to get the data from edittext  we need to find it in .xml file  and similarly for the button.

So make following  changes int the onCreate method.

private Button btnSpeak;

private EditText txtText;

public void onCreate(Bundle savedInstanceState) {



btnSpeak = (Button) findViewById(R.id.button1);

txtText = (EditText) findViewById(R.id.editText1);


7. Now you need to  regonize the click event of the button , so modify it as follows

         protected void onCreate(Bundle savedInstanceState) {



tts = new TextToSpeech(this, this);

btnSpeak = (Button) findViewById(R.id.button1);

txtText = (EditText) findViewById(R.id.editText1);

// button on click event

btnSpeak.setOnClickListener(new View.OnClickListener() {


public void onClick(View arg0) {

speakOut();<———— this method is to be implemented to read the text.



8. Create the method as follows

private void speakOut() {

String text = txtText.getText().toString();

tts.speak(text, TextToSpeech.QUEUE_FLUSH, null);   }

9. Your final activity looks like

Activity Class Final

Now you are ready to run your first app.

Best of luck and go trying with basic applications.


SQL injection Current high threat In Database Attack

Enterprise database infrastructures, which often contain the crown jewels of an organization, are subject to a wide range of attacks on the Data stored at their Backend.

The face of the attacks may vary in the list,

 1. Excessive privileges           

2. Privilege abuse    

3. SQL injection         

 4. Platform vulnerabilities                   

5. Exposure of backup data        

6. Weak audit           

7. Denial of service     

8. Weak authentication               

9. Database protocol vulnerabilities  

10.Unauthorized privilege elevation

Continue reading