Felix Oghina wrote:
> I went through the NotePad tutorials and got the minimum hang of it.
> Unfortunately, when I tried creating my own application, I failed.
> Here's my main class file:
>
> package com.tastekid.TasteKid;
>
> import android.app.Activity;
> import android.os.Bundle;
>
> public class TasteKid extends Activity {
>
> @Override
> public void onCreate(Bundle savedInstanceState) {
> super.onCreate(savedInstanceState);
> setContentView(R.layout.main);
> }
> }
>
> Here's main.xml:
>
> <?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"
> >
> <EditText
> android:id="@+id/search_input"
> />
> </LinearLayout>
>
> When I try to start the app on the emulator I get an "The application
> TasteKid (process com.tastekid.TasteKid) has stopped unexpectedly.
> Please try again." with a "Force close" button. I have absolutely no
> idea what I am doing wrong :-(
Look at the Java stack trace via adb logcat, DDMS, or the DDMS
perspective in Eclipse. It should give you some clues. For example, it
may be that you did not register your activity class in your
application's AndroidManifest.xml file.
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy
Android Training in Germany, 18-22 January 2010: http://bignerdranch.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---