Android Question Need help to configure manifest, to intent an external package activity

Discussion in 'Android Questions' started by abilio486software, Jun 30, 2019.

  1. abilio486software

    abilio486software Member Licensed User

    Hi,

    I want to send text to an external activity (SupportActivity), in an external package (net.micropack.myposbluetooth)

    I'm using this code but I get an error:

    "android.content.ActivityNotFoundException: Unable to find explicit activity class {net.micropack.myposbluetooth/net.micropack.myposbluetooth.SupportActivity}; have you declared this activity in your AndroidManifest.xml?!"

    The source code is:

    [
    Dim Intent1 As Intent
    Intent1.Initialize(Intent1.ACTION_MAIN,"")
    Intent1.SetComponent("net.micropack.myposbluetooth/.SupportActivity")
    mytext = "Ola abilio\n"
    mytext = mytext & "Ola abilio 2\n"
    mytext = mytext & "Ola abilio 3\n"

    Intent1.PutExtra("Action","printCombo")
    Intent1.PutExtra("text",mytext )
    Intent1.PutExtra("Amount","10.00")
    StartActivity(Intent1)
    ]

    I'm calling this from my Activity "ActivityFaturar"


    Could you help me to configure the manifest for this intent call?

    Kind regards,
    Abilio
     
  2. Brandsum

    Brandsum Well-Known Member Licensed User

    Last edited: Jun 30, 2019
    abilio486software likes this.
  3. abilio486software

    abilio486software Member Licensed User

    Still not working. Trying to find a solution
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Please use [code]code here...[/code] tags when posting code.

    Is net.micropack.myposbluetooth your app?
     
    abilio486software likes this.
  5. abilio486software

    abilio486software Member Licensed User

    Thanks, sorry about this code inclusion outside rules. It will not repeat :)
    The net.micropack.myposbluetooth is an external app, not mine.
    Now it's working with the manifest and the correct Activity name.
    Now It's resolved!
    Thanks
     
    Erel likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice