Project 2 Discussion

Project 2 Discussion - • ipAdapter.add(str •...

Info iconThis preview shows pages 1–9. Sign up to view the full content.

View Full Document Right Arrow Icon
Notice the following information, the bold and red texts are where you Should focus on.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Android Tips
Background image of page 2
  < uses-permission  android:name = "android.permission.INTERNET"  />   </ manifest >  
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Intent i =  new  Intent(setup. this , CoList. class ); i.putExtra(CoList. KEY_PORT , port); i.putExtra(CoList. KEY_URL , url); startActivityForResult(i,  ACTIVITY_CREATE );
Background image of page 4
• final  Handler  mHandler  =  new  Handler() { – @Override – public   void  handleMessage(Message msg) { • Socket s = (Socket) msg. obj ; • socketList .add(s); • String str = s.getInetAddress().getHostAddress();
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 6
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 8
Background image of page 9
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: • ipAdapter .add(str); • setListAdapter( ipAdapter ); – } • }; • public boolean onKeyDown( int keyCode, KeyEvent event) { • pd = ProgressDialog.show( this , "Working. ." , "Calculating Pi" , true , • false ); • Thread thread = new Thread( this ); • thread.start(); • return super .onKeyDown(keyCode, event); • }...
View Full Document

This note was uploaded on 03/24/2011 for the course ECS 152a taught by Professor Ghoshal during the Fall '08 term at UC Davis.

Page1 / 9

Project 2 Discussion - • ipAdapter.add(str •...

This preview shows document pages 1 - 9. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online