c++ - Android Server Best Practices -
i have general question because it's know little about. i'm aware it's better ask specific question, when know next nothing, that's not possible.
i'm working on android phone app. app require data come server i'll creating. i'm still working out how data , kind. may small amounts of text (<1kb) or @ 10kb , couple of low res photos. data on server need updated daily android client app can see daily updates.
i have no experience servers i'm @ loss start researching best practices. i've read things, doesn't seem getting me closer direction take.
i'm looking easy , simple implement. can suggest technique, technology, tool, protocol, ... might use. i'm expert c++ programmer , i've been learning java android, if skills in making suggestion.
feel free ask questions may influence choice best.
thanks being understanding generality of question.
please, no snark. thanks.
i'm not sure if helps i've been using call html files on server (on android),
public string requesturl(string url_location){ try { url url = new url(url_location); uri uri; try { uri = new uri(url.getprotocol(),url.gethost(),url.getpath(),url.getquery(),null); url_location = uri.tostring(); try{ defaulthttpclient httpclient = new defaulthttpclient(); httpget httpget = new httpget(url_location); responsehandler<string> reshandler = new basicresponsehandler(); string data = httpclient.execute(httpget,reshandler); return data; }catch(clientprotocolexception e){ return ""; }catch(ioexception e){ return ""; } } catch (urisyntaxexception e) { return ""; } } catch (malformedurlexception e1) { return ""; } }
i've begun use google appspot engine web hosting, let's program server-side java.
Comments
Post a Comment