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.)

}
}

Tuesday, February 28, 2017

A mobile phone can be seen now in the hands of everyone. Most of the smartphones. The world is coming to grip to be really small. Which was made possible through the mobile.
The technical work, they are sitting in front of a computer most of the time. But others are running around. Need portable computer. Created laptop. But due to power problems and needs that have to carry a device which will revolve all the time with. There will always be. All work can be useful.

Saturday, February 25, 2017


What is C?
First, we want to know what the C programming required. Kararai today's technology at this stage that C is supposed to be unknown. However, the C programming language. Our people and specific language is the same language as the computer. There are a variety of programming languages.

Basic details of PHP

 PHP (PHP) is called hypertext preprocessor (Hypertext Preprocessor). PHP is a programming language. This is known as server-side scripting language. And the creation of dynamic web sites intrakatibha PHP is a powerful language. It is an open source scripting general parapoja lyanguyeja was more popular with web programmers. AP HP also provides maximum security for stored data on the Web. PHP is HTML (HTML) also can be used. Several advanced open source content 

Friday, February 24, 2017

Create a Graphical door by C (Graphics Programme)




#include<graphics.h>
#include<conio.h>
#include<dos.h>

int project1();
int project2();
main(){
int driver, mode;
driver=DETECT;
mode=0;
initgraph(&driver,&mode,"C:\\tc\\bgi");
project1();
project2();

Thursday, February 23, 2017

To draw a Bangladesh national flag by C graphics programme


Output image


Install Turbo C++/Code blocks (Graphic version) and follow the code...

#include<graphics.h>
#include<conio.h>
main(){
int driver,mode;
driver=DETECT;
mode=0;