开发者

Need help in Android Programming regarding ListActivity under tab

I'm trying to embed listactivity inside Tab. but when i 开发者_运维技巧run the application. It stop working and force me to close the app. Take a look to program in below link:

http://dl.dropbox.com/u/16910648/RazzilCity.zip


I saw your code. Just two mistakes I found, In your Manifest.xml and in Places.java. In your Manifest file you have defined City Activity two times. Just remove the the line

<activity android:name=".City" android:label="@string/app_name" android:theme="@android:style/Theme.NoTitleBar"></activity>

and in your Place.java, just replace the line

setListAdapter(new ArrayAdapter<String>(this,R.layout.places_list,PLACES));

by

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜