Click here to Skip to main content
15,890,724 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
In my android application,each user gets 100 Rs. when he registers. Now in one of the activity if a user firstly clicks on a button say "V1" and the payment is successful then my app should send sms something like - "30 Rs. deducted, balance is 70 Rs." to the logged in user on his mobile number (stored in a users database) if the payment is successful. Again if he clicks any other button say "V3" and the payment is successful then it should send a sms- "30 Rs. deducted, balance is 40 Rs." How can I do this? Also where can I store the amount which user is balance after the first click, similarly after the second click and so on ? Any suggestions or advices will be highly appreciated. Thank You.
Posted
Updated 17-Mar-14 23:15pm
v2
Comments
Richard MacCutchan 18-Mar-14 5:17am    
You would store the balance in the user record on the database. You can then update it each time some money is deducted. This also allows you to check that the user has enough credit before you do the deduction.
Shubhashish_Mandal 18-Mar-14 13:26pm    
+ you need a sms provider to send transactional sms. There are lots of sms provider available in web, choose properly as per your business requirement.
MJR4PJCT 19-Mar-14 13:25pm    
Basically I need to integrate this feature of sending transactional message into my android applications. So is it like if I want to implement this then I have to launch my application in android market and then only I can do this ?

1 solution

The first step is to find an SMS provider, then Secondly you have to build a database to store the user's information that will contain mobile numbers, and any transactions carried out. The balance then would be worked out with respect to the value of transactions.
 
Share this answer
 
Comments
MJR4PJCT 23-Mar-14 14:51pm    
But I found that there is no such SMS providers who are allowing to use there API's for free.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900