[Q] Connecting to external Server - Java for Android App Development

I am building an application where users will be able to register and their details will be stored in an external server which can also be accessed over the web. The users will also be able to login..
I have been researching for days on what method to use but i haven't found anything useful, can anyone help me please?

I've written a guide on Android client server communication http://forum.xda-developers.com/showthread.php?t=2325799
Would this be useful?
Sent from my SGH-I337M using xda app-developers app

Related

Android App Database

I am currently working on a test application Login and Register. I've created a database by implementing PHP and Mysql. I was wondering if using that previous method would be better or using SQLite would be better. Any opinions?
I'm not 100% sure of what you're trying to do (more details would be great!), but I'll try my best to answer.
If your app is connecting to a remote server to login, PHP and MySQL is the way to go. If your app queries a local database on the phone, use sqlite.
Sent from my LG-P500 using xda app-developers app

Connection between server and client

How to create web service for android app. and how to connect ?
Is that what you want?
http://forum.xda-developers.com/showthread.php?t=2325799
Magesh.K said:
How to create web service for android app. and how to connect ?
Click to expand...
Click to collapse
For the webserver I use Jersey Lib it's very easy to do with annotations and then you only need to do a HTTP GET/POST/PUT to the WS on the server
thank you for replay,
can you give step by step explanation? ,with sql server
For sql server, most likely you're using an IIS for web server... Hence you can use asp for web services... w3schools offers a good tutorial on this... Have fun!
Sent from my LG-P350 using xda app-developers app

[Q] server client

I am developing an application which sends information to PC from an android device (Smartphone), what i want to do is to control this communication from the PC, it means that I have an application GUI with Java in which the botton "RECEIVE" when is clicked the communication starts and the device send the information (the PC and the device are already connected)
I dont know how to proceed (JAVA RMI ,,,...????) if you have any suggestions dont hesitate
Thanks
At this link you can find a client-server framework. Right now its somewhat limited but it would give you a start. It can currently send messages from client to server. You can specify a port and IP address. Hope it gives you what your looking for. http://www.site.uottawa.ca/school/research/lloseng/supportMaterial/ocsf/ocsf231.zip
This page might give you more info
http://www.site.uottawa.ca/school/r...rom my Nexus 4 using XDA Premium 4 mobile app

[Q] Just a question about servers communicating with android

Im planning on building an android app. Its like a 'mini' social networking site that users can upload their pics, messages etc but im having trouble knowing how to 'start off'..
Servers, SQL, PHP and those types are not my thing, i have never came close to them as I have never done anything relating to servers but now I need to get close to them.
This is where im having the confusion:
Should I build a website that is the social networking site and store everything in the server that the website it connected to and then from the app i build, the app can fetch data from the website (or the server if thats possible) OR can I just directly build the app and make it communicate with the server so that gets rid of the issue of building a website.
Ive done a little research and have gotten some information but not a clear answer. I think my server will be using SQL so will the app be able to communicate with the database in the server directly or do I have to create a middleman such as a PHP/XML/JSON server for the android app to understand the SQL server since this is probably the common answer ive gotten when researching about android communicating with databases? (http://fahmirahman.wordpress.com/2011/04/21/connection-between-php-server-and-android-client-using-http-and-json/
Which approach is the easiest since im completely new to server languages (if thats what you call them).
Thanks for the help.
Hi man!
BTW the easiest way is to setup a PHP page on a server which sends JSON objects when data is requested by the client. Of course if you're good enough you could create a REST API for your server. After you get data from the server simply load the objects via a http/https request via your client.
I strongly recommend you make the API for the same. I'm doing an Android project which involves the same.
Sent from my Nexus 4 using XDA Premium 4 mobile app
boggartfly said:
Hi man!
BTW the easiest way is to setup a PHP page on a server which sends JSON objects when data is requested by the client. Of course if you're good enough you could create a REST API for your server. After you get data from the server simply load the objects via a http/https request via your client.
I strongly recommend you make the API for the same. I'm doing an Android project which involves the same.
Sent from my Nexus 4 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Oh ok. Thanks for the reply. Right now, im learning SQL since thats what most servers use. Then I'll probably get a server and experiment with it, although I have no idea on how create an instant messaging app Im pretty sure theres guides on the interwebs though
Don't forget to make APIs so that you don't have trouble figuring out client side programming. It will save you a lot of trouble.
Please give a thanks if you think this post helped you!
Sent from my Nexus 4 using XDA Premium 4 Mobile App .
boggartfly said:
Don't forget to make APIs so that you don't have trouble figuring out client side programming. It will save you a lot of trouble.
Please give a thanks if you think this post helped you!
Sent from my Nexus 4 using XDA Premium 4 Mobile App .
Click to expand...
Click to collapse
Sorry but im a bit new to android programming. What does API mean? Is it like Android version 2.2, 2.3, 4.1, 4.3 etc? And how can I make an API?
TwilightLoz said:
Sorry but im a bit new to android programming. What does API mean? Is it like Android version 2.2, 2.3, 4.1, 4.3 etc? And how can I make an API?
Click to expand...
Click to collapse
Straight from*Wikipedia:
In computer science, an application programming interface (API) is an interface that defines the ways by which an application program may request services from libraries
Java contains many libraries in those packages (Swing, etc.), and*the API*is the interface by which we request services (perform actions, etc.).
Since we're using Java for Android we are actually using the Java API by using any of Java's classes. All of Android's custom classes like Activity etc are part of the SDK library.The API is just a hook so you can latch on to libraries.
So in fact what you can do to create an API is a whole different topic altogether.
I suggest you Google it.
I'm thinking maybe I'll write a tutorial on this on xda for all members amateurs or pros alike.
Yeah I think you should write a tutorial. It'll help the community.

[Q] uPLOAD fILE TO SERVER

hello friends..... i am building an app that selects a file (text, image , video...) and uploads it on a server...... now, I have tried uploading it on to a local wamp server using a php script, but, it does'nt work. Can i upload the file on a free web hosting website like neq3 or 5gbfree.com? Help required urgently..... PLEASE HELP
If you don't mind using ftp it should be relatively easy to set up. The free web hosing I use has an ftp server built in, its called 000webhost. Also you could set up a php script there as well if that's what you need.
Sent from my SCH-I535 using XDA Premium 4 mobile app

Categories

Resources