Reputation: 2499
I have office program that I use for my work and there are a lot of partner information into database. One of column is Mobile Phone
.
What I want to do is make is to connect my android phone to PC, run that office program and from there send one message to all partners from database.
How can I pass message and number to my android and then send sms?
I have read about SMS sending from PC but I found something that works only with Nokia phones, some programs, and something that is outdated.
My office program is made in C#/WinForms/FireBird.
Upvotes: -3
Views: 500
Reputation: 168
You have to write an api (Connection to users database and hande sending sms) with mvc and c# then you can write simple app in Android studio to send message to your api(with retrofit2 library). If you want more help. I can write some sudo code here. If You have to send SMS by cell phone, you can get list of number by an api
MVC Api Controller to get Target Numbers from android:
public class SmsUsersController : ApiController
{
private Context db = new Context();
// GET: api/SmsUsers
public IQueryable<SmsUser> GetSmsUsers()
{
return db.SmsUsers;
}
}
and use retrofit to read api values: http://square.github.io/retrofit/
Upvotes: 0