bitpay / android-sdk-sample Goto Github PK
View Code? Open in Web Editor NEWsample application using the bitpay android sdk
sample application using the bitpay android sdk
I m having Android App that uses SQL cipher 2.2.0 library to encrypt the db. After Android 6.0 upgrade we updated to SQL cipher 3.3.1 since previous library was giving problem on android 6.0. After the sql cipher upgrade the app started working on android 6.0 as well. But the problem is it is not able to read the already encrypted DB (encrypted using cipher 2.2.0).
It is giving following error
" sqlite returned: error code =26, msg=file is encrypted or is not a database:
CREATE TABLE android_metadata failed.
failed to setLocale() when constructing, closing the database.
create locale table failed.
old jar is
compile file('build/intermediates/rs/debug/lib.sqlcipher.jar')
i am using following jar
compile 'com.android.support:support-v4:23.0.0'
compile 'net.zetetic:android-database-sqlcipher:3.3.1-1@aar'
Is it that encryption algorithm has changed or am i doing some mistake.
Please help.
@wrinkl3 commented on Tue Mar 13 2018
Does BWS actually depend on the Bitcore node for any of the bitcoin functionality, or can it act as an SPV wallet on its own?
@arruah commented on Mon Apr 09 2018
You can use another full node. You need to specify the ip address and port in the settings file.
@matiu commented on Mon Apr 09 2018
you can use it pointing to any public Insight installation.
Tested in two different devices with Jelly Bean 4.3. It say's "Unfortunately, MusicStore has stopped".
I am trying to run the sample app and got this error. I am using android 6.0.1.
12-11 15:23:24.900 17298-17298/com.bitpay.sample.musicstore W/System.err: com.bitpay.sdk.controller.BitPayException: Error - failed to deserialize BitPay server response (Invoice) : Unrecognized field "buyerTotalBtcAmount" (class com.bitpay.sdk.model.Invoice), not marked as ignorable (31 known properties: "itemDesc", "notificationURL", "guid", "price", "transactionSpeed", "orderId", "paymentUrls", "refundAddresses", "buyerFields", "currency", "transactions", "physical", "fullNotifications" [truncated]]) 12-11 15:23:24.900 17298-17298/com.bitpay.sample.musicstore W/System.err: at [Source: {"facade":"pos/invoice","data":{"url":"https://test.bitpay.com/invoice?id=Sce3ko5fKUrov58ZiioPTi","status":"new","btcPrice":"0.075392","btcDue":"0.075396","price":1233.49,"currency":"USD","buyerTotalBtcAmount":"0.075396","invoiceTime":1512984205878,"expirationTime":1512985105878,"currentTime":1512984205893,"guid":"6772972","id":"Sce3ko5fKUrov58ZiioPTi","lowFeeDetected":false,"btcPaid":"0.000000","rate":16361.08,"exceptionStatus":false,"refundAddressRequestPending":false,"addresses":{"BTC":"n2hM4HJCstBmBEZYmoZkhsERJpubukCLxN"},"paymentSubtotals":{"BTC":7539200},"paymentTotals":{"BTC":7539600},"paymentUrls":{"BIP21":"bitcoin:n2hM4HJCstBmBEZYmoZkhsERJpubukCLxN?amount=0.075396","BIP72":"bitcoin:n2hM4HJCstBmBEZYmoZkhsERJpubukCLxN?amount=0.075396&r=https://test.bitpay.com/i/Sce3ko5fKUrov58ZiioPTi","BIP72b":"bitcoin:?r=https://test.bitpay.com/i/Sce3ko5fKUrov58ZiioPTi","BIP73":"https://test.bitpay.com/i/Sce3ko5fKUrov58ZiioPTi"},"bitcoinAddress":"n2hM4HJCstBmBEZYmoZkhsERJpubukCLxN","buyerPaidBtcMinerFee":"0.000004","supportedTransactionCurrencies":{"BTC":{"enabled":true}},"exRates":{"USD":16361.081065668901},"exchangeRates":{"BTC":{"USD":16361.081065668901}},"token":"3BjTnM1C47mHNgZZy2vS6KEeBXRZzu8UBURN3num5sxhBWVprWeC2gSyGPe2PH5Csg"}}; line: 1, column: 212] (through reference chain: com.bitpay.sdk.controller.InvoiceWrapper["data"]->com.bitpay.sdk.model.Invoice["buyerTotalBtcAmount"]) 12-11 15:23:24.901 17298-17298/com.bitpay.sample.musicstore W/System.err: at com.bitpay.sdk.controller.BitPay.createInvoice(BitPay.java:199) 12-11 15:23:24.901 17298-17298/com.bitpay.sample.musicstore W/System.err: at com.bitpay.sdk.android.BitPayAndroid$CreateInvoiceTask.doInBackground(BitPayAndroid.java:395) 12-11 15:23:24.901 17298-17298/com.bitpay.sample.musicstore W/System.err: at com.bitpay.sdk.android.BitPayAndroid$CreateInvoiceTask.doInBackground(BitPayAndroid.java:383) 12-11 15:23:24.901 17298-17298/com.bitpay.sample.musicstore W/System.err: at android.os.AsyncTask$2.call(AsyncTask.java:295) 12-11 15:23:24.901 17298-17298/com.bitpay.sample.musicstore W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237) 12-11 15:23:24.901 17298-17298/com.bitpay.sample.musicstore W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) 12-11 15:23:24.901 17298-17298/com.bitpay.sample.musicstore W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) 12-11 15:23:24.901 17298-17298/com.bitpay.sample.musicstore W/System.err: at java.lang.Thread.run(Thread.java:818)
I tried to test this sample app in a Nexus 7 2013 tablet with Lollipop 5.0.1 installed but keep getting this error.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.