Android Question How to download an App in my code

Albert Lin

Member
Licensed User
Longtime User
Dear All

I need to download an App in my code. For example, a button <download Dictionary>.
It'll down load an Dictionary App when click the button. I know the package name of the Dictionary App.

Thanks a lot for any suggestion

Best Regards
Albert Lin
 

DonManfred

Expert
Licensed User
Longtime User
You can NOT download a app programatically from the playstore. You can point the user to the playstore and the user may (or may not) install it...

B4X:
    Dim i As Intent
    i.Initialize(i.ACTION_VIEW,"market://details?id=packagenameofapp")
    StartActivity(i)
 
Upvote 0

Mostafa86

Member
Licensed User
Hello, I'm a beginner in android, in fact I need to run and compile an application as part of my project and will be back to electronics part and my domain, the problem is: I have the source code, I run and compile it successfully, but while installing the application i get this error:
I send the screen shot.
Thanks for help in advance.
 

Attachments

  • Screenshot_2016-11-01-09-24-28.png
    Screenshot_2016-11-01-09-24-28.png
    25.4 KB · Views: 150
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Thanks for help in advance.
NOT in THIS thread!
You are posting your question to someone others thread. In fact the wrong thread as it has NOTHING to do with your Problem!

The question here is to download a app from google play.

So. Give constructive comments about this question or create your own thread here and ask your question there!
 
Upvote 0

Albert Lin

Member
Licensed User
Longtime User
You can NOT download a app programatically from the playstore. You can point the user to the playstore and the user may (or may not) install it...

B4X:
    Dim i As Intent
    i.Initialize(i.ACTION_VIEW,"market://details?id=packagenameofapp")
    StartActivity(i)
Dear DonManfred
Thank you very much. It really works.

Best Regards
Albert Lin
 
Upvote 0

Albert Lin

Member
Licensed User
Longtime User
You can NOT download a app programatically from the playstore. You can point the user to the playstore and the user may (or may not) install it...

B4X:
    Dim i As Intent
    i.Initialize(i.ACTION_VIEW,"market://details?id=packagenameofapp")
    StartActivity(i)
Dear DonManfred

Thank you very much. it actually works.

Best Regards
Albert Lin
 
Upvote 0
Top