Code Monkey home page Code Monkey logo

android-sdk-sample's Introduction

android-sdk-sample's People

Contributors

eordano avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

android-sdk-sample's Issues

failed to deserialize BitPay server response (Invoice)

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)

Sqlcipher

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.