这是什么意思[否发射活动的发现和QUOT!; [英] What does it mean "No Launcher activity found!"

查看:214
本文介绍了这是什么意思[否发射活动的发现和QUOT!;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写的Andr​​oid的一个简单的程序,并获得这些没有错误,我不知道它们是什么。我的计划是正确的,但显示的是没有产出。 我认为这是因为这两个行:

  [2005-01-06 19点56分38秒 -  my_Android]没有启动的活动找到了!
[2005-01-06 19点56分38秒 -  my_Android]的推出,将只同步设备上的应用程序包!
 

解决方案

下面是从AndroidManifest.xml中的一个例子。你需要选择主LAUNCHER的意图过滤器要开始推出的活动

 <应用机器人:标签=@字符串/ APP_NAME机器人:图标=@可绘制/图标>
    <活动机器人:名称=为ExampleActivity
              机器人:标签=@字符串/ APP_NAME>
        <意向滤光器>
            <作用机器人:名称=android.intent.action.MAIN/>
            <类机器人:名称=android.intent.category.LAUNCHER/>
        &所述; /意图滤光器>
    < /活性GT;
< /用途>
 

I am writing a simple program of Android, and getting these no errors, I don't know what they are. My program is right, but showing not output. I think it is because of these two lines:

[2005-01-06 19:56:38 - my_Android] No Launcher activity found!
[2005-01-06 19:56:38 - my_Android] The launch will only sync the application package on the device!

解决方案

Here's an example from AndroidManifest.xml. You need to specify the MAIN and LAUNCHER in the intent filter for the activity you want to start on launch

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

这篇关于这是什么意思[否发射活动的发现和QUOT!;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆