Skip to main content

Posts

Showing posts with the label Andorid

Insert, Delete and view the data from the database -Android

MyApp.java package dharan.dharani.com.myapplication; /**  * Created by vdharanidharan on 04-Jul-17.  */ import android.app.Activity; import android.app.AlertDialog.Builder; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.EditText; import static android.R.id.message; import static dharan.dharani.com.myapplication.R.attr.title; import static dharan.dharani.com.myapplication.R.string.view; public class MyApp extends Activity implements OnClickListener {     EditText editRollno,editName,editMarks;     Button btnAdd,btnDelete,btnModify,btnView,btnViewAll,btnShowInfo;     SQLiteDatabase db;     /** Called when the activity is first created. */     @Override     public void onCreate(Bund...

LOGIN SCREEN APP - ANDROID

Let get started with the android programming and make it easier to learn by self to brain who are eager in it. here is my simple login screen application using  ANDROID MainActivity.java package dharan.dharani.com.myloginsscreen; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.app.Activity; import android.graphics.Color; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; import android.widget.Toast; public class MainActivity extends Activity  {     Button b1,b2;     EditText ed1,ed2;     TextView tx1;     int counter = 3;     @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);         ...