Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I want to acces files on my LAN (on a NAS or PC) by an Android app like I can do on Windows by typing \pcname\ in the explorer. I know this is possible on Android, because there are other apps that do this (e.g. https://play.google.com/store/apps/details?id=com.rhmsoft.fm).
I already tried accessing the file as a local file (new File("\\pcname\")). Needless to say this did not work. I searched the web for tutorials, but every tutorial I found was using ftp, http and so on.
Using java.net.URL you can use ftp urls like ftp://servername/path/to/file. To access windows share, you need to use the SMB protocol (there is similar question: How to access share folder in windows through android and read files )
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I need to learn java programming, I have a LAMP server running and i need to build a webapplication(dynamic website). I have planned to use HTML, CSS, JS and Java for server side scripting instead of PHP using eclipse IDE.
My question is does the above thing work out and also if i want to deploy the files do i need to send the files to /var/www/html/ or any other method of deployment is there ?
Your question is weird, but yes, you can make a application with Java for the server side, read about JSP. And the files folder depends on the local server you're using , though most of the time for unix thats the right folder.
Good luck , I think you research a lot.
Edit: I was about to edit this for the LAMP definition, LAMP stands for Linux, Apache, MySQL and PHP... So you're not technically using that..
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'm currently working on developing an android application that needs to connect to a Raspberry Pi over a local WiFi connection and read some data from a file stored on the RPi. I'm not really sure where to begin on this and what resources I can use. I already have the layout of the application set up and just need to write the code.
So my question is how should I write the android application to read a file from a Raspberry Pi that is connected to a local WiFi network? The file on the Pi could be either a JSON file or a plain text file.
Host the files with Apache, and then download them with WebClient.DownloadString
EDIT: For Android, look into this
For your case, I'd say stop thinking about it as a Raspberry Pi. My guess is that you're going to put NOOBS\Raspberian on it. At that point, it's a linux server.
You can put Apache on it, or an FTP server, or do some google searches on accessing a linux server from android to see a variety of different design patterns that accomplish this task.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I am to programming so please help me in some issues.
I download app from Google play that filter web searches. If URL in blacklist then redirect to this webpage localhost:50099/block.html
My query is how to connect this local server?
It is likely that the app you are running has its own internal web-server. If you see that address in the navigation address bar of the app you are running then you may not be able to access it outside of the app.
Are you browsing the web from inside the app itself? What are you trying to accomplish? If you want to access an internal web-server running on an android device which is open to other apps, then you should be able to access it using the URL you noted. I have seen light weight web-servers internal to apps in both conditions, only accessible internally within the app and accessible outside of the app.
UPDATE: Since your question is now 'How to create a lightweight HTTP server on Android':
Try this: HTTPD
It is very simple to use, eg:
NanoHTTPD serverObj = new NanoHTTPD(50099,new File("."));
use IP address of your machine instead of localost in url eg :-
http://192.168.1.190:50099/block.html
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Is it possible to update my google app engine java application without dropping user traffic?
AppEngine deploy procedure doesn't put your site nor your data in offline/read only mode. As far as the deploy is implemented your user won't notice any issues (as long as your new code didn't introduced any)
yes u can ..
gae projects allows multiple versions for the same project ,you can have upto 8versions i think ..
say ur application name is abc.com
u can deploy ur project to another version like 2.abc.com
and when ur okay with the version 2.abc.com
you can change that to default in GAE .
Now refering to abc.com will actually refer to 2.abc.com this will not affect any of ur traffic
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
Is there a way to restrict the .jnlp files Web Start is allowed to load to a known set of URLs?
Company policy prohibits users to install any software and Java Web Start has been flagged because it allows users to "install" and run applications via .jnlp files.
Setup a firewall and then you (or administrator) can restrict all urls ending jnlp and allow only a limited set.