Can't find Android Activity from ADB

user3509406

Here is a partial list of an AndroidManifest.xml of interest. This declares an Activity of SendCoinsActivity class in de.schildbach.wallet.ui.send package. Using ADB(Android Debug Bridge), I tried to launch this activity by

  • adb shell am start -n de.schildbach.wallet.ui.send/.SendCoinsActivity -a android.intent.action.VIEW
  • or by something similar to this by changing action and category options.

But I met the following error

Error type 3 Error: Activity class{de.schildbach.wallet.ui.send/de.schildbach.wallet.ui.send.SendCoinsActivity} does not exists.

I do not understand why.

=====

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>
aQuigs

It looks like your package name is de.schildbach.wallet_test. Following this syntax, the command should be something like:

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

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

adb can't find Galaxy S3 Android 4.3

From Dev

Android adb can't find my Galaxy Note 10.1

From Dev

can't find android.Activity class intellij IDEA

From Dev

can't find android.Activity class intellij IDEA

From Dev

Why can't I find activity from app that is on device?

From Dev

Adb install can't find google to install

From Dev

Adb install can't find google to install

From Dev

Android Studio doesn't find the adb

From Dev

Supress output from android activity running from adb shell

From Dev

Android: surfaceView can't resume activity from pause()

From Dev

Android: Can't update textview in Fragment from Activity. NullPointerException

From Dev

Android: Can't call new activity from class that extends Thread

From Dev

Can't able to start new activity from onPostExecute method in Android

From Dev

I can't find adb_usb.ini file in .android folder?

From Dev

can't start activity in android

From Dev

Unplugging the device via ADB: "can't find service"

From Dev

ADB can't find my Samsung galaxy S4

From Dev

Can't add activity in Android Studio

From Dev

android can't destroy my activity

From Dev

Android can't start launcher activity programmatically

From Dev

Can't add activity in Android Studio

From Dev

Can't Control The Volume In The Activity of Android

From Dev

Can't add a new activity on android studio

From Dev

Can't open next activity Android Studio

From Dev

Can't open new Activity in Android Studio

From Dev

Android Studio: Can't switch to new activity

From Dev

Can't access Activity methods from AppCompatActivity

From Dev

Can't start fragment from activity

From Dev

Can't run new activity from onPostExecute

Related Related

HotTag

Archive