Hi,
Good day.
You need to add proper intent filters to add the shortcut in menu and
also to launch the activity.


Open your "AndroidMenifest.xml", locate your Activity.

Add the intent filters. MAIN is required to launch the activity.
LAUNCHER is required to add it to the menu.


        <activity android:name=".hello_world"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category
android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>


This should solve your problem right away. You can edit the file from
Eclipse or using notepad or any text editor.


Regards
Sarwar Erfan




On Jul 28, 9:37 pm, Evan Hackborn <[email protected]> wrote:
> I am trying to built my first app in Android
>
> problem :helloandroid application is not getting displayed in emulator
> menu . but this app is getting instaled , i am able to uninstall the
> application from emulator.
>
>   settings>applications>manage applications>com.helloandroid
> its size is showing 20.00kb
>
> anyone take a look into this ,any help will be appreciated ,thnkx..
>
> eclipse console:
> [2010-07-28 20:44:32 - HelloAndroid] ------------------------------
> [2010-07-28 20:44:32 - HelloAndroid] Android Launch!
> [2010-07-28 20:44:32 - HelloAndroid] adb is running normally.
> [2010-07-28 20:44:32 - HelloAndroid] No Launcher activity found!
> [2010-07-28 20:44:32 - HelloAndroid] The launch will only sync the
> application package on the device!
> [2010-07-28 20:44:32 - HelloAndroid] Performing sync
> [2010-07-28 20:44:32 - HelloAndroid] Automatic Target Mode: launching
> new emulator with compatible AVD '1.6_4'
> [2010-07-28 20:44:32 - HelloAndroid] Launching a new emulator with
> Virtual Device '1.6_4'
> [2010-07-28 20:44:35 - HelloAndroid] New emulator found: emulator-5554
> [2010-07-28 20:44:35 - HelloAndroid] Waiting for HOME
> ('android.process.acore') to be launched...
> [2010-07-28 20:44:56 - HelloAndroid] WARNING: Application does not
> specify an API level requirement!
> [2010-07-28 20:44:56 - HelloAndroid] Device API version is 4 (Android
> 1.6)
> [2010-07-28 20:44:56 - HelloAndroid] HOME is up on device
> 'emulator-5554'
> [2010-07-28 20:44:56 - HelloAndroid] Uploading HelloAndroid.apk onto
> device 'emulator-5554'
> [2010-07-28 20:44:56 - HelloAndroid] Installing HelloAndroid.apk...
> [2010-07-28 20:45:05 - HelloAndroid] Success!
> [2010-07-28 20:45:05 - HelloAndroid] \HelloAndroid\bin
> \HelloAndroid.apk installed on device
> [2010-07-28 20:45:05 - HelloAndroid] Done!
>
> class:>>
>
> public class hello_world extends Activity{
>
>         @Override
>         public void onCreate(Bundle savedInstanceState) {
>         super.onCreate(savedInstanceState);
>         TextView tv = new TextView(this);
>         tv.setText("Hello, Android");
>         setContentView(tv);
>     }
>
> }

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en

Reply via email to