Data exchange between android app and pc - android

I'm an experienced programmer but a rookie when it comes to android app development. My first Android app needs to be able to exchange data with an existing Windows application on a PC, both devices being on the same LAN.
If the Android app could read and write a file on the PC, that would crack it. Is this easy to do? Can anyone point me at any examples?

That would involve the host PC running some piece of software which would communicate over the LAN/Bluetooth with your app, and execute the required actions based on some events from your app.
There might be some dropbox/google drive apis, depending on what your aim is.. But I doubt you will avoid coding some sort of (small) desktop application for this purpose.

Related

How do Remote Desktop Applications work on Android?

This question may seem low-quality but Im trying to understand what concepts should I read/libraries should I use to make such an application. If there's a better place to post this question, please let me know.
I wish to add remote desktop access to my Android app, so that I can watch and control my laptop screen and execute commands (shell scripts maybe?) on my laptop (from my phone). I should be able to connect this app with any RD clients on Ubuntu (Remmina).
I have a decent understanding of Android development, but no idea on how to make Android apps which talk to other machines. It'd be great if I could get some guidance on what Android libraries should I use to achieve this objective.

How to connect Arduino with Unity3D (using an Android device)?

I have found this interesting Project in the Internet and my first question is how to access the data (which is connected via Bluetooth to Android) from within Unity3D.
https://pauldyan.wordpress.com/2016/01/24/my-vr-bike/
I have seen that there is an "asset" for Bluetooth but is there a direct way or a way without the Need of buying that asset?
Regards
Kev
You could, but it would involve writing your own library for both Android and iOS.
I really don't recommend going this route. You would have to write hooks for every single native iOS and Android Bluetooth function. Both operating systems would need hundreds of lines of code and several days of testing to get going.
I'd recommend just buying it. The asset is 10 dollars, which is worth the time saved.

android webapp remote framework?

For some kind of student/teacher/eLearning scenario, i have the following question:
I have ten android devices (students), running a webapp based on phonegap/html5/javascript/jquery.
I want a PC (the teacher) to
- fetch data from the devices
- send data/files to the devices
(- control the webapp remotely)
What i'd like to avoid:
- the need to run and administrate a webserver (e.g. apache), or similar complicated to setup tools, on the PC
Can anybody help out, what technique, tools or frameworks i may look for?
The webapp itself is similar to a survey/quiz.
Me personally, i would choose to install an apache server, but the teacher needs an easier to handle solution.
Thanks in advance for any hint!
You'll need something of a server to send the data.
If you can't provide this yourself, you could make up some easy work arounds using webservices from others. Per example dropbox (public folder), Google Drive, Email etc.

Android: How AirDroid app does work?

Hello I am going to develop an app like "AirDroid" on Android Market which connect a device with the PC using wireless communication.
Can anybody explain to me how this app works?
Is Internet required for that or not? and from where that window which display the content of the device in PC, comming from to explore the Device?
Is it Internet required for that or any server manages that?
Thanks.
AirDroid is server application based on lightweight PAW Server: http://paw-android.fun2code.de/. I think that the used framework is your main question, isn't it?
Another server you might want to try is Jetty: http://code.google.com/p/i-jetty/
Have fun ;)
actually air droid starts a http server on your phone just like apache does on your computer. ALL THE graphic that you see you can actually retrive from the app itself it doesnt uses internet. You can extract that graphic from the app just by using a zip opener to open the .apk file. It mainly uses client side scripting for exmple javascript.

Can we use Tomcat Server in android app

I am developing Android Web App using JSP with xml parsing. I developed it in Java using Tomcat Server but I couldn't develop in Android. I am new to the web app development. So can anyone kindly suggest me how to proceed further...
waiting for a response guys...Thank you
It is likely that you don't need tomcat on android. After all tomcat is (apart from everything else) a web server. This means that the phone your app is run within should be serving requests from other clients. I doubt you can make sure your phone IP is fixed, and even if that's the case, phones are not meant to be servers.
What I suspect you have done is - you've implemented some functionality in the context of JSP and servlets, but this functionality can easily be run without jsp/servlets. Remove the servlet-api.jar from your classpath and make your functionality work without these. Then you can easily use it in an android app.
While it should be possible from just the hardware standpoint, it should be nearly impossible to get tomcat running in the dalvik pseudo-java envrionment that android provides. the dalvik vm that Android uses is not a Standard Java VM, hence tomcat can't run on it.
I would suggest to look into the Maemo world, specifically the n800 and n810, which are a bit more hackish but also a lot more closer to linux than android. I've successfully run OSGI based apps on those machines. And they are still mobile devices you can use.
Check this site for some examples: http://wiki.maemo.org/OpenJDK_6.0_0_%28Cambridge_Software_Labs%29_on_N900
Look at i-Jetty. It's a web server that runs on the Android platform.
Why crazy? It is possible to make an ip pseudo-staic and then use a phone or tablet as a server instead of running a big power consumpting desktop 24/7. Of course for very simple purpos3 and probably as an experimental stuff. But not bad idea. I have written few years ago a tool for intarnal lan communication in the company which comprises synced and asanced messaging sastem, files and folders exchange functions, firewall solved access and everything in one jar cca 390 kb without any dependencies...there is also built in a http servlet and it runs on dalvik without problems - I have tested it. So the way is there, Even if the intention is not 100% clear.
You want to run Tomcat inside Android using dalvik? That is crazy. If it is a Web App host it somewhere and use the browser.

Categories

Resources