Hello I am new to Android .I have been given an Android project to do. As a part of my project I need to do the following :
1)Create an Android application that takes 3 inputs from user via EditText namely id,address and contact no, and has a submit button at the end to send that data
2)After clicking the submit button , a web service that we will create using Netbeans should get invoked and display it's contents on the phone to the user
The web service will basically contain some predefined data entries that I want to display it to the user with a checkbox
say eg. xyz
yax
where 'xyz' and 'yax' are contents of my web service. The user selects any checkbox say 'xyz' , clicks another submit button below and the entire data namely id , address ,contact no , and now 'xyz' goes into a mysql database.
3) After reading this I am now aware of how to create a web service but the problem I have is how to invoke that web service from an android phone ???
Can someone please help me ?
You can directly use web-service from URL.
Related
I'm developing an Android application that allows users to make app to phone calls and it is working pretty fine at the moment but, I want to show a custom name when the remote user receive the call. Now, the phone receiving the call is showing an unknown caller name.
My question is if there is a way to achieve this or it's impossible to show what i want.
There is a couple of ways do do this:
User callUserWithHeaders and add a friedly name as a header
Look up the username in your backend when you recieve the call and display the friendly name
I am trying to figure out how to design a page/activity where user will select the server at start of application.For ex. I have 2 servers, if he selects first server I call a certain url and if he selects 2nd server I call a different url throughout the application.Shall I go with listview, spinner or is there some library out there to help me with such design?
Worth to note, the 2 server include country flag next to them.
I have an app that sends user location data to the server using webview load html. Since the users are truck drivers I do not expect them to know to login using password and user name every time they use app , so my solution is to for each user to make an app with it's own user name and password embedded into the app using the id field sent to the php page .
`enter code here`url="http://mywebsite.php?id=16"+"&longitude="+longitude+"&latitude="+latitude+"&brzina="+speed+"&vreme="+cal.getTime()+"&datum="+date;
What I am changing in url is the id field sent to php page .
Is there a way for me to automate the creation of Android apps without compiling app every time I have to provide a new app to the driver .Let 's say I am given a list of drivers with their id numbers I put this some were and I get for 15 drivers 15 android apps all with the different id part in url .
Do you need to know the ID before they connect for the first time?
If not, you can store a GUID on the phone, which is created on first time run. as an identifier. And when the GUID comes in to the server for the first time, you log them as a new user with that ID, and from then on, know its them again.
for generating a GUID I recommend the UUID class
and storing/retrieving it, maybe the SharedPreferences Class.
Alternatively, give them a GUID in an ini file, which your app runs off. (which you know the ID before hand.)
i am creating an APP in Android in which i send my details like phone #,email ,Facebook Address to other person via bluetooth in a text File.I want that whenever the 2nd person receive my text file ,It should prompt the other User that Whether he want to save my details as a Contact.My question is ,is there any built in function that can serve the purpose,as in QR-Reader after reading it asks for saving.
Anyone who can help me with this
Thanks
You should send the info inside the Text file and then use Android Contact Provide to save it in your contacts.You can use the Gesture interface to detect the tap and use Dialog box for YES/No (User Permission).
I am new to Android programming . I have just gone through the basic tutorials present in the samples folder when i downloaded the sdk
My task is to now build an app that does the following :
Create a form with 3 fields
namely name , address and phone
number
Values of these fields will be
present in local mysql lite
database of android and will be
displayed as a drop down list when i
click the respective fields
after doing so , when i click the
submit button , the app should send
an sms to a particular contact ,
here again the list of contacts must
be displayed as per what i have
provided in the mysql lite database
as a drop down list giving me the
option to send a to a particular
contact
I would appreciate any suggestions for the same
Thanks
I would start off just making an activity which takes text input from the user, then puts that into a sms and sends it. You can find a tutorial for sending sms here.
Once you have that working i would suggest that you then change it from text imput to your drop down menus(spinner widget) from your SQLite database, you can find a tutorial for spinners here, but rather than using a xml list to populate the spinner (as done in the tutorial) you would get your data from SQLite and put that into an array to use in your spinner.
Hope this helps get you started.