Goodreads Developers discussion
questions
>
Android intent
date
newest »


I'm not sure whether our app will respond properly from an external Intent, but please try and let us know! We don't have an action URL scheme set up, but here's our SearchActivity's info:
App package: com.goodreads
Search Activity class: com.goodreads.android.activity.SearchActivity
Search string Intent Extra: "com.goodreads.search.string"
So your code would look something like this:
Intent intent = new Intent();
intent.setClassName("com.goodreads", "com.goodreads.android.activity.SearchActivity");
intent.putExtra("com.goodreads.search.string", title);
try {
activity.startActivityForResult(intent, activityCode);
} catch (ActivityNotFoundException e) {
// Goodreads app not installed
Toast.makeText(this, "Goodreads app not installed", Toast.LENGTH_LONG).show();
}

thanks for your answer. I tested with the code you gave and I got a "java.lang.SecurityException: Permission Denial: starting Intent", I googled a bit and I found this:
http://developer.android.com/guide/to...
In short, if no intent-filter is configured for the activity the export attribute takes default value false and it cannot be called from outside your app, could it be the case?


Thanks
Andrea

I have an Android app related to books. At some point in the app I show a link triggering a search on goodreads website with the book title as a query string. I would like to know if there is an Intent filter configured in the official Goodreads Android app that I can use to do something like:
Intent i = new Intent(Intent.ACTION_VIEW, "goodreads://search?q=title");
I couldn't find any info about it so I assume there is none but I'd like to have a confirmation and, if not available, is it planned in future releases?
Thanks
Andrea