পোস্টগুলি

2014 থেকে পোস্টগুলি দেখানো হচ্ছে

putExtra() and getExtra() ------------>send data from one activity to the other activity.

First activity..................   Intent intent = new Intent(First.this, Second.class); intent.putExtra("keyName", value); // pass your values and retrieve them in the other Activity using keyName startActivity(intent);   Second activity .......................... String data = getIntent().getExtra().getString("keyName","defaultKey"); //the second parameter is optional . If keyName is null then use the `defaultkey` as data.       ...........................OR..................................   Second activity ..........................         Bundle intent = getIntent().getExtras(); if (intent != null) { emonth = intent.getString("emonth"); ezone = intent.getString("ezone"); ecircle = intent.getString("ecircle"); esndesu = intent.getString("esndesu"); ebillgroup = intent.getString("ebillgroup"); ebook = intent.getString("ebook"); ecstno = intent.getStri

Custom listview Adapter in android

package com.rskhan; import java.util.ArrayList; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.View.OnFocusChangeListener; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.EditText; import android.widget.ImageView; import android.widget.TextView; public class Itemadapter extends BaseAdapter {     private static ArrayList<ItemDetails> itemDetailsrrayList;     Context context;     int position2 = 10000;     String activityType ;     private LayoutInflater l_Inflater;     public Itemadapter(Context context, ArrayList<ItemDetails> results,String activityType) {         itemDetailsrrayList = results;         l_Inflater = LayoutInflater.from(context);         this.context = context;         this.activityType = activityType;     }     public int getCount() {         return itemDetailsrrayList.size();     }     public Object getItem(int position) {         return itemDetailsrr

Android tutorial Http Response from apache server

Just create a new java class then copy this code..................... package com.rskhan; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import org.apache.http.HttpResponse; import org.apache.http.NameValuePair; import org.apache.http.client.HttpClient; import org.apache.http.client.entity.UrlEncodedFormEntity; import org.apache.http.client.methods.HttpPost; import org.apache.http.conn.params.ConnManagerParams; import org.apache.http.impl.client.DefaultHttpClient; import org.apache.http.params.HttpConnectionParams; import org.apache.http.params.HttpParams; import android.util.Log; public class CustomHttpClient {     /** The time it takes for our client to timeout */     public static final int HTTP_TIMEOUT = 30 * 1000; // milliseconds     /** Single instance of our HttpClient */     private static HttpClient mHttpClient;     /**      * Get our single instance of our HttpClient object

android camera example

How to open Camera in android example         private static final int CAMERA_REQUEST = 1888;      private ImageView imageView;         this.imageView = (ImageView)this.findViewById(R.id.ImageView1);         ImageButton photoButton = (ImageButton) this.findViewById(R.id.imageButton1);         photoButton.setOnClickListener(new View.OnClickListener() {             @Override             public void onClick(View v) {                 Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);                 startActivityForResult(cameraIntent, CAMERA_REQUEST);             }         });     }     protected void onActivityResult(int requestCode, int resultCode, Intent data) {          if (requestCode == CAMERA_REQUEST && resultCode == RESULT_OK) {              Bitmap photo = (Bitmap) data.getExtras().get("data");             imageView.setImageBitmap(photo);         } 

INSERT INTO SELECT Statement in sql

The INSERT INTO SELECT statement selects data from one table and inserts it into an existing table. Any existing rows in the target table are unaffected. SQL INSERT Syntax The syntax for the SQL INSERT statement when inserting a  record using the another table.   INSERT INTO table (column1, column2, ... ) SELECT expression1, expression2, ... FROM source_table WHERE conditions;   SQL INSERT INTO SELECT Examples   Copy only a few columns from another table......   INSERT INTO suppliers (supplier_id, supplier_name) SELECT account_no, name FROM customers WHERE city = 'Newark';  

How to create table in Sql ?

CREATE TABLE   in sql........... ########################################################### The SQL CREATE TABLE statement is used to create a new table. CREATE TABLE Syntax   CREATE TABLE table_name( column1 datatype, column2 datatype, column3 datatype, ..... columnN datatype, PRIMARY KEY( one or more columns ) FOREIGN KEY () UNIQUE()   constraint constraint_name  ); Example: CREATE TABLE Persons ( PersonID int, LastName varchar(255), FirstName varchar(255), Address varchar(255), City varchar(255) constraint pk_persons primary key (PersonID), constraint fk_persons foreign key primary_key_of_another_table );

How to install Apex

Oracle apex 4.0 installation in oracle database 11g quickly =========================================================== =========================================================== installation of oracle Database 11gr2 ====================================== you have moved the entire content of Components folder from File 2 (after unzipping Database > Stage > Components: ) to Component folder of file 1 (after unzipping F:\Oracle 11g EE R2\Oracle\database\stage\Components). Now you have got your complete Oracle Database 11g EE R2 Software in a single file. Now open setup.exe from Oracle Database 11g EE R2/database folder and continue the installation process. installation of Apex 4.0 into 11g =================================== 1)After downloading unzip it in the following directory : G:\app\apex_4_install\ its create a apex directory like :- G:\app\apex_4_install\apex 2) Now You need to create a Tablespace for apex data as below : SQL> CONN / AS SYS