Monday, March 27, 2017

How to install Xampp local server

PHP development is a type of language. Our local PC through which we could easily make a server. For this we must first Xampp install.
Click on this link to download Xampp.

Xampp Once you download it you have to double-click to install.
Xampp install the video below to see how it would be to be able to understand ...


Subscribe my YouTube channel to learn more...


Thursday, March 16, 2017

How to use SQL in android app

Shared Preferences we usually use for data persistence Android. But the more complex the data or the data for the persistence  SharedPreferences is not a good option. So we have to use file storage or database. As the open source SQLite database system, which is built on Android. This database offline. This device contains a file store.Four database operation is the Create, Read, Update, Delete short CRUD. Simple create an app in which we will learn about the four operations.

Thursday, March 2, 2017

Click on the different ways to declare the listener

Different type of onClick listener


1st method:

1. The Xml Android: Onclick = "name" to be selected.
II. Now that the methada to build Java. As public void name (View v) {}

2nd method:

1. Button to Decleare. As Button newButton;
II. Xml button to connect at will. For example btnTest = (Button) findViewById (R.id.btnTest);
3. Then call. For example:

btnTest.setOnClickListener (new OnClickListener () {

@Override
public void onClick (View v) {
Log.e ( "Hi", "hi");

}
});


3rd method:


public class MainActivity extends Activity implements OnClickListener {
Button btnTest;
@Override
protected void onCreate (Bundle savedInstanceState) {
super.onCreate (savedInstanceState);
setContentView (R.layout.activity_main);
btnTest = (Button) findViewById (R.id.btnTest);
btnTest.setOnClickListener (this);

}
@Override
public void onClick (View v) {
(Declare the action buttons.)

}
}