why my listactivity show nothing?

Put your problem here if it does not fit any of the other categories.

why my listactivity show nothing?

Postby andrew » Tue Jan 22, 2008 3:58 am

I can see the view with correct title. But there is none list item.

Following is my code. Please advise.



ReminderListActivity.java
------------------------------------------------------------
import android.app.ListActivity;
import android.os.Bundle;
import android.widget.ArrayAdapter;

public class ReminderListView extends ListActivity {

public void onCrate(Bundle icicle) {
super.onCreate(icicle);

setListAdapter(new ArrayAdapter<String>(this,
android.R.layout.simple_list_item_1,
reminderTimeArray));
}

private String[] reminderTimeArray = { "5:30", "8:00", "9:30" };

}

AndroidManifest.xml
--------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.java23.erv">
<application android:icon="@drawable/icon">
<activity class=".ReminderListView" android:label="Easy Voice
Reminder">
<intent-filter>
<action android:value="android.intent.action.MAIN" />
<category
android:value="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
andrew
Once Poster
Once Poster
 
Posts: 1
Joined: Tue Jan 22, 2008 3:55 am

Top

Check your spelling

Postby raquibulbari » Tue Jan 22, 2008 9:51 am

what function did u override,
u r supposed to override
Code: Select all
public void onCreate(Bundle icicle){}

But you overrode what???
Code: Select all
public void onCrate(Bundle icicle) { }

what is this onCrate????
Shimugool
User avatar
raquibulbari
Developer
Developer
 
Posts: 25
Joined: Sun Dec 16, 2007 6:31 am
Location: dhaka,bangladesh

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 21 guests