I know this is a long shot, but I really can't find any tutorials for what I want to do. I am in the middle of creating an Android app, and the next thing I want to do is embed a Google Form into a fragment [as my app uses swipeable views]. I found this, but this doesn't seem to be the entire code. Does anyone know what the entire code looks like, or have any other solutions?
Thank you!
You can create your own UI for all the fields and then send a POST http request with the data to the google form URL. You'll have to find the exact ids of the input elements and create a key value pair for the same. Here is an article which details the complete process with the required android code.
Related
I am trying to create an application which would require a Registration+Login system.
I want the Registration part to use the user's photo, their email id and their full name as inputs.
I have tried playing around with several existing examples over the internet such as :
http://www.tutorialspoint.com/android/android_sqlite_database.html
however none seem to work in my favour.
Based on my custom requirements for the Login+Registration page, could you please suggest some good tutorials/examples for me to look at?
Thank you,
Abhi
I can perform as a native application on android that contains a wall as the Facebook application, I have communication with the webservice using a mysql database but basically what I want to know is how I should send that information to place in my wall of my Android app, do not like the design of the wall, if I need the help of listview, or something else, also not like painting the data string in that wall, please help me, to be displayed as well as the wall facebook.
Your question is too open ended (and also a bit muddled). You can send down the data in whatever format you want (XML or JSON are the preferred ways). Of course you then need to read this data using some sort of serialization library (Jackson for JSON is a good one). Then you probably want to display the data in a ListView, creating a custom Adapter.
There are a lot of pieces to this kind of app, so you're better off building one feature at a time and asking questions about the specific problem you are having. I suggest you figure out how to get the data from the server into the phone first.
I was trying to write an android app to help people do easier searches on multiple websites like craiglist, ebay ..etc
I am not sure where really to start from, or the name of the technology I would be using. To make it more accurate question, these websites are all forms based that you either post stuffs or retreive stuffs through searching. How can I make my android app actually in which it will ask the user for a item name (that part I know) and then send item name to say craiglist so it gets the results back?
I was thinking of copying the url that is displayed on my broswer when I click search on any of the website and using the same link with string manipulation to include whats needed.
Is this correct? Any other ideas are I know? I am kinda all over the place, but I need a starting point.
Some sites might expose a public API for you to connect with, but that's site specific.
Sites that do not expose such a system can be "scraped", which means you're using string manipulation (as you mentioned) to parse our the data you're after.
Both ways require basic knowledge on how to perform HTTP operations, there are several ways to do this but the easiest way it to use the HttpURLConnection class as described in various tutorials on the web.
Googling for "android http GET POST tutorial" should point you in the right way to get started with your adventure :)
This one is puzzling me...
For my Android application I want to be able to return the current time in any location the user requests (right down to city level). The request itself comes from a voice command, so I cannot use alternative methods.
The most obvious way (so I thought) was to query Google, but I need your brains to help me solve how to extract the data I want please!
In Google, query:
"What's the time in China"
You should see a 'widget' at the top displaying the answer nicely. View the page source and search on 'China' and it's there - I thought great, this is going to be easy!
But...
"What's the time in London"
Although the display in Google appears the same, there is no result for 'London' when searching the source HTML...?
Using Google Chrome, I inspect the element of the 'widget' and can then view the contents I wish to extract in all cases.
So, my questions is firstly, am I missing something obvious (Google don't want us to be able to do this for example)? Or is there a way to 'force' the result to be in the HTML by structuring the query perhaps?
Secondly, is there a way to access the specific 'element container' and return the results to my Android Application?
I thank you in advance...
You should really use an API instead of parsing html.
I guess there are many many API which will give you the time in a given city.
http://www.worldweatheronline.com/time-zone-api.aspx for example (havnt tried it myself)
If you still want to extract data from the google result (which is html), check for html parsers like in this post : Parse HTML in Android
I am new to Android development. Using android, I am trying to go to a certain website which is not under my control(developed by someone else and I can't change), fill the data in form fields.
Using WebView control, i am able to load the given URL. But i am stuck with sending/filling data to form fields.
How do i proceed with that?
You probobly need to do somthing like in this question.
You should realy check with the person responsible for the website. If you can get a bit of co-operation then they are less likely to change the form on you and break your code. I have a similar senario and the other party is very happy and will at least inform me before any major changes occure.