Android How to hide server url for security in code?

My application need to communicate frequently. So there are many url: http://abc.php The question is even if I use proguard, is it possible for people to get the url and hack in the system. What should I do so that it can hide the link and make my system more secure.


You can't. Any one can get you app and use sniffers to check where your application sends request. You should provide good security on server.

Any URL or web service you are sending them to should only be for uses such as JSON/XML requests. There shouldn't be anything that critical in a wide open base URL. If there is then you have problems to begin with. Plus you may try to hide your URL, but with simple networking tools attached to the application it would be very easy to sniff the IP address and do other public functions to look-up the url. Any URL you have would be public, thus you need to take security measures on another end.

Need Your Help

WCF REST Starter Kit - support for multiple resources? wcf rest

I just started tinkering with the WCF REST Starter Kit, I watched the screencasts and... I suspect I'm just being stupid. :) Out of the box (with the provided templates) I can create REST services ...

Control which field is displayed in the textbox part of a databound WPF ComboBox

c# .net wpf combobox

I have a ComboBox in WPF which is databound, and has data template which controls how each of the items is displayed. I have made it so that each item is displayed with two bits of text (for the Na...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.