Daily Archives: March 9, 2018

2 posts

Android camera snippet code download

Android Program – Camera Activity

ANDROID FOR FRESHERS  Android Program of Camera Activity Java Code(CameraAct) import android.app.Activity; import android.content.Intent; import android.provider.MediaStore; import android.os.Bundle; import android.view.View; public class CameraAct extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_camera); } public void next(View v) { Intent i= new Intent(MediaStore.ACTION_IMAGE_CAPTURE); startActivity(i); } } Layout XML Code(activity_camera) […]

Android Alert Dialog snippet source code download

Android Alertdialog Example

Android For Freshers Android Alert Dialog Example Java Code (AlertDialogAct) import android.app.Activity; import android.content.DialogInterface; import android.content.Intent; import android.support.v7.app.AlertDialog; import android.os.Bundle; import android.view.View; import android.widget.Toast; public class AlertDialogAct extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_alert_dialog2); } public void next(View v) { AlertDialog ad= new AlertDialog.Builder(this) .setTitle(“Alert Message”) […]