I was searching through internet but I didn't get complete answer, so i'm asking here. What ways can we use to store data in the internet and get it to Android application? I know about JSON, XML Parsing or frameworks like Parse.com etc. but are there any other ways?
Thanks in advance, it would help me a lot.
It's hard to see which option is best since the requirement is not clear.
For instance, how big is the data you want to access? How frequently?
If you just want to make it works now. An easy way I know is to integrate with AmazonS3 server who also provides a lib for client to integration.
You don't need know the detail of the transition, just put the path.
http://aws.amazon.com/s3/
By the way, for personal user, it's free.
Related
I am making an android app for a survey. The answers are saved in a file, and that file should be sent to the web, so we can analyse the data. I am searching for a way to put the data on the web, in such a way that only I can access it.
I've tried google doc's, but it seems to me that if too many people upload their data at the same time, some data might get overwritten.
I've also tried dropbox, but the problem is the authentication step. Since every person would have emailadres and password, everyone would have access to all data, which should not be possible (unless there is a way to authenticate in the code, but I haven't found anything on that).
Does anyone have an idea what I can do? Thank you!
You shouldn't use a Google Document directly. With a lot of traffic you'll definitely get overwritten data. You're also vulnerable to someone messing with the data since you'll need the document to be public so people can edit it.
What you want to do is create a Google Form and then have your application POST the data to that. Google will handle making sure that no data is overwritten for you.
i have to develop a routing system with open street maps for my second year project (part of the project). I cannot use any external API's for routing. I understand .osm files and I was able to convert them to postgresql format using osm2po and create a database out of it but after this I am clueless. I have researched alot but cannot find any proper help on this topic. Any advice will be awesome.
If you are just focussing on developping an new algorithm, you might have a look at the Trafficmining framework that does all the parsing etc. for you and you just need to code the nessesary java components for your custom behaviour.
You didn't really tell us where you are stuck. But I suggest starting to read the OSM wiki about routing and tags for routing. Looking at one of the many online routers and offline routers for OSM will get you some ideas, too.
I want to write a word search,which connects to a specific website(huge one),takes the word from user,searches the site and returns the strings which contain the word;this should be written in java and as an applet.I have read some tutorials and questions on this,and understood what have to be done is:
1.connect to a website and get the content of a website and save it to a string.(this should be done with a webcrawler which will be made from my own code for connecting to website and save the content to a string + jsoup library to parse the html code).
2.save the datas to a database(in my case nosql database).
3.index the datas in database.
4.query the database to show the results.
5.make a UI for showing the search results(I use swing.japplet).
now my qustions are:
1.have I understood correctly the steps which I have to go?(please explain me in details if a step is unnecessary or necessary)
2.Is it necessary to have a database?
notice:I want to implement it myself,without using ready things such as lucene,nutch,solr,...
edit:3 people told me applet is not suitable for such a thing,so what should be the replacement?
many many thanks for your help.
You should look at using Lucene, as it does most of what you want here.
You should not use applets.
For small data set, database should be sufficient. Databases like mysql comes with full text search functions.
For bigger data set, you might want to consider Lucene or Solr.
That is one way way to implement this. Another (simpler) way would be to use an existing text search / indexing engine like Lucene / Solr. Going to the effort of reimplementing the "text search / indexing" wheel using database technology strikes me as a waste of effort, unless you have a sound technical reason for doing so.
You do need to has some kind of database, because indexing a website on the fly would simply not work. Lucene will handle that.
I think your choice of Java applets to build the UI is a bad idea. There are other technologies that give results that are as good or better ... without the security risk of a Java browser plugin.
Finally, another way to make your website searchable is to get Google to do it for you. Make your website content indexable, and then use Google's search APIs.
I want to create an android that allows the user to enter data, like name and id number. I want to save that data as an object, to a file. I know I can do that using ObjectOutputStream, which I did, and it works. However, I also want the user to come back later, be able to add more entries to the same file, and search through his/her previous entries. I know that only RandomAccessFile has that capability, but I still want to write objects since it's easier to deal with.
Does anyone have any tips on what's the best way to approach this?
I am aware of this post, but I am not sure if I can use the libraries mentioned there on android. I was also looking at SQLite, but I have no experience with it and I am not sure if it's the right option for me.
Thanks in advance!
I'm trying to build an android app that will log into a website, scrape the website for data specific to the user, then format that data nicely on a mobile screen.
I've noticed that there are several similar questions to my own, and after reading some of the documentation, I am still very confused as to how I should go about this.
Here's what I know
The site that I want to log into utilizes asp.net and the login.aspx uses POST for the login form.
There is no API for this website
There is also no single sign on
I'm very new to Android and a novice JAVA programmer at best. Will someone please help me carve the path of research that I need to do in order to write this app? I feel that I mostly need help with connecting to the website and getting the data, I'll be able to figure out the layouts and formatting myself.
I am more than willing to research and read whatever is necessary, but I would like to minimize any irrelevant information that would ultimately lead to more confusion.
Thank you in advance for the help
For the purpose of accessing the website all you need to know about is HTTP. It doesn't matter whether your target website is built with PHP or ASP etc. As you're only concern is how to communicate with the website through HTTP which is independent of technology used by the website. You can try wikipedia for descriptions of these methods.
It might be worthwhile reading the Java URL tutorials for how to use Java classes. As regards extracting the data itself you might want to read up on Parsers. This link might give you some first ideas.
I'd use the Jsoup
API. I've posted many many threads on that issue. This'll probably help you login. I don't know how android manages SSL certificates. So that you'll have to research on your own. But this right here is a good start.
Jsoup Cookies for HTTPS scraping