Texicans
Texicans

Reputation: 75

Security of hardcoded URL in Android application

My application connects with a server by URL which is included in an application code. From security point of view, hardcoding such as URL is not a good practice (e.g. due to possibility of reverse engineering). How this could be improve? How improve security of URL?

Upvotes: 0

Views: 948

Answers (1)

TheKarlo95
TheKarlo95

Reputation: 1153

You don't need to because URLs are supposed to be public. Even if you hide it in app anyone can sniff network for traffic and see your apps traffic and read your URL from HTTP/HTTPS packets.

Think of an Android app as a website/webapp. Why would you hide URL from your website?

Upvotes: 1

Related Questions