CSE 486/586 CSE 486/586 Distributed Systems Android Programming --- 3 Steve Ko Computer Sciences and...

5
CSE 486/586 CSE 486/586 Distributed Systems Android Programming --- 3 Steve Ko Computer Sciences and Engineering University at Buffalo

Transcript of CSE 486/586 CSE 486/586 Distributed Systems Android Programming --- 3 Steve Ko Computer Sciences and...

Page 1: CSE 486/586 CSE 486/586 Distributed Systems Android Programming --- 3 Steve Ko Computer Sciences and Engineering University at Buffalo.

CSE 486/586

CSE 486/586 Distributed Systems

Android Programming --- 3

Steve KoComputer Sciences and Engineering

University at Buffalo

Page 2: CSE 486/586 CSE 486/586 Distributed Systems Android Programming --- 3 Steve Ko Computer Sciences and Engineering University at Buffalo.

CSE 486/586

Recap

• setContentView()• Layout and the R class• findViewById()• Event handler registration using an Anonymous class• Getting text input from an EditText• Displaying a string on a TextView

2

Page 3: CSE 486/586 CSE 486/586 Distributed Systems Android Programming --- 3 Steve Ko Computer Sciences and Engineering University at Buffalo.

CSE 486/586

Today

• Threading• Networking restrictions• Debugging

3

Page 4: CSE 486/586 CSE 486/586 Distributed Systems Android Programming --- 3 Steve Ko Computer Sciences and Engineering University at Buffalo.

CSE 486/586

The Hack: Emulator Port Forwarding

4

AVD0

IP: 10.0.2.15

AVD1

IP: 10.0.2.15

VR0 VR1

Host

IP: 10.0.2.2

10000 10000

11108 11112

Page 5: CSE 486/586 CSE 486/586 Distributed Systems Android Programming --- 3 Steve Ko Computer Sciences and Engineering University at Buffalo.

CSE 486/586

CSE 486/586 Administrivia

• PA 1 grades will be posted tonight.• PA 2 will be out soon.• Please use Piazza; all announcements will go there.• Please come talk to me:

– If you feel that you made an honest effort for PA1, but you didn’t accomplishing what you wanted.

• Please come to my office during the office hours!– Give feedback about the class, ask questions, etc.

5