Here's what I've got (go easy, please):
Manifest:
Using xml Syntax Highlighting
- <?xml version="1.0" encoding="utf-8"?>
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="com.ipaulpro.calls"
- android:versionCode="1"
- android:versionName="1.0.0">
- <application android:icon="@drawable/icon" android:label="@string/
- app_name" android:debuggable="true">
- <activity android:name=".Calls"
- android:label="@string/app_name">
- <intent-filter>
- <action android:name="android.intent.action.MAIN" />
- <category
- android:name="android.intent.category.LAUNCHER" />
- </intent-filter>
- </activity>
- </application>
- <uses-permission android:name="android.permission.READ_CONTACTS"></
- uses-permission>
- </manifest>
Parsed in 0.003 seconds, using GeSHi 1.0.8.4
Calls.java
Using java Syntax Highlighting
- package com.ipaulpro.calls;
- import android.app.ListActivity;
- import android.database.Cursor;
- import android.os.Bundle;
- import android.provider.CallLog;
- import android.widget.ListAdapter;
- import android.widget.SimpleCursorAdapter;
- public class Calls extends ListActivity {
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.main);
- Cursor c = getContentResolver().query(
- android.provider.CallLog.Calls.CONTENT_URI,
- null, null, null,
- android.provider.CallLog.Calls.DATE+ " DESC");
- startManagingCursor(c);
- ListAdapter adapter = new SimpleCursorAdapter(
- this,
- android.R.layout.simple_list_item_1,
- c,
- new String[] {CallLog.Calls.CACHED_NAME},
- new int[] {CallLog.Calls.MISSED_TYPE}
- );
- setListAdapter(adapter);
- }
- }
Parsed in 0.033 seconds, using GeSHi 1.0.8.4
Main.xml
Using xml Syntax Highlighting
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/
- android"
- android:orientation="vertical"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent">
- <ListView android:id="@id/android:list"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- />
- <TextView id="@+id/row_number"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- />
- </LinearLayout>
Parsed in 0.002 seconds, using GeSHi 1.0.8.4
So the app starts, but displays an empty list (with borders).
Any helps, tips, links would be very appreciated.
Thanks in advance.

