[Q] Need Some Direction: Scooter Rental Application - Java for Android App Development

I run a couple recreational vehicle rental stores in New Mexico. I am working on an Android application that will make the job our sales staff's jobs easier and less prone to error. The first part of the app that I am working on is the tool for conducting new rentals.
The first screen takes in info about the rental. It looks like this:
Number of vehicles : ________v (dropdown spinners)
Number of helmets : ________v
Duration : _______v
Discount : _______v
Each store has different amounts of vehicles and helmets, so this data will need to be pulled in from some kind of database on our website. The app needs to open the database, look for it's store ID, then pull it the number of operational vehicles and helmets, to fill in the first two spinners.
I guess my first question is...How do I go about setting up a database on our server that Android can connect to and pull in the data for these two spinners?

jcanuet said:
I run a couple recreational vehicle rental stores in New Mexico. I am working on an Android application that will make the job our sales staff's jobs easier and less prone to error. The first part of the app that I am working on is the tool for conducting new rentals.
The first screen takes in info about the rental. It looks like this:
Number of vehicles : ________v (dropdown spinners)
Number of helmets : ________v
Duration : _______v
Discount : _______v
Each store has different amounts of vehicles and helmets, so this data will need to be pulled in from some kind of database on our website. The app needs to open the database, look for it's store ID, then pull it the number of operational vehicles and helmets, to fill in the first two spinners.
I guess my first question is...How do I go about setting up a database on our server that Android can connect to and pull in the data for these two spinners?
Click to expand...
Click to collapse
You will need two parts to this app. You will need a database on your webserver (mysql, mssql) and some server side scripting language (asp, php). Your web server will need to have a page/script that can accept POST data from your android app and return a response. Then your android app will need to wait for the response, parse it and use that data to populate your fields.

Related

Add Contact

Is there a way to add a phone number from a received call to an existing contact and not to a new one?
uhmm... Bump????
uhmm... No?
uhmmm....Grrrrr :evil:
agreed
Keep in mind that MS are a relative n00b when it comes to phone services. They don't quite 'understand' the needs just yet. It'll come, but probably not for current devices - short of a hefty ROM update
Third party developers should be able to address this to an extent.
Ahhh, no worries, even Sony Ericsson do not with their best business phone yet. P910i does the same stupid thing, when one should think that with their experience.......and the lesser, below 150Euro phones do.
We'll just have to wait then...thanks
This is something that has annoyed me since I got my phone. I can't believe such a basic function has been overlooked. :twisted: :twisted:
I'm not sure if that's such a basic function, really
A lot of phones don't allow more than 1 number, and you end up specifying multiple contacts e.g. "ZeBoxx" and "ZeBoxx (cell)".
In addition, even the PocketPC doesn't have multiple phone numbers, just several fields - i.e. one for a land line, one for a mobile #, one for a work #.
Let's say the contact in question has 2 cell numbers - you'd have to either say that the 2nd cell number would be their 'work' number', or if they already have that - and a land number - still make a 2nd contact
ZeBoxx said:
Let's say the contact in question has 2 cell numbers - you'd have to either say that the 2nd cell number would be their 'work' number', or if they already have that - and a land number - still make a 2nd contact
Click to expand...
Click to collapse
Yeah, why not? Most simple Outlook synched phones do that.
ZeBoxx said:
I'm not sure if that's such a basic function, really
A lot of phones don't allow more than 1 number, and you end up specifying multiple contacts e.g. "ZeBoxx" and "ZeBoxx (cell)".
In addition, even the PocketPC doesn't have multiple phone numbers, just several fields - i.e. one for a land line, one for a mobile #, one for a work #.
Let's say the contact in question has 2 cell numbers - you'd have to either say that the 2nd cell number would be their 'work' number', or if they already have that - and a land number - still make a 2nd contact
Click to expand...
Click to collapse
In some ways you a re right, but WM5 has multiple fields for a single contact as you specified so if I receive a call from a person in my contacts and I want to save that number against his name as it may be a number I don't have for him, I should be able to do it. If not by a simple menu option then at least allow me to copy the number by tap and holding it but even that doesn't work.
A lot of people now carry two cell phones around so it's about time that they provided two cell phone fields in the contacts.

Can anyone develop an SMS application . . .

Hi all.
I was wondering if it is possible to develop an sms application whereby as well as all the usual info you type in eg recipient name, number, message etc, you could have a way to control and set the outgoing 'from' number as well.
This would be handy where some of us are forced to carry two phones around with separate contacts on each.
maybe its not possible but id love to have something like that to simplify life instead of spending multiple messages explaining why id like the reply to a different phone number. ( and no we are not allowed to transfer contacts )
Thanks Guys.
AndyG
Sorry, the from field is not set on the device itself, but set by the network, to do that you would have to do it on the service provider side.
...the only options you can set at the application layer are the ones available through the SmsSendMessage API:
http://msdn2.microsoft.com/en-US/library/aa455068.aspx
To achieve something like this is not possible at application level..what you'll need is to get into a much larger sphere of sim spoofing, which can be carried out, I think, (as I'm a BTS s/w guy,i.e., network software developer) in following two ways:
1. Cloning/spoofing the sim itself using another sim(can be done and is done a lot I think)
2. Hacking into the GSM\Radio image that is loaded into our devices and then hacking the messages exchanged between network and mobile, but this is not possible since we dont have the source code for the radio image
Anyways, if any of these methods are possible, then not just the sms, but ur complete phone functionality will be replicated, i.e., basically u will have two phones with the same number which kinda defeats the purpose of having two phones

[REQ] Looking for an sms app that does the following...

Hi everybody! I have a request for an sms app to fulfil my daily needs! Here is what I would wish for:
1) Config and save the following parameters: phone number, sms text, start time, interval (in minutes), end time and/or number of iterations.
2) Start the app, change/confirm settings and then let it automatically and repeatedly send sms to the predefined number with the predefined text and timing.
What is this good for? Well, my personal scope of application would be the sms parking service that is available in my hometown (Austria/Vienna)... You just send a text e.g. "10 *w47559e" and you're good to park your car for the stated number of minutes and car sign. However, if for some reason one needs more time, it is troublesome to constantly extend that sms ticket manually.
Maybe you guys can point me to an already existing tool that does the job. Or perhaps one hell of a coder here can give it a try! Wouldn’t normally make such a request but considering some of the great apps appearing on this board I thought it could be worth asking.
Thanks!

[REQ] Looking for an sms app that does the following...

Hi everybody! I have a request for an sms app to fulfil my daily needs! Here is what I would wish for:
1) Config and save the following parameters: phone number, sms text, start time, interval (in minutes), end time and/or number of iterations.
2) Start the app, change/confirm settings and then let it automatically and repeatedly send sms to the predefined number with the predefined text and timing.
What is this good for? Well, my personal scope of application would be the sms parking service that is available in my hometown (Austria/Vienna)... You just send a text e.g. "10 *w47559e" and you're good to park your car for the stated number of minutes and car sign. However, if for some reason one needs more time, it is troublesome to constantly extend that sms ticket manually.
Maybe you guys can point me to an already existing tool that does the job. Or perhaps one hell of a coder here can give it a try! Wouldn’t normally make such a request but considering some of the great apps appearing on this board I thought it could be worth asking.
Thanks!
PowerSMS (Freeware) will do all that for you.
Here is the Home Site URL:http://www.trinketsoftware.com/powersms/default.aspx

[Q] Private Update Server

I have made an application for my fire department where it will send a text message when we get paged out. The only problem right now is that I have to hard code the numbers of the members in until I learn how to do multiple contact selection and code it in.
For right now, myself and 3 other people have the program but I am constantly adding/deleting numbers. How would I go about adding a button that could check a personal server for an application update? I don't want to put this application on the market for the simple fact that it needs to stay private.
Skullmonkey said:
I have made an application for my fire department where it will send a text message when we get paged out. The only problem right now is that I have to hard code the numbers of the members in until I learn how to do multiple contact selection and code it in.
For right now, myself and 3 other people have the program but I am constantly adding/deleting numbers. How would I go about adding a button that could check a personal server for an application update? I don't want to put this application on the market for the simple fact that it needs to stay private.
Click to expand...
Click to collapse
Why not just read the contact info from a web server? Just update it in one place and the clients get it from there.
Skullmonkey said:
I have made an application for my fire department where it will send a text message when we get paged out. The only problem right now is that I have to hard code the numbers of the members in until I learn how to do multiple contact selection and code it in.
For right now, myself and 3 other people have the program but I am constantly adding/deleting numbers. How would I go about adding a button that could check a personal server for an application update? I don't want to put this application on the market for the simple fact that it needs to stay private.
Click to expand...
Click to collapse
I did that on my own app. It downloads the file from my Sourceforge site, takes the MD5 sum of it, and compares it to its own MD5. It's inefficient because it downloads the entire file before deciding if it needs to update, but it works and all I have to do to update it is change the .apk it downloads.
The relevant .java file in my app can be found here and the pertinent method is the update method starting on line 214. It uses the downloadAndInstall() ASyncTask on line 337, as well. Hope it helps!

Categories

Resources