I took my trusty rifle with me as there are coyotes, wild hogs, and cougars in our area. In Texas, it is legal to openly carry a rifle or shotgun as long as you do so in a manner that isn't calculated to cause alarm. In other words, you can't walk around waving your rifle at people. I always carry my rifle slung across my chest dangling, not holding it in my hands.
At about the 5 mile mark of our hike, a voice behind us asked us to stop and the officer motioned for us to approach him. He got out of his car and met us a few feet later. He asked us what we were doing and I explained that we were hiking for my son's merit badge. He then asked me what I'm doing with the rifle, to which I responded in a calm manner, "Does it matter, officer? Am I breaking the law?"
When asked, why didn't he just say what his purpose for carrying it was? It's stated plainly enough above, so I don't follow his reasoning for questioning a question, especially when a simple answer would have sufficed, then he'd have more backing for any grabbing of the rifle, IMO.