Android: How AirDroid app does work? - android

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.

Related

How to connect Samsung Galaxy Watch active with my android app?

I have this Samsung-watch
I implemented a mobile application for my graduation project, it is a triaging system that will serve the people who has an injury or illness,
In some cases we need to ask the patient about his heart rate, we want to take this data from the watch instead of asking him about it.
I searched for this and founded that I need to install Tizen extension to the visual studio, I want to write a code that take heart rate, then connect this code to my android application,
Does anyone know or can help me to do this?
Does anyone know the steps that i would follow to complete this process ?
You will find a lot of help from Samsung Developer Site.
Check below link:
Samsung Developers - Creating Your First App
May the force be with you.
How to create Pulsometer application for wearable:
http://tizenschool.org/tutorial/166/contents/1
then, for example, You can use Samsung Accessory Protocol to communicate wearable with android device:
https://developer.samsung.com/galaxy/accessory
https://developer.samsung.com/galaxy/accessory/guide
or implement other way of data exchange, for example uploading data to remote server:
How to make HTTP POST web request

Data exchange between android app and pc

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.

Android Hybrid Application and Remote Server Communication

I am learning to develop Hybrid Application for Android platform (which will be extended to other mobile platforms later). I have read a number of articles and have got a start but have not come across something which explains this.
I want to store the UI (HTML/JavaScript/CSS) files on the mobile device and display it via the WebView. This will communicate with a remote server to fetch data via a WebService.
What I have not understood specifically is:
Will the UI files (HTML/JavaScript/CSS) be installed on the file
system of android device or will there be a local embedded WebServer
on the android device.
If the HTML/JavaScript/CSS files are on the file system how do they
communicate with the remote WebService. Let’s say I want to make an
AJAX call to the remote server… will it be handled by UI
(HTML/JavaScript) files displayed via WebView or by the JAVA
Container in which the WebView is sitting in? What I did not
understand is how can an HTML/JavaScript sitting on the file system
make AJAX calls.
If a local embedded WebServer is required on mobile device can you
suggest me some? And if this is true will the same architecture work
on others platforms as well like iOS, Symbian, BlackBerry etc.
If anyone feels this is not the right way to go please let me know your thoughts on the architecture.
Kindly point me to the right articles or explain your thought on this particular scenario.
I would suggest you to go with a different approach for these problem. Had I been in your place I would have done the following:
I am assuming that you are making these as a java based web application. Even of you go for PHP or other web development language things will reamin pretty much the same.
1)Will the UI files (HTML/JavaScript/CSS) be installed on the file system of android device or will there be a local embedded WebServer on the android device.
No. The UI files that you are toking about are nothing but web pages in your web application. these web pages are stored on the server not on your local file system. We make use of browser to connect to the remote server these pages are then fetched from their by your browser processed and then displayed to you.
2)If the HTML/JavaScript/CSS files are on the file system how do they communicate with the remote WebService. Let’s say I want to make an AJAX call to the remote server… will it be handled by UI (HTML/JavaScript) files displayed via WebView or by the JAVA Container in which the WebView is sitting in? What I did not understand is how can an HTML/JavaScript sitting on the file system make AJAX calls.
Web page is downloaded from server and displayed to you in your browser. In the web page itself we write scripts to make AJAX calls on appropriate events like on click of some button, or change in value of some field or # the time of page load etc. When you want to make a AJAX call is all dependent on your project requirement.
3)If a local embedded WebServer is required on mobile device can you suggest me some? And if this is true will the same architecture work on others platforms as well like iOS, Symbian, BlackBerry etc.
Now as I have mentioned earlier that the data is stored on the remote server so you dont need a web server on your mobile device (unless you want to use your mobile device as the hosting or server device). As these is a web based solution you dont have to think about the platform of your mobile phone. Be it a android, blackberry, Apple or a symbian phone all you do is connect to the server with the web browser that is their in your phone.

How to demonstrate android app on website?

Does anyone know of an easy way to present an android app through a website? Maybe the equivalent of an emulator running on a webpage. It would be great for demonstrating app functionality via the web and doing basic initial customer design approval without them having to install an app. It would also be good for marketing existing apps.
I think creating a video is the best way. If you are on a mac, try this:
Screenflow
If you are on Windows, try this:
Camtasia
I use ScreenFlow and then put the video on my website for clients to see.
You can use Droid VNC Server on your own handset and connect an android handset to your Network, then give them a webpage with the HTML web viewer of Droid VNC server. That would probably give you the best solution and would be transparent for the customer.
Do this
Install the ADB Driver to directly debug the app in Android Phone
Open Android Studio, directly run your app in Android phone.
Click the Capture icon. its capture the screenshot of android phone.
4.See the images , Android Studio have own Screenshoter, Video Recorder.
5.No Need of Third party Softwares.
Hope this helpful.
Happy Coding :)
Android being based on Java, I guess one could adapt the emulator for a webbrowser version, but this would be quite long, and inefficient.
If you forced your user to download the emulator (you could package it without the whole sdk), you could make a batch script to launch it and install your apk, but for a lambda user this would be too much trouble to test one app.
The only solutions left are
making a video of your app's features (you could then add subtitles and graphic design to enhance a point in the video)
make a fake version using flash or HTML5 / javascript
make a java applet (you could then reuse some of your code, and only redesign the GUI)
I would recommed using TeamViewer or other simmilar remote access/remote desktop sharing solution.
Teamviewer is free.
ps.
i know this is not on webpage, but i figure if you'll be presenting this could be a good option.

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