Upload an image and getting url - java

I've been working on my capstone project which I need to find a way to upload an Image to a webserver in my app (I'm also learning new concepts webservers,php etc..) and get an url of the image back which can be used globally.I mean it should be public(I'm going to use it for reverse google search). I was trying to achieve this by using ftp on free webervers but I failed.
I believe I understood easy android development concepts bu I'm still a rookie and of course there cant be "copy paste this and you're good to go" method but I could really use a suggestion or a tip If you don't mind.

Check out google firebase cloud storage
It'll do exactly what you're after, plus the tutorials are great

Related

How to take a webpage's content to create a native app for it? e.i not just a webview of the website

I want to create an app for a website that I don't own, like youtube or reddit. Every time I search for help, all I keep getting is how to create a webview. I've done that but that's not what I want. I want to take the website's content and create an app with it, like create my own buttons and such. I want to convert a website into an app.
I was thinking of somehow loading the website in the background and creating activities/buttons/intents that basically do what the webpage does but I don't know how to go about that or if there's a better way.
Thank you in advance.
Please let me know if clarification is needed.
Alright i got -3 votes for some reason and it has been 12 hours since i posted this question, i'm guessing the question has been consumed by the abyss of questions by now.
I made a reddit post and got some responses:
one user:
The term you’re looking for is “web scraping“ or “site scraping”. I think that’s probably what you need to research before you’re ready to handle how to make that into an app.
That’s a good starting point and once you have the content from scraping, making the app is no different than any other app.
second user:
If the website has a public (or private) API, you can use your buttons and networking calls to their API to build your client app. You are building a "YouTube client" in this case using the YouTube API.
If they dont have an API and you don't want to display their website, what you are doing is trying to reverse engineer their website and hijack the UI which is not a good practice and may even be illegal depending on the site and terms.
third user:
#second user is right on the money, but one thing I'll like to add is, the goal is to get data off of the website so that you can use in your app. An API is one (convenient) way of doing that but others are,
RSS or similar feed content (prefer this if there website supports)
HTML scraping
The above two will require you store the data somewhere else (and possible expose an API instead) because of technical reasons: you don't have access to older entries in RSS feeds and it's atrocious to keep on scraping everytime you need to access the website data. They can be done on the client (mobile app) but are best done on a server. This means you might need to get your hands dirty writing server code but you don't have to.
/thread
I'm going to do research on website scrapping and APIs to see which route i should go.
Hopefully this helped someone else.

How to make a connection to a Google Drive folder using the Drive API

I've searched a lot through the web about this topic (even on StackOverflow), but the questions I was looking at weren't able to help me, so, here it is (Although im very good at it, english is not my native language, so I'm sorry for any mistake made): (SKIP TO EDIT)
I'm making a simple chat program in Java (self learning), and, at first, I wanted to access a file on my computer. I soon found it hard to acomplish, and decided I wanted to access a drive folder on MY account. So, I googled about a possible Google Drive API. And I found it!!!
I downloaded a copy of the API to my PC, and then i went online to know how to use the API, but the README.txt file and the youtube tutorial were not helpful at all, because i could not understand the instructions. I Looked everywhere but still didnt find an easy-to-understand answer.>
So, im asking if any of you could provide a step-by-step tutorial on how i can accomplish my goal. Ive created projects on the API consoles, but im a bit confused on what to do with them (possibly going to delete them).
EDIT/REDO:
I'm making a chat program, and I want EVERY copy of the program to access a folder on my personal Google Drive and get certain files from it, where ever the user is, and without him having to see the OAuth 2.0 Autorization screen(if this last step cant be skipped, I'll work with that too).
The problem is that, although i have checked the README.txt and the youtube tutorial, i still dont understand how to use the API in the way i want.
So, im asking if any of you could provide a step-by-step tutorial on how i can accomplish my goal, i.e, (Some code could be of great use):
1st-Do this;
2nd-Do that;
...
(n steps)-You are ready;
Thank you in advance!!
P.S.: this is my last "free" question, so if this specific question has been answered please comment it out.
To start using Drive API, you may may want to follow and complete the steps given in Java Quickstart.
Then to integrate with the Drive UI, you may want to check the following references:
Enable the Drive Platform - to get started integrating with the Drive UI, you need to enable the Drive API and provide configuration details in your API project. This gives you access to the API as well as access to UI integration features.
Install Your App - Google Drive lets users install an app by approving an OAuth 2.0 access request.
Open Files - this page describes how to integrate your app with these Drive UI features to open files stored in Google Drive
Hope that helps!

Android database from webservice

I'm wondering the easiest way to go about this. I've used retro fit for java before to post and get from endpoints in web service my friend wrote in python.. However I've never wrote server side stuff. I have phpmyadmin running on a vitural server... Havnt used it yet however. I just need people to be able to like or dislike a poem on my database. I know how to create the database... What is the best way for me to do this? I've looked this up on Google with so many results but not sure where to start!
Found out the easiest way to go about a restful service. Google app engine! You can easily create endpoints and add objects like a breeze!

AJAX Chat How to add voice with Java?

Ok so I use Ajax Chat (http://sourceforge.net/projects/ajax-chat/) and it is a great chat script. I use the MyBB Integrated version and all is well. What I am wanting to know is how I could add voice capabilities.
Basically each channel would be similar to a Yahoo chat room and have a talk button. This way someone could talk and the rest of the room could hear.
Flash is NOT an option, and I tried RED5 with it and the results were terrible. Bad quality, couldnt hear half of the time, etc.
I have searched and searched and searched and all I find is calling, IP-to-IP, etc.
I would like to do this in JAVA if possible which is not one of my best languages. I do have root access to my server and it is linux (CentOS). So what I really need is a point in the right direction on how to do this.
Thanks in advance.
The best way to do this is to use the Java Speech API. You can find out more information about this at this site. This question was already answered actually in this link.

How hard is it to set up a Google App Engine app?

I found a simple Google App Engine open source app which I'd like to play with. Coming from Objective-C my Java knowledge is limited.
Is there a tutorial that walks through the entire process of how to create a simple Google App Engine app?
I would recommend python personally, as you can literally just edit the pages on the fly, press refresh and see the effects immediately in the browser.
If I could give you two pointers though
1) Every action needs to be an http request - keep that in mind when you start and it will make things easy for you
2) Forget SQL. And use the relationships between classes to navigate between them.
did you saw this.. https://developers.google.com/appengine/docs/java/gettingstarted/ This is the one i referred when i started with it.. or probably this one for a hello world program http://googcloudlabs.appspot.com/codelabexercise0.html

Categories

Resources