First Android Test Project does not start -


I'm making my first Android application but it does not start at all.

In my src> Android. SamanNeP has created a Java file with the name of the menu.

  Public class main extended activity {// will be associated with buttons via XML MyoidHandler (View View) {Switch .getId ()) {Case RID.BTN1: ((EditText) SearchWBIID (RTT Contents) Settext ("button 1 click"); break; Case R.id.btn2: ((EditText) findViewById (R.id.txtContent) setText ("button 2 clicked"); break; }}}  

My res> layout> main.xml:

   & Lt; Android: layout_width = "wrap-content" Android: layout_height = "wrap_content" Android: text = "button one" Android: ID = "@ + ID / BTN1" & gt; & Lt; / Button & gt; & Lt; Button Android: layout_width = "wrap_content" android: layout_height = "wrap_content" android: text = "button two" Android: id = "@ + ID / BTN 2" & gt; & Lt; / Button & gt;  

My AndroidManifest.xml content:

  & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Manifest xmlns: Android = "http://schemas.android.com/apk/res/android" package = "android.SampleApp" Android: versionCode = "1" android: versionName = "1.0" & gt; & Lt; Application Android: Icon = "@ Drable / Icon" Android: label = "@ string / app_name" & gt; & Lt; / Application & gt; & Lt; Use-sdk android: minSdkVersion = "7" />  

I get this error:

  1. [2010-02-02 01:46:26 - SampleApp] Android launch ! [2010-02-02 01:46:26 - SampleApp] ADB is running normally. [2010-02-02 01:46:26 - SampleApp] No Launcher Activity [2010-02-02 01:46:26 - SampleApp] Launch will sync the app package only on device!
  2. [2010-02-02 01: 46:26 - SampleApp] Sync

Lines 3 and 4 are highlighted in red.

Can someone take the right direction to apply for the right show of emulator?

Android 2.1 SDK with Eclipse

You are missing out on your In the manifest file, your & lt; Activity & gt; Tags:

  & lt; Intent-filter . & Gt; & Lt; Action Android: name = "android.intent.action.MAIN" /> & Lt; Category android: name = "android.intent.category.LAUNCHER" /> & Lt; / Intent-Filter & gt;  

For more information


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -