Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6689731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:33:13+00:00 2026-05-26T05:33:13+00:00

I am working in android. I am designing a program to download a file

  • 0

I am working in android. I am designing a program to download a file from my http server. before download the file payment should be done.

this is my first layout:-
enter image description here

when i click on on paypal button this paypal site is opened:-

enter image description here

so i want to know that after make payment is this site return something on the basis of that i can allow or donot allow user to download.

i want to know that user has paid something or not ? please help me in this paypal concept in android.

Thank you in advance…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T05:33:14+00:00Added an answer on May 26, 2026 at 5:33 am

    I have done this by taking help from a from a book.

    This is the code which is used to the solution for my question:-

    @Override

    public void onActivityResult(int requestCode, int resultCode, Intent data) {
    
    switch(resultCode) {
    
    case Activity.RESULT_OK:
    
    //The payment succeeded
    
    
    
    Toast.makeText(this,"Payment has done successfully",Toast.LENGTH_SHORT).show();
    
    //Tell the user their payment succeeded
    

    break;

    case Activity.RESULT_CANCELED:
    
    
        Toast.makeText(this,"Payment has cancled",Toast.LENGTH_SHORT).show();
    break;
    
    case PayPalActivity.RESULT_FAILURE:
    
        flag=false;
        Toast.makeText(this,"Sorry Payment failed",Toast.LENGTH_SHORT).show();
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working in android. I am designing a program to upload a file
I am working in android. I am designing a file upload functionality. This is
im working on android and on getting response from http my xml code contain
I am working on an Android service. I need to call RecognizerIntent from a
I'm working on a client-server Android application and trying to figure out how to
I am now working on a program for Android which is something related to
I am working on designing an Android application, and I have several questions I
I'm working on Android, but this is a java question. I have an image
We're designing an Android app that has several activities which are working in a
I was working on an android project, and while designing i noticed something strange

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.