Official EBAY App - what is the com name?

ClassicDancer

Member
Licensed User
Longtime User
Hi,

Hope someone can help me please?

Tring to call the official Ebay application from button within my app. I can't find the com name on my Samsung device.

Can this app be called from a button and if so what is the com name to do this please?

Regards,

Andy
 

ClassicDancer

Member
Licensed User
Longtime User
Thanks for a quick response.

I've tried the title for the app as you mentioned however it only brings up a list of apps to associate the action with. Ebay is not listed.

Here's my code that I am using can you suggest where I am going wrong please?

Dim Intent1 As Intent

Intent1.Initialize(Intent1.ACTION_MAIN, "")
Intent1.SetComponent("com.ebay.mobile")

StartActivity(Intent1)

Thanks.
 
Upvote 0

ClassicDancer

Member
Licensed User
Longtime User
Hi Erel,

Thanks for your reply. Could you explain what you mean in a lit more detail please. I'm new Android programming and do not follow what you are saying unfortunately?

Thanks,

Andy
 
Upvote 0

NJDude

Expert
Licensed User
Longtime User
Ok, I'll show you 2 different ways:

1- Using the Phone library
B4X:
Dim in As Intent
Dim pm As PackageManager

in = pm.GetApplicationIntent("com.ebay.mobile")

If in.IsInitialized Then 
            
   StartActivity(in)
         
Else

   Msgbox("eBay app not installed", "")
         
End If

2- Using an Intent
B4X:
Dim Intent1 As Intent
 
Try   

   Intent1.Initialize(Intent1.ACTION_MAIN, "")
   Intent1.SetComponent("com.ebay.mobile/.activities.eBay")
 
   StartActivity(Intent1)

Catch

   Msgbox("eBay app not installed", "")

End Try

To get the Intent, you have to check the unfiltered logs (you have a tab in the IDE labeled LOGS, click there, then UNCHECK the Filter check box and click on CONNECT), then read the logs and search for the intent.
 
Last edited:
Upvote 0
Top