Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [AGK Tier 1] - Mapped network locations, HTTP, sharing files advice needed

Author
Message
Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 18th Feb 2014 14:56
Hi All,

I have big plans... but to make them happen I need to be able to share files between Android and Windows. The most direct route is probably to setup a server and do everything with HTTP requests, but I'd rather avoid the hassle of that.

I have a network location on LAN, and it's accessible on Android using ES File Explorer, all looks good from there - but I want to use this location in AppGameKit, so I can synchronize PDF documents and also make changes to work files - even if that's a case of HTTP get, change, then send back out again.

So, ideally - does anyone know a way to map a windows network location or somehow access the shared location using AGK/Android etc?

Or does anyone have any advice on setting up an internal HTTP site (from the shared files), that would work with HTTP requests?

Or, does anyone have any thoughts on this.

Ultimately I plan to make my own 'work in progress' tracking and reporting system using AppGameKit as a front end, with simple file transfers back and forth - but meanwhile I'd have a separate server to process these files and update databases etc. I can do everything I need with just sending files back and forth, but I'm a lot sketchy on how to achieve that with just network sharing.

I am the one who knocks...
Markus
Valued Member
22
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 18th Feb 2014 16:08 Edited at: 18th Feb 2014 16:16
maybe try google drive web api.
you can access from pc and also via http request from agk.
https://developers.google.com/drive/v2/reference/
https://developers.google.com/drive/
https://drive.google.com

without webserver you can make your own small
app in java or .net that use TCP for data transfer via network.
http is just a port 80 than listen for connections,
if a connect request will be accepted for a connection
it will use a new free port for transfer until close connection.
means agk can send data with http commands direct to your app.

AGK 108 (B)19 : Windows 8.1 Pro 64 Bit : AMD Radeon HD 6670
Naphier
15
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: St Petersburg, Florida
Posted: 18th Feb 2014 21:12
I'd suggest setting up XAMPP on your local machine. Add a database and use the server setup to help handle all the stuff you want to do.

Have you tried accessing the Windows share like this:
smb://192.168.1.1/
Where that IP is the actual IP of your Windows machine?
ES File explorer works through SMB to windows, so it might work. Getting stuff back to Android and in an accessible directory might not work though. But I guess if you can access the Windows files directly then there's really no need to transfer them back to Android.

However, this will all only work if your on the same LAN. Anything outside of that you really need a server (or server-like program as Markus is mentioning). I'd go with a typical Apache server because if you ever want to make it public then you've got it designed to work with something that everyone else can use without extra program interfaces.

Good luck!

Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 18th Feb 2014 21:33
Thanks guys, lot's of investigating to do but at least I know it should be possible.

I am the one who knocks...
easter bunny
13
Years of Service
User Offline
Joined: 20th Nov 2012
Playing: Dota 2
Posted: 19th Feb 2014 09:04
I'd recommend the xampp method. I had to do that for Ryder with the level maker because all the levels have to be tested on an actual device. Just use the file upload commands with a php script to access it and have a php script to delete files

Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 19th Feb 2014 14:55
Cheers, the XAMPP system looks like just the thing I need, good to know that you've got it working with AGK.

I think it should be ideal, because I can start with the simple functionality of just sending out files but then expand later as I figure it out, like using requests to query databases and stuff like that. Should be fun

I am the one who knocks...

Login to post a reply

Server time is: 2026-07-21 11:54:36
Your offset time is: 2026-07-21 11:54:36