Contents

How to Setup Cloudant Backend For ACRA (Application Crash Reports for Android)

1 Star2 Stars3 Stars4 Stars5 Stars (4 votes, average: 4.75 out of 5)
Loading...

Tung Dao Xuan, tungdx1210@gmail.com, is the author of this article and he contributes to RobustTechHouse Blog

What is ACRA?

ACRA stands for Application Crash Reports for Android. This library helps your software send crash reports to a backend of your choice.

The Acralyzer is an open source backend for ACRA reports that is really simple to install. The only server-side requirement is Apache CouchDB. You can host it on your own server or use the free hosting services of Cloudant.

Setup Cloudant backend

Step 1:

Sign up an account with Cloudant

Step 2:

Open Replication tab and fill in the fields as shown below:

Source database (Remote Database tab): http://get.acralyzer.com/distrib-acra-storage

Target database (New Database tab) : acra-<name_of_your_database>

How to Setup Cloudant Backend For ACRA (Application Crash Reports for Android)

Then, click the Replicate button.

Step 3:

Continue to replicate another:

Source database (Remote Database tab): http://get.acralyzer.com/distrib-acralyzer

Target database (New Database tab) : acralyzer

How to Setup Cloudant Backend For ACRA (Application Crash Reports for Android)

Then, click the Replicate button.

After that, open the Databases tab, you will see the 2 databases you have replicated.

How to Setup Cloudant Backend For ACRA (Application Crash Reports for Android)

Step 4:

Open acra-<name_of_your_database> database (in this tutorial is: acra-demo), select the Permissions tab.

How to Setup Cloudant Backend For ACRA (Application Crash Reports for Android)

Click the Generate API key button and note down Key and Password. You will need them when you integrate ACRA with your Android software.

How to Setup Cloudant Backend For ACRA (Application Crash Reports for Android)

Remove the Reader permission and add the Writer permission for the key you have just generated.How to Setup Cloudant Backend For ACRA (Application Crash Reports for Android)

To confirm your backend is created successfully, go to https://<your_cloudant_account>.cloudant.com/acralyzer/_design/acralyzer/index.html and you will see the result as below figure.

How to Setup Cloudant Backend For ACRA (Application Crash Reports for Android)

Setup Android code with ACRA.

Step 1:

In build.gradle file, add ACRA library:

compile ‘ch.acra:acra:4.6.2’

Step 2:

In your AndroidManifest.xml file, declare internet permission.

<uses-permission android:name=”android.permission.INTERNET”>

Step 3:

In your class that extends from Application class, update ACRA configuration like this

@ReportsCrashes(
        formUri = "https://<your_cloudant_account>.cloudant.com/acra-<name_of_your_database>/_design/acra-storage/_update/report",
        reportType = HttpSender.Type.JSON,
        httpMethod = HttpSender.Method.POST,
        formUriBasicAuthLogin = "<your_key_that_is_created_before>",
        formUriBasicAuthPassword = "<your_password_that_is_created_before >",
        customReportContent = {
                ReportField.APP_VERSION_CODE,
                ReportField.APP_VERSION_NAME,
                ReportField.ANDROID_VERSION,
                ReportField.PACKAGE_NAME,
                ReportField.REPORT_ID,
                ReportField.BUILD,
                ReportField.STACK_TRACE,
                ReportField.DISPLAY,
                ReportField.TOTAL_MEM_SIZE,
                ReportField.AVAILABLE_MEM_SIZE
        },
        mode = ReportingInteractionMode.SILENT
)
public class <YourClassName> extends Application {

  @Override
  public final void onCreate() {
    super.onCreate();
    ACRA.init(this);
  }

Conclusion

You are done! Run your software and see your crash reports to find out where the problems in your software and fix it.

You can configure report content and use other features. To find out more, check out the links below:

https://github.com/ACRA/acra/wiki/AdvancedUsage

https://github.com/ACRA/acra/wiki/ReportContent

https://github.com/ACRA

http://www.acra.ch/

RobustTechHouse is a leading tech company for mobile app development and ECommerce web design and development. If you are interested to engage RobustTechHouse for your projects, you can contact us here. If you like our articles, you can follow us on our Facebook.

Recommended Posts
Showing 67 comments
  • wuziq
    Reply

    very clear. thank you.

  • Dai Software
    Reply

    this was a very well written article, the information was very nice Thanks for your efforts
    recipe meal kit app development

  • run 3
    Reply

    The information you are giving is excellent. I appreciate you taking the time to create and provide this valuable information.

  • totosite
    Reply

    When I read an article on this topic, totosite the first thought was profound and difficult, and I wondered if others could understand.. My site has a discussion board for articles and photos similar to this topic. Could you please visit me when you have time to discuss this topic?

  • casinosite
    Reply

    I’ve been troubled for several days with this topic. casinosite, But by chance looking at your post solved my problem! I will leave my blog, so when would you like to visit it?

  • 1v1 battle
    Reply

    This particular papers fabulous, and My spouse and i enjoy each of the perform that you have placed into this. I’m sure that you will be making a really useful place. I has been additionally pleased. Good perform!

  • bing maps
    Reply

    That’s good way. Thank you a lot.

  • mcdvoice
    Reply

    What a great and, of course, well written post. It`s so useful…

  • snake game
    Reply

    The information about the watch model you pointed to is very interesting

  • aamer
    Reply

    So lucky to come across your excellent blog. Your blog brings me a great deal of fun. Good luck with the site.
    woocommerce webshops

  • woocommerce webshops
    Reply

    Your blog brings me a great deal of fun. Good luck with the site.

  • Copywriting Vancouver
    Reply

    I am extremely delighted with this web journal. It’s a useful subject. It helps me all that much to take care of a few issues.

  • Women's hats
    Reply

    Your post has those facts which are not accessible from anywhere else.

  • Women's hats
    Reply

    Your post has those facts which are not accessible.

  • amal
    Reply

    Excellent article. The writing style which you have used in this article is very good and it made the article of better quality.
    breakfast board

  • lean consultant
    Reply

    So lucky to come across your excellent blog. Your blog brings me a great deal of fun. Good luck with the site.

  • ecommerce success pakistan
    Reply

    Thanks for the nice blog. It was very useful for me. I’m happy I found this blog.

  • Reply

    This blog is very informative. it adds alot in my knowledge.

  • khunjerab top weather
    Reply

    Your blog help me to understand a problem

  • winben humidifier
    Reply

    This is truly the web service provider I was looking for!

  • DJ near me
    Reply

    Thanks for the nice blog. It was very useful for me. I’m happy I found this blog.

  • asads
    Reply

    I am extremely delighted with this web journal. It’s a useful subject. It helps me all that much to take care of a few issues.
    Earn Through Freelancing

  • Small Business Ideas for Teens
    Reply

    So lucky to come across your excellent blog. Your blog brings me a great deal of fun. Good luck with the site.

  • how to learn quran
    Reply

    This is truly the web service provider I was looking for!

  • children Langley
    Reply

    Thanks for the nice blog. It was very useful for me. I’m happy I found this blog.

  • kipas guys
    Reply

    Excellent article. This essay is of higher quality as a result of the excellent writing style that you employed, which can be found throughout this piece.

  • foodle
    Reply

    I am overjoyed to have, at long last, come across this website. Really thought-provoking articles and activities; many thanks for taking the time to put these together. Please continue to share additional content in the form of a blog. This website is now bookmarked in my browser so that I can continue to keep in touch with you.

  • Reply

    Excellent article. This essay is of higher quality as a result of the excellent writing style that you employed, which can be found throughout this piece.

  • Reply

    Lean Six Sigma is a system with a team-oriented approach that is based on process improvement methodology. It is designed in a manner that helps organizations to eliminate and reduce the waste produced. This certification will help you improve the workplace environment suitable to customers’ needs.

    montana lean six sigma certification

  • gapife9252
    Reply

    This is a wonderful article, Given so much info in it, These type of articles keeps the user’s interest in the website.
    lean six sigma iowa

  • gapife9252
    Reply

    This is a wonderful article
    we buy houses allentown pa

  • we buy houses allentown pa
    Reply

    This is a wonderful article
    we buy houses allentown pa

  • clamb
    Reply

    I believe that your idea will be replicated and used as the basis for the invention of many other ideas because it is both creative and excellent. trap the cat

  • liceh75425
    Reply

    it is very impressive and informative content good work keep it up

    pool builder north palm beach

  • Reply

    it is very impressive and informative content good work keep it up

  • Reply

    This is a wonderful article, Given so much info in it, These type of articles keeps the user’s interest in the website.

  • job interviews
    Reply

    nice post.

  • Asset Recovery Solutions
    Reply

    Our company is very specialized in recovering valuable assets such as documents, mobile phones, cameras, and electronic devices. The company reached this milestone after years of experience, and professional, and in-house development. As a result, we now serve thousands of customers around the world.

  • accounting principles
    Reply

    There are a lot of companies that require accountants to look after their financial issues and deal with their profit/loss situation. So, it is true that accountants are high in demand.
    Rivian stock price prediction 2030

  • accounting principles
    Reply

    Thanks to share this information.
    There are a lot of companies that require accountants to look after their financial issues and deal with their profit/loss situation. So, it is true that accountants are high in demand.
    Rivian stock price prediction 2030

  • accounting principles
    Reply

    There are a lot of companies that require accountants to look after their financial issues and deal with their profit/loss situation. So, it is true that accountants are high in demand.

    Rivian stock price prediction 2030

  • accounting principles
    Reply

    excited to read this content.

    Rivian stock price prediction 2030

  • accounting principles
    Reply

    Great work!

  • death run 3d
    Reply

    Instructions are clear, detailed and easy to understand.

  • majorsite
    Reply

    First of all, thank you for your post. majorsite Your posts are neatly organized with the information I want, so there are plenty of resources to reference. I bookmark this site and will find your posts frequently in the future. Thanks again ^^

  • Reply

    As financial accounting is the backbone of every business. There are a lot of companies that require accountants to look after their financial issues and to deal with their profit/loss situation.

  • casino online
    Reply

    It’s too bad to check your article late. I wonder what it would be if we met a little faster. I want to exchange a little more, but please visit my site casino online and leave a message!!

  • https://quizcum.com/
    Reply

    Quizcum is made for people who are passionate and interested in learning about blogging and content marketing. It is a premier online blog with content that will encourage readers and bloggers about the newest trends in blogging and SEO advertising. We provide users with the most recent content and up-to-date information so they can read newsworthy articles.

  • Reply

    You can see videos, images, Gifs, and wallpaper on Pinterest. Using our Pinterest video downloader tool, you can easily download Pinterest videos, images, gifs, and wallpaper. You can easily download Pinterest videos without a watermark

  • kick the buddy
    Reply

    Looking for a game that offers a unique and entertaining gameplay experience? Try out Kick the Buddy, where you can customize your buddy, unlock new weapons, and enjoy a wide range of entertaining and satisfying ways to relieve your stress.

  • sara saffari
    Reply

    The model website where you will find additional places is definitely funny on top of the feature. It once again schedules everyone to click

  • sara saffari
    Reply

    sara saffari is one of those fitness models that belong to California. In this article, we’re going to provide sara saffari life details such as Fitness, Instagram, Youtube, Bio, Age, Height, Weight, Fitness, etc sara saffari

  • Hamzastore
    Reply

    Nice post. I find out some thing tougher on various blogs everyday. Most commonly it is stimulating to learn to read content from other writers and exercise a specific thing at their store. Online Store In Karachi

  • baccarat online
    Reply

    I am very impressed with your writing baccarat online I couldn’t think of this, but it’s amazing! I wrote several posts similar to this one, but please come and see!

  • Pinloader
    Reply

    You can see videos, images, Gifs, and wallpaper on Pinterest. Using our Pinterest video downloader tool, you can easily download Pinterest videos, images, gifs, and wallpaper. You can easily download Pinterest videos without a watermark https://pinloader.net/

  • Reply

    Sibai Muay Thai Gym in Miami is a popular destination for anyone looking to improve their Fitness, learn self-defense skills, or simply enjoy the excitement and challenge of martial arts. With a highly skilled team of experienced trainers and a comprehensive training program, Sibai Muay Thai Gym offers a unique and rewarding experience for people of all skill levels, from beginners to professional fighters. Whether you want to get in shape, learn new techniques, or have fun and meet new people, Sibai Muay Thai Gym is the perfect place to achieve your goals. Are you looking for an authentic Muay Thai experience in Miami? Look no further than Sibai Muay Thai Gym!

  • Reply

    This is truly the web service provider I was looking for!

  • Reply

    Such a very useful article.

  • dorlde
    Reply

    Thank you for telling me about this. I’m happy to find this wonderful article.

  • Reply

    We help you select the right pump for your specific needs and budget, and provide installation and maintenance services to keep your pump running smoothly and efficiently
    Office#2, 1st Floor, Khan Center, Shahzad Market, Behind HBL Bank, Alfayaz Colony, Satyana Road – Faisalabad – Pakistan
    info@gopa.com.pk
    +92335 7908888

  • xemowi3950
    Reply
  • snow rider 3d
    Reply

    We offer assistance in finding the most suitable pump for your requirements and budget, as well as professional pump installation and routine maintenance.

Leave a Comment

Contact Us

We look forward to your messages. Please drop us a note for any enquiries and we'll get back to you, asap.

Not readable? Change text. captcha txt
Review of the Top 3 Entertainment Mobile Apps in SingaporeTop 10 Mobile App Development Companies in Malaysia