gpt4 book ai didi

java - 在 androidmanifest 中声明 serviceintent

转载 作者:行者123 更新时间:2023-12-01 06:20:33 25 4
gpt4 key购买 nike

我有一个扩展 serviceintent 的类,称为 bluepostservice。在同一包中的另一个类中,它扩展了我调用的 Activity

Intent selectIntent = new Intent(this, bluepostservice.class);
this.startService(selectIntent);

我的manifestxml中有这个

<service android:name="BluePostService" />  

但是我得到

无法启动服务 Intent { cmp=org.anddev.android.parsingxml/.BluePostService }:未找到

显然我在 list 中声明了一些错误或未正确启动服务。

如何在 androidmanifest 中正确声明服务 Intent ?

最佳答案

缺少点?

<service android:name=".BluePostService" />

关于java - 在 androidmanifest 中声明 serviceintent,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8336459/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com