ś Debug - ListContacts/src/pl/ww/examples/listcontacts/ListContactsActivity.java - EcIipseSDK File Edit Refactor Source Run Navigate Seąrch Project Window Help
rs - Ł3 H fe J? ^
^ Debug
^ [o] ListContacts [Android Application] a DalvikVM[localhost:8627]
a Thread [<1> main] (Suspended (breakpoint at linę 43 in ListContactsActivity))
= ListContactsActivity.setPeopleNameO linę: 43 = ListContactsActivity.onCreate(Bundle) linę: 20 = Instrumentation.callActivityOnCreate(Activity, Bundle) linę: 1047 = ActivityThread.performLaunchActivity(ActivityThread$ActivityRecord, Intent) linę: 262 = ActivityThread.handleLaunchActivity(ActivityThreadSActivityRecord, Intent) linę: 2679 = ActivityThread.access$2300(ActivityThread, ActivityThreadSActivityRecord, Intent) linę = ActivityThreadSH.handleMessage(Message) linę: 2033 = ActivityThread$H(Handler).dispatchMessage(Message) linę: 99
nr
| - $ t O O -r -r |
53” Debug |
» |
(x)= Variables £2 °o Breakpoints ^8 Expressions |
6 ^ 0 v a |
□ |
Name |
Value |
> |
© this |
ListContactsActivity (id=83( | |
O phones |
ContentResolverSCursorWra | |
O cr |
ContextImplSApplicationCo | |
O contactUri |
UriSHierarchicalUri (id=830( | |
O contacts |
ContentResolverSCursorWra |
▼ |
4 | III |
k | |
r | ||
> | ||
4 |
Y |
|ęil DateWidget Manifest [ęfj HelloAndroidExample Manifest [ęjj mainocml [ęjj stringsotml | LL ListContactsActivity.java
String display_name = contacts.getString(contacts.getColumnIndex(ContactsContract.Contacts.0ISPZ./ * String id = contacts.getString(contacts.getColumnIndex(ContactsContract.Contacts._ID)); lines += id + ": " + display_name;
if (contacts. getlnt (contacts. getColumnIndex(ContactsContract .Contacts ,HAS_PHONE_NU!-]BER)) == 1){ Cursor phones = cr.query(CommonDataKinds.Phon^.CO/Vr£/Vr_L//?I, nuli,
Contact sContract.CommonDataKinds. Phone. COJV7ACr_I0 + ” = ?", new String[]{id}, nuli);
while (phones.moveToNext())
String phone = phones. getString(phones. getColumnIndex(CommonDataKinds. Phone ,NUr-\BER)); lines += "(" + phone
m
□!: Outline 53
{Jł pl.ww.examples.listcontacts import declarations © ListContactsActivity
onCreate(Bundle): void © setPeopleNameO: void
S Console 53 \ Tasks Android
r—~;-
iffi LogCat
[2011-11-[2011-11-[2011-11-[2011-11-[2011-11-[2011-11-[2011-11-[2011-11-[2011-11-[2011-11-[2011-11-[2011-11-[2011-11-T2011-11 -
4
13 22:17:51 - ListContacts] 13 22:17:51 - ListContacts] 13 22:17:51 - ListContacts] 13 22:17:51 - ListContacts] 13 22:17:51 - ListContacts] 13 22:17:51 - ListContacts] 13 22:17:57 - ListContacts] 13 22:17:57 - ListContacts] 13 22:18:57 - ListContacts] 13 22:18:57 - ListContacts] 13 22:18:58 - ListContacts] 13 22:19:23 - ListContacts] 13 22:19:23 - ListContacts] 13 77:19:7fi - li ^tCnntartO
Android Launch!
adb is running normally.
Performing pl.ww.examples.listcontacts.ListContactsActivity activity launch Automatic Target Modę: launching new emulator with compatible AVD 'Android_2.2'
Launching a new emulator with Virtual Device 'Android_2.2'
New emulator found: emulator-5554
Waiting for HOME (’android.process.acore') to be launched...
HOME is up on device 'emulator-5554’
Uploading ListContacts.apk onto device 'emulator-5554'
Installing ListContacts.apk...
Success!
Starting activity pl.ww.examples.listcontacts.ListContactsActivity on device emulator-5554
Arti ui tvManappr : ^tartinp: Tntpnt -f art=androi H . i ntpnt. art i nn . MATN ratsfandrnid . i ntpnt. ratppnrv. I AlINCHFRl
iii
rmn=nl . ww. pxamnl p«;
►
Writable
Smart Insert
38:66
Launching ListContacts