question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android placement of rome.properties

See original GitHub issue

Hello there folks… So, I need to parse some feeds, but the pubDate is formated as: dd MMM yyyy HH:mm:ss Z // Ex: 19 May 2017 02:00:00 -0300, and I can’t get ROME to parse it. I read on issue #317 that I need to set the mask at rome.properties. The problem is that the file doesn’t work, no matter where I place it within the project!

I posted the question here because I think it may help other people…

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
joaoBenocommented, Jul 28, 2017

Hello there, sorry for taking too long for posting this.

I solved the issue by creating a folder “resources” at app/src/main, and added rome.properties there. then, at the app build.gradle I added the following:

sourceSets {
    main {
        resources {
            srcDirs "src/main/resources"
        }
    }
}

That was it! After I put that, Rome parsed my dates correctly… The trick was finding an SO question where someone discussed how to place a file on an arbitrary path inside the APK package.

I hope this help other people!

0reactions
mishakocommented, Jul 28, 2017

Great! Closing the ticket then.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Tweaks][Guide]Build.prop Tweaks | XDA Forums
In your Android, there is no navigation bar. Now accidentally you drop your Android device. Now, at this situation your buttons are not...
Read more >
Add System Properties | Android Open Source Project
This page provides a canonical method for adding or defining system properties in Android, with guidelines for refactoring existing system  ...
Read more >
Immobiliare.it - Indomio - Apps on Google Play
The Immobiliare.it and Indomio app is the best way to find the perfect home for you! Find thousands of properties for sale and...
Read more >
Rome Reborn: Home
FEATURED PRODUCTS · The Colosseum District · Roman Forum · Flight over Ancient Rome.
Read more >
Rome: Villas and Luxury Homes for sale
925 ads of luxury homes for sale in Rome: on LuxuryEstate you will find thousands of ads selected by the best real estate...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found