PayPal recently released a major revision to their Android SDK, which stripped a lot of the constants out of PaymentActivity. The documentation documentation has given a new version of onBuyPressed, but still references RESULT_PAYMENT_INVALID in its implementation of onActivityResult. Does anyone know the correct way to listen for a failed payment? Is there another constant that has taken the place of RESULT_PAYMENT_INVALID? Thanks.
#Tad - Thanks for pointing this out. It seems that the documentation did not receive all the required updates. Hopefully, you found the new naming in the SampleApp code. We will update the documentation to match. Sorry for any difficulties this caused.
Related
I want to use Google Cloud Text-to-Speech on my Android app.
I found a sample code but I don't know how to use it in my app.
I run this sample and it worked.
https://github.com/changemyminds/Google-Cloud-TTS-Android
How to use it totally depends on your needs. You can use some patterns from this example. Also, you can read official Google documentation and use Java examples, but most important is TTS android reference with Java and Kotlin.
You can try to find in Google something like "Android TTS tutorials" to get more understanding about the theme.
I know it's a lot late response but still, if you had that issue then I had the solution of it and could say this would definitely help those who are facing the same issues, so if you are not having a heavy app size or it doesn't your Gradle conflicts with maven then you may prefer:- https://github.com/changemyminds/Google-Cloud-TTS-Android but if this link causes you errors as I got do prefer:-
https://github.com/ivso0001/GoogleCloudTextToSpeech this one is the very simpler so you won't be facing big issues. as it does help me too.
I was doing the HelloTabWidget tutorial
http://developer.android.com/resources/tutorials/views/hello-tabwidget.html
and getting errors on the "TabHost tabHost = getTabHost();" statement. I thumbed threw the stackOverflow notes and it seems a few people were having the same problem, and a few received responses along the lines of "Note: Tabactivitity deprecated in latest versions, consider learning Fragments" and discovered I can use ... the v4 support library which provides a version of the Fragment API that is compatible down to DONUT. although I haven't quiet figured out how to do this.
My question is - If the function is deprecated, and causing newbies problems, shouldn't the tutorials be updates to use the new functions? Is their a polite/politically correct way to let the people in charge of the tutorials know that an update may be in order? Or maybe new tutorials exist, and I'm just looking at an old URL?
shouldn't the tutorials be updates to use the new functions
Who exactly are you asking this to? Us? Why would we know why google hasn't updated their docs/tutorials.
is their a polite/politically correct way to let the people in charge
of the tutorials know that an update may be in order?
I'm very sure that they know. They probably have more important things to do. There are TONS of tutorials around the internet. They don't need to update all their tutorials.
Or maybe new tutorials exist, and I'm just looking at an old URL?
Search google. There's TONS of blogs that will give you lots of examples. Including here at stack overflow.
I'm working on application which needs to implement In App-Billing payments and I was searching more info about it and find a library written by someone else and I'm curious about it. Is it good to be used and if anyone here already tried it. It seems like it's not so complicated to understand,but I just want to hear some information can I used it and is it stable enough. Here is the project code which I find :AndroidBillingLibrary.
So any suggestions / advices and information about that library is welcomed. Or anything else which will help me to understand more clearly in app-billing process in android (except the documentation in android.com) will be really great!
Thanks for any kind of help!
It very clearly states on the tin: 'This library is a very early release and it should not be used as production code'. So if you want to use it, you will have to understand how it works to be able to fix it when it breaks. You might as well write your own.
Read the official documentation, study the dungeons sample, try to understand and if you get stuck, post specific questions. Otherwise, just hire someone to do it for you.
I am starting getting to know android renderscript and i've read everything that is on the android developer site, but it seems that there is not enough documentation, examples.. I was wondering if there is maybe a book that also has a part with explanation and some renderscript examples. I want to learn about it in depth, so if someone can provide links for books, examples, tutorials (anything would be of great help) i will appreciate it. Thank u in advance!!!
We are working on this documentation gap and plan to have updated docs within the next few weeks; however, it will still be a work in progress. If you have specific things that you want to do, let us know. In the meantime, there are samples packaged with the SDK that might help you get started: http://developer.android.com/resources/samples/RenderScript/index.html
I've posted a couple of RenderScript articles/tutorials on my blog. If they're of use, let me know. I've been debating whether I should make more, but it's tough to gauge interest in RenderScript.
There's very little documentation on Renderscript at this moment in time. Google has published a few posts about it, including the following on the Android Developers Blog, but apart from that, the information available is very limited.
http://android-developers.blogspot.com/2011/02/introducing-renderscript.html
http://android-developers.blogspot.com/2011/03/renderscript.html
Some documentation is also available here:
http://developer.android.com/guide/topics/renderscript/index.html
You can also find some examples here:
http://code.google.com/p/renderscript-examples/
The Android team has promised to add more documentation at some point in time, and I'm hopeful we'll get some more information when Ice Cream Sandwich launches.
The press release of Android 2.0 states that the new release supports sync adapters so that emails and calendars cannot only be synced with gmail and exchange. However, there is no information available online how to write such a sync adapter. Has anyone tried it and some example code available?
These two articles by Sam Steele (January 23rd, 2010) are about the implementation of the last.fm sync adapter. Do not miss the second part and the opensource projects that are mentioned at the end of the articles.
http://www.c99.org/2010/01/23/writing-an-android-sync-provider-part-1/
http://www.c99.org/2010/01/23/writing-an-android-sync-provider-part-2/
https://github.com/c99koder/lastfm-android/
https://github.com/c99koder/AndroidSyncProviderDemo
This article, http://ericmiles.wordpress.com/2010/09/22/connecting-the-dots-with-android-syncadapter/, is a great, albeit brief overview of creating a sync adapter and getting it to play nice within the Android framework.
Simple basic explanation by Adam Pullen (last updated May 13, 2011). The article consists of two parts and contains the ShowMyAccountAuthenticator example project.
http://www.finalconcept.com.au/article/view/android-account-manager-step-by-step
http://www.finalconcept.com.au/article/view/android-account-manager-step-by-step-1
http://www.finalconcept.com.au/uploads/files/showmyaccountauthenticator.zip
I'm still learning myself, but this thread should help you understand a little bit.
http://www.mail-archive.com/android-developers#googlegroups.com/msg64769.html
The article of Kyle Miller (March 10, 2012) summarizes how to get started with the SampleSyncAdapter project contained in the SDK samples. He describes how you can add an account for the app in the system settings of your phone. Basically, he explains how the classes AuthenticationService, Authenticator and AuthenticatorActivity are used to handle the server authentication using a token. At the end of the article are some words about authenticator.xml, syncadapter.xml and contacts.xml.
Here is something that I found
Implements a SyncAdapter for Contacts
Not sure if this is what we need to help us roll our own contacts sync service though.
I found this browsable source code of the android exchange sync adapter from the android sources:
http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android-apps/4.0.4_r2.1/com/android/exchange/adapter/ContactsSyncAdapter.java?av=f
These where not included, when I manually checked out the android sources at http://source.android.com . Maybe someone can find the appropriate sources of the original google calendar/contact sync adapter? (not just the MS exchange ones)
Here is a german student research paper I found through google:
ftp://ftp.informatik.uni-stuttgart.de/pub/library/medoc.ustuttgart_fi/STUD-2348/STUD-2348.pdf