The launch will only sync the application packa...

应用安装了,但是没有运行

[2013-02-04 14:49:30 - FengPrinter] Success!

[2013-02-04 14:49:30 - FengPrinter] \FengPrinter\bin\FengPrinter.apk installed on device
[2013-02-04 14:49:30 - FengPrinter] Done!
[2013-02-04 15:26:34 - FengPrinter] ------------------------------
[2013-02-04 15:26:34 - FengPrinter] Android Launch!
[2013-02-04 15:26:34 - FengPrinter] adb is running normally.
[2013-02-04 15:26:34 - FengPrinter] No Launcher activity found!
[2013-02-04 15:26:34 - FengPrinter] The launch will only sync the application package on the device!
[2013-02-04 15:26:34 - FengPrinter] Performing sync
[2013-02-04 15:26:34 - FengPrinter] Automatic Target Mode: using device '20080411413fc082'
[2013-02-04 15:26:34 - FengPrinter] Uploading FengPrinter.apk onto device '20080411413fc082'
[2013-02-04 15:26:34 - FengPrinter] Installing FengPrinter.apk...
[2013-02-04 15:26:40 - FengPrinter] Success!
[2013-02-04 15:26:41 - FengPrinter] \FengPrinter\bin\FengPrinter.apk installed on device
[2013-02-04 15:26:41 - FengPrinter] Done!

[2013-02-04 15:35:01 - FengPrinter] ------------------------------

今天调试程序,安装了,可是并没有自动运行起来,还得让我手动的点击才行,这多烦人啊!

从网上搜了下都是说action的问题

我的action如下:

<activity
            android:name=".PrintActivity"
            android:label="@string/title_activity_main" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
比普通的多了一行,我将这一行删除

果然解决了问题!

转载于:https://my.oschina.net/f839903061/blog/107932

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值