How to save mobile number on heroku server - android

I want when someone signups with his mobile number through my android app (say abc) , the number must be stored or uploaded over the server. I don't know how to do that I have read a little bit about heroku volley etc. But didn't understand that. Is there anyone who wil be helpful for me.
Tell me how to save mobile number over server(heroku ) . I have zero knowledge about this.

Related

Best way to send data through devices? (Android)

Imagine an Android app where you create a poll, you receive a poll code, and when people insert your code, they view your poll, vote on it and you receive the data.
What would be the best way to send this data and save it temporarily? Should I have an external file? A database connection? A p2p connection or anything else?
Thank you very much in advance and sorry for the dumb question I'm completely new to Android.
An Online database will work. You can store the database locally on the phone and have it refresh every "X" amount of time. You will have to use some PHP coding and query the data from the database, sending it back to the phone. You can find a free webhost that lets you store databases here . Hope this helps. Also look into importing sqlite database libraries and mysql handlers to implement this. Tweak this example on Youtube to get webhost working and a simple login via php here

Generate fresh personalized feed for user

I am trying to build a social app in which people can share their thoughts, like others' thoughts and comment also. I have a server and android app on client side as for now. My problem is that I want to make sure that user sees everything fresh each time activity is loaded such that server and client both can handle that much load. How do I determine how much data user has actually read from data sent by server and tell that to server so that server can keep check on what to send next?
One example I can think of is quora. It generates new feed each time although show how much i have read before at the end.

How to store the content for android application

I'm a complete newbie in android development with some basic programming knowledge. Right now, I want to develop an E-Commerce app which allows the user to upload pictures for the public to browse through. However, I have no idea how should I store all the data, including the details(username and password) of the user, in the server. As far as I know, the database most often used in android is SQLite, but I'm not sure whether it's suitable to be used in my case.
Please shed some light. Any form of help would be much appreciated. Thanks in advance.
You could set-up a backend using some database (eg. MySQL) and some programming language (eg. PHP) as well as some kind of web-server (eg. Apache).
You would store the products,user data in tables of the database. Pictures would be stored on some directory on your server and you could store references to their path in the respective fields.
Your client (android) would load the products list as well as submit new products via issuing requests to your server back end, and perhaps store them in some SQLite database if you need the old items viewed to remain viewable without an internet connection.
A few tutorials to get you started:
http://www.androidhive.info/2012/05/how-to-connect-android-with-php-mysql/
http://www.tutorialspoint.com/android/android_php_mysql.htm
If you'll create an e-commerce mobile app, it cannot exists as a mobile app alone because it needs to connect to other users. You need to integrate it to a web service or a cloud service to tasks such as getting the item data, images, and other tasks involved. There are Baas (cloud) that you can use such as Parse and Kinvey.

Upload a picture to ubuntu server through an android application

I have a problem with my application, and I was wondering if you guys could help.
So, I am making an application that communicates with a server that contains a SQL database. I am going to store a link of the user profile picture in the database. However, I want the pictures to be stored on my server - ubuntu server on raspberry pi 2. I've been looking around, but I cannot find a good tutorial on how to upload a file to the server at a specific location. So basically, I want to take a bitmap file, and then send it to my raspberry pi.
I would really appreciate it if someone could help me out. Thanks!
You can convert your file to a base 64 string and then send it
refer to this solution:
Android - Send Image file to the Server DB

MySQL database to store user comments

I'm currently developing an application which aims to provide users with a map with which they can navigate and which will also track their position. Another part to the application is that the user must be able to share a comment that comes to mind (similar to Tweets/Facebook status) which will be viewable to other users of the application. The idea is that these comments would be categorised depending on the nature of the comment.
However, as this is my first android application and my programming experience is quite minimal, I'm having a little bit of difficulty. I have integrated Google Maps into the application, however I'm stuck on the Comments section. I've been told I need to use a MySQL Database and use PHP as the go between with Android & the db?
I'm not really experienced using databases and so I'm unsure if I could implement some kind of category system for the comments? Ideally, the user would be presented with a list view of the categories and then select an appropriate one which would show all the comments posted to that category, much like a Twitter feed. Can this be achieved using MySQL? Am I on the right path?
Any help would be greatly appreciated, thanks!
Forgive me if I target this at the wrong level, from you question I assume you are very new to this game.
For your users to share content with each other they are going to have to talk to a middle man, a server, your server. This server is going need to be running a customer website (webservice) and record all users comments and then feed those comments back to all users running your applications on their phones.
How those comments are stored and what language this webservice runs on is upto you.
For languages you could pick any some of the most popular (in no particular order) are:
Java
C#
Perl
PHP
JavaScript
Python
etc.
With the language you choose you are going to provide an Api to your application (look into Json Over Rest).
The other thing your service is going to need to do is store this information, databases are good places to store information, again there are a lot to choose from. Starting with traditional Sql Databases:
MySql
PostgreSQL
MS-Sql-Server
DB2
Oracle
etc.
All of these are going to be well able to handle you requirements. You may also wish too look at a NoSql alternative.
So when a user adds a comment in your application your application opens an internet connection to your server and sends the comment. The server [PHP | Java | Python | etc.] checks to make sure the comment is OK and is from a registered user, then sends it to the database. The database [MySql | MS-SQL | DB2 | etc] writes this comment to a table. When your application wants to display comments from other users it will send what categories it is interested in to your server, which will ask the database for the most appropriate comments, the data base will retrieve these and pass them back to the server which will in turn pass these onto your client.
In answer to your question:
Yes MySql and PHP running on your server will be able to handle this, so will a large number of other tools.
Please do not start writing to databases until you understand about Little Bobby Tables

Categories

Resources