无法从ADB找到Android Activity

时间:2014-11-15 05:51:42

标签: android android-activity adb

以下是感兴趣的AndroidManifest.xml的部分列表。这在de.schildbach.wallet.ui.send包中声明了一个SendCoinsActivity类的Activity。使用ADB(Android Debug Bridge), 我尝试通过

启动此活动
  • adb shell am start -n de.schildbach.wallet.ui.send / .SendCoinsActivity -a android.intent.action.VIEW
  • 或通过更改操作和类别选项与此类似的内容。

但我遇到了以下错误

错误类型3 错误:活动类{de.schildbach.wallet.ui.send / de.schildbach.wallet.ui.send.SendCoinsActivity}不存在。

我不明白为什么。

=====

xmlns:tools="http://schemas.android.com/tools"

package="de.schildbach.wallet_test"

android:installLocation="internalOnly"

android:versionCode="175"

android:versionName="3.54-test" >




<uses-sdk

    android:minSdkVersion="10"

    android:targetSdkVersion="11"

    tools:ignore="OldTargetApi" />




<uses-permission android:name="android.permission.INTERNET" />

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

<uses-permission android:name="android.permission.NFC" />

<uses-permission android:name="android.permission.CAMERA" />

<uses-permission android:name="android.permission.VIBRATE" />

<uses-permission android:name="android.permission.WAKE_LOCK" />

<uses-permission android:name="android.permission.BROADCAST_STICKY" />

<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />

<uses-permission android:name="android.permission.BLUETOOTH" />




<uses-feature

    android:name="android.hardware.touchscreen"

    android:required="false" />

<uses-feature

    android:name="android.hardware.nfc"

    android:required="false" />

<uses-feature

    android:name="android.hardware.camera"

    android:required="false" />

<uses-feature

    android:name="android.hardware.camera.front"

    android:required="false" />

<uses-feature

    android:name="android.hardware.camera.autofocus"

    android:required="false" />

<uses-feature

    android:name="android.hardware.camera.flash"

    android:required="false" />

<uses-feature

    android:name="android.hardware.screen.landscape"

    android:required="false" />

<uses-feature

    android:name="android.hardware.bluetooth"

    android:required="false" />




<supports-screens

    android:anyDensity="true"

    android:largeScreens="true"

    android:normalScreens="true"

    android:smallScreens="true"

    android:xlargeScreens="true" />




<application

    android:name="de.schildbach.wallet.WalletApplication"

    android:allowBackup="false"

    android:hardwareAccelerated="true"

    android:icon="@drawable/app_icon"

    android:label="@string/app_name"

    android:theme="@style/My.Theme" >

    <activity

        android:name="de.schildbach.wallet.ui.WalletActivity"

        android:configChanges="keyboard|keyboardHidden"

        android:launchMode="singleTask" />




    <activity-alias

        android:name="de.schildbach.wallet.WalletActivity"

        android:targetActivity="de.schildbach.wallet.ui.WalletActivity" >

        <intent-filter>

            <action android:name="android.intent.action.MAIN" />




            <category android:name="android.intent.category.LAUNCHER" />

        </intent-filter>

        <intent-filter>

            <action android:name="android.nfc.action.NDEF_DISCOVERED" />




            <data android:mimeType="application/x-btctx" />




            <category android:name="android.intent.category.DEFAULT" />

        </intent-filter>

    </activity-alias>




    <activity

        android:name="de.schildbach.wallet.ui.send.SendCoinsActivity"

        android:configChanges="keyboard|keyboardHidden"

        android:label="@string/send_coins_activity_title"

        android:screenOrientation="behind"

        android:windowSoftInputMode="adjustResize" >

        <intent-filter android:label="@string/send_coins_activity_title" >

            <action android:name="android.intent.action.VIEW" />




            <data android:scheme="bitcoin" />




            <category android:name="android.intent.category.DEFAULT" />

            <category android:name="android.intent.category.BROWSABLE" />

        </intent-filter>

        <intent-filter android:label="@string/send_coins_activity_title" >

            <action android:name="android.nfc.action.NDEF_DISCOVERED" />




            <data android:scheme="bitcoin" />




            <category android:name="android.intent.category.DEFAULT" />

        </intent-filter>

        <intent-filter android:label="@string/send_coins_activity_title">

            <action android:name="android.intent.action.VIEW" />




            <data android:mimeType="application/bitcoin-paymentrequest" />




            <category android:name="android.intent.category.DEFAULT" />

        </intent-filter>

        <intent-filter android:label="@string/send_coins_activity_title" >

            <action android:name="android.nfc.action.NDEF_DISCOVERED" />




            <data android:mimeType="application/bitcoin-paymentrequest" />




            <category android:name="android.intent.category.DEFAULT" />

        </intent-filter>

    </activity>

1 个答案:

答案 0 :(得分:0)

您的包名称似乎是de.schildbach.wallet_test。遵循this语法,命令应该类似于:

adb shell am start -n de.schildbach.wallet_test/de.schildbach.wallet.ui.send.SendCoinsActivity