今天在学校学习了安卓安卓实现打电话发短信功能,写了一下午终于做好了

lv.setOnItemLongClickListener(newOnItemLongClickListener() {

 

                 @Override

                 publicbooleanonItemLongClick(AdapterView<?> parent, View view,

                            int position, long id) {

                     

                        Intent i=new Intent(getApplicationContext(), SmsActivity.class);

                       i.putExtra("number",phones[position]);

                        startActivity(i);

                     

                      returntrue;

                 }

           });