[Q] simple app using HTTP to send and recieve (NO PHP) - Java for Android App Development

Hello all,
I am new to android programming, I was able to get the suduko program working… by the aid of a hello android book..
Now on to make my own program.. I basically want to be able to have a simple GUI that will give the user the ability to query a website and get a response back. Just as if they were on the website and they had to hit a radial button to check item category being searched then hit sumbit then that would bring them to an other page where they (depending on the radial button clicked) would either enter a serial number in or have to click the drop down box and select a province and then enter the serial number to be queried. The site returns if it is valid or not.
Obviously I would want this to be on a GUI on the phone . But I have no clue where to start in terms of A) how to get the app to send the serial number/letters to the website and return what the query is. B) how to make the app select a radial button and C) how to make the app select dropdown menu of the province on the actual website.
Any help to get started would be very much appreciated.. Again, I am a complete noob. I have read a basic hello android book I have searched google and all I see mainly is HTTP GET or POST but really have no idea how to use them in the context I described, or even if that is what I need for my specific application.
I was hoping not to use PHP or setup a server.. Is this possible?
Thank in advance

Related

VOIP SMS .:. TvMSmS v0.1

Is a very very simple application that allows users to send sms by certain voip accounts...
Its my first app running in a PDA and i hope you enjoy.
TvMSmS_v0.2.rar
simple but lots of potential!
I must say, i like it a lot! there is also someone else developing something like this, his name is skandler. his app has some nice extra features, but i like the fast startup of your app, and the use of standard contact list.
do you see any way to integrate (hook) into the normal sms send subroutine?
also, it would be nice to call the app from commandline, so you could make a shortcut to send to specific people.
sender info doesn't work.
hi,
i found a small bug, when you use voipbusterpro.com, and you enter your correct number in your "from" field, the sms you sent has your login name instead of your (verified) number. i don't know about other accounts, i only use voipbusterpro.
other than that... it's fast! and simply works!
Hi thanks for reporting it.
Bug fixed and url updated...
Even the small apps have the rights to have their bugs
I already thought to put the app running from contact list in a append menu, but im starting with c# /sdk 6 and my knowledge of this is very small.I will keep looking and see if im capable to do that.
country code bug
Hi there,
i found another bug. when a contact already has the phonenumber in international style, your app still writes the countrycode first and then the number;
so you get +31+316.... in the case of a dutch number
You have right again
I will put a function to check if the number already start with + char or something.
thanks for your reports
As we see a very small app could have a lot of bugs (blame the coder )
Phone number with international code will ignore country code in conf...
always "Network error"
other IP SMS tools work & also any program that needs GPRS or 3G. Only TVMSMS fails.
Any ideas?
When "network fail" error appear is something about you configuration( he cant make the request to your voip account).Could you tell me what is your voip provider that you are using in software?
Thank you for this great app
Is the app available elsewhere as the rapidshare link is broken.

SayNOTO0870 Application for WM

Dear Members,
I am working on an application in C# for WM which connects to saynoto0870.com website and fetches the alternative geographical No. to 0845,0870,0844 etc.
How this application works is as follows:
When user dials an 0844 or 0871 No. this application intercepts and provides with options to either go ahead or check for an alternative geographical (landline or 0800) No. from saynoto0870 website. (this option disappears after 5 second if no input is provided by user and tries to reach the dialled No.)
If user allows the application to connect and search for alternative No. it fetches the company's name, alternative No. and description of alternative No.
It then lets the user call the alternative No. by clicking on it
It also keeps track of retrieved numbers in history(application specific) and provides option to add the No. to contact List.
What I would require from respected members is to provide their comments and suggestions. I will be much obliged to receive suggestions to improve the application. I will soon post the screen shots. but first I need to make sure there are enough users to utilize this application. and no doubt this application will be free to use and redistribute.
Thanking you,
Ittar
P.S. Please do not forget to write down your suggestions.
Did you get anywhere with this ? i use the service all the time, would save loading up a browser and messing about.
I second that! I hadn't even noticed the first post!!
Definately a great idea!

[NEED SOME HELP] HOWTO get tables From Website with VB

Hi Guys,
i'm working hard on a windows mobile application in visual studio 2008 (vb). What i want is that the application retrieve a table from a website.. based on user input.
for example there is a website.. where a text fiel exist wich is called country. when i'm filling that text field with United Kindom and push the button submit, the website is showing me a list of al the cars in the united kingdom.
But how can i fill that text field in my visual basic application and how can i show the results in my visual basic application?
I hope somebody can help me!
cobrawnl said:
Hi Guys,
i'm working hard on a windows mobile application in visual studio 2008 (vb). What i want is that the application retrieve a table from a website.. based on user input.
for example there is a website.. where a text fiel exist wich is called country. when i'm filling that text field with United Kindom and push the button submit, the website is showing me a list of al the cars in the united kingdom.
But how can i fill that text field in my visual basic application and how can i show the results in my visual basic application?
I hope somebody can help me!
Click to expand...
Click to collapse
Hello,
You may have a look at the HTML source code of the page where you have to fill the text field. Look for the FORM tag (to get the name, the method "post or get" and the redirection url), then find the text field and get its name, now find the submit button and take the name (be sure no JScript are executed for the "onclick"), look also for "input type=hidden" fields!
Now the idea is to send a request to the webserver to act "as if you clicked this submit button". For this have a look at the System.Net.WebClient classes, look the HttpWebRequest and HttpWebResponse objects also.
You'll be able to send a POST of data or a GET with a "long" url (?param=value&param2=value2... where param is the name of hidden and text fields)
I tell you all this from memory since I'm @work I don't have all my source-code under the hands I'll have a look quickly tonight, I made this kind of thing ; for windows not mobile and in c# but the idea should be the same...
Hope this helps!
Dark
PS: have a look in google for "sample + HttpWebRequest + VB.Net" you may find great stuff there...
Thanks dark! Its working fine with httpwebrequest

auto complete in address book

Dear all:
I am using HTC Snap GSM version (S521), Generic unlocked version.
there is one annoyance which I don't find in the pocketPC version which I would love to get it fixed. I am not sure where is the problem lies.
The issue is that when I send SMS/MMS, i can't just start typing the name of the person and expect the application automatically filter/complete the name of the recipient. Instead, I have to press "enter" to get into the address book and select the name there.
Is there a way I can just auto complete it by some sort of registry fix?
thanks in advance
Harv

[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