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 9008169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:52:37+00:00 2026-06-16T01:52:37+00:00

I would like to integrate a Donate via Bitcoin button in an Android application’s

  • 0

I would like to integrate a “Donate via Bitcoin” button in an Android application’s PreferenceScreen.

There are a few Bitcoin clients for Android running around, and Bitcoin wiki defines a URI scheme that is supposed to be used for BTC payments.

I have tried the following code

findPreference(getString(R.string.preference_donateBitcoin)).setOnPreferenceClickListener(new OnPreferenceClickListener() {

            @Override
            public boolean onPreferenceClick(Preference preference) {
                String url = getString(R.string.pref_donateBitcoin_uri);
                Intent i = new Intent(Intent.ACTION_VIEW);
                i.setData(Uri.parse(url));
                startActivity(i);
                return false;
            }
        });

withou a BTC installed on phone. I’ve tried to launch the intent with the following URI: bitcoin:19iSEgNkJnEUtNDuuTkkZrU44PVKYMVfhz?amount=1 expecting Android telling me that no handler is installed.

Instead I got an ActivityNotFoundException

android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=bitcoin:19iSEgNkJnEUtNDuuTkkZrU44PVKYMVfhz?amount=1 }

My question is about correctly handling (read “best practices”) URI schemes unknown to device.

  • How do I check that a certain URI scheme can be handled at least by one application? (if more, I suppose a choice screen)
  • With reference to Bitcoin but without reference to any specific client, what should the best Intent be when paying via Bitcoin? How to handle the case when no BTC client is installed?

[Edit]: the question is wrong because I messed up my phone backups and presumed the Bitcoin Wallet app was installed when it was not.

  • 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-06-16T01:52:38+00:00Added an answer on June 16, 2026 at 1:52 am

    How do I check that a certain URI scheme can be handled at least by one application? (if more, I suppose a choice screen)

    Either:

    • just catch the ActivityNotFoundException, or

    • use PackageManager and resolveActivity() or queryIntentActivities() to see if there is anything matching your Intent

    With reference to Bitcoin but without reference to that specific client, what should the best Intent be when paying via Bitcoin?

    You would have to ask the authors of Bitcoin apps that question, or encourage them to adopt a Uri standard, if they have not done so already.

    According to the manifest for the application you list, your Intent looks like it should work. At least, using AppXplore, I see an activity for ACTION_VIEW for Uri values with a scheme of bitcoin. Hence, you may wish to contact the developer of this app and see if you can determine precisely where you are going wrong with your integration.

    How to handle the case when no BTC client is installed?

    Offer to take the user to the Play Store to install some Bitcoin client you like, via a market: Uri.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to integrate Twitter into my Android application so that I can
We have an asp.net mvc application that we would like to integrate a FileSystemWatcher
Is there a way to integrate CodeIgniter with phpBB3? I would like to use
I would like to integrate a Cache Manager in an ASP.NET application. Basically I
For some Android applications, I would like to integrate the following feature: The user
I would like to integrate a facebook 'like' button to my page, so here
I would like to integrate jQuery-DatePicker in my web application. I downloaded the scrips,
I would like to integrate Facebook into an application - enable login using Facebook
hi I would like to integrate Skype in to my web application where our
I would like to integrate Facebook into an iOS application I am building, however

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.