On Sun, Apr 18, 2010 at 9:35 PM, SheikhAman shekh.a...@gmail.com wrote:
Things stay fine until i assign the adapter to the list i have created-
as soon as i add the last line, problems start.
whats wrong?
Mainly, the fact that you haven't shown what problems start means or what
error
Sorry.
my fault.
the emulator says-
The application has stopped unexpectedly
LogCat says-
java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.abc.MyApp/com.abc.MyApp.MainActivity}:
java.lang.NullPointerException
at com.abc.MyApp.MainActivity.onCreate(MainActivity.java:16) [16
What's wrong? The last line!
Please very read carefully the documentation for the ArrayAdapter
constructor. You'll need to be sure to understand each word, as it's
rather short on explanation. Given the multiple meanings for 'id',
you'll see how you got confused!
The documentation for the second
Oops!
Sorry..
here is the correct one-
?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
RelativeLayout
android:id=@+id/widget28
ohh, all of the tags didnt have '' with them.
I have already added them but they weren't copied dont know why, so
thats not a problem.
On Apr 19, 6:12 am, SheikhAman shekh.a...@gmail.com wrote:
Oops!
Sorry..
here is the correct one-
?xml version=1.0 encoding=utf-8?
LinearLayout
Ohk,
Things went fine, and i was able to design a new layout like this-
?xml version=1.0 encoding=utf-8?
RelativeLayout
android:id=@+id/widget101
android:layout_width=fill_parent
android:layout_height=fill_parent
xmlns:android=http://schemas.android.com/apk/res/android;
RelativeLayout
6 matches
Mail list logo