How do Remote Desktop Applications work on Android? - 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.

Related

NativeScript (Telerik) and Serial Port on Android

I need to utilize both a barcode scanner and a USB port on something handheld. I figure a small Android Tablet is my best option.
I've spent some time researching and I cannot find anyone who has implemented a NativeScript App w/ Serial Port communication on Android.
I am concerned this means it is not possible, or prohibited for some reason.
I have the Serial Communication functional right now using Nodejs and the serialport module via NPM.
Does anyone know if this module will work in a NativeScript app?
I am going to attempt to make this work over the weekend, but before I waste a lot of time I figured I would ask in case this is simply not possible -- I've chased simple bugs for days so I could waste a long time on something that's not possible. :)
Thanks for your help!
Anything you can do with a pure Java-only app (or Swift/Object C for iOS) you can do with NativeScript as you can access all the underlining APIs. This is one of (if not the) key differences between NativeScript and other technologies. See the NativeScript docs.
Most probably, you'll want to use some third party code to communicate with the serial device (such as usb-serial-for-android). Here's a great blog post on how to use third party code in your NativeScript app.

Communicating between mobile devices over a local network

I'm a complete newbie with regards to developing for Android, and for starters I'm trying to develop a simple card game that can be played multiplayer over a local network. I'm having trouble finding a starting point for how I would go about this, I can find plenty of things for communicating across the internet but not having much luck seeing how you communicate directly between two devices over a LAN.
It's a major part of my plan for this app that it be multi-platform and that iOS devices and Android devices can play against each other, so I'm looking for a method that supports this. I know it's possible as I can see there are other apps that have this functionality.
I don't need a detailed implementation (although the more help the better!) but if anyone could just point me in the right direction for how to go about something like this, I'd be really grateful.
I think u need a connection peer to peer, android implements Wifi Direct
Look android dev site. http://developer.android.com/guide/topics/connectivity/wifip2p.html
For a card game I recommend using client-server.
Electrotank is a good server that provides a framework that helps you create a game of this type, with rooms, chat, friends list and connect to Android and iOS. U can write server plugins in Java.
http://www.electrotank.com/es5.html.
Another good server solution is SmartFox.
Or you can create a turn-based game, creating a database to save data and a counter on each client, where you will limit the time for each move, from this time you send data to the server and your opponent query this data the server.
I was working on the exact same thing. You'll want to use sockets to open up connections between multiple instances the same app.
I created an example app that demonstrates how to do this which I link to and explain in great detail here: http://brendaninnis.ca/connect-nearby-devices-part-2.html
I have an example for both Android and iOS that communicate with each other.

integrate matplotlib into android app?

I've been playing for some time with python and matplotlib and managed to create some neat desktop applications. [like graphical analysis tool for linear algebra, rendering engine for maps etc.
I was wondering if I could turn these applications into android apps. I'am completely new to android. I plan to use python (though I'm good with java) for the coding (I know this is possible with tools such as kivy or SL4P).
I want to know the limitations for using these tools in android. Can I even get matplotlib into android? I searched everywhere, but couldn't find how to go about a matplotlib based android app.
Any kind of pointers would be helpful.
I doubt you can embed matplotlib on an Android device (or any other kind of smartphone or tablet).
One alternative possibility would be to make your app connect to a back-end server that has matplotlib, and use that to generate the figures and send back images to the client.
Advantage: Can potentially get a working mobile prototype finished somewhat quickly by reusing existing code.
Disadvantage: The app cannot work offline since it relies on your central server.
Matplotlib cannot be compiled for android, numpy can though:
https://code.google.com/p/android-scripting/issues/detail?id=260

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.

Showcasing Android app on a website

I have an app in Android Market which is a standalone app that's essentially a full conduit to an SQLite Database(add, change, delete, inquiry). Some of my potential clients have asked to see a sample of my work, but they don't have an Android device.
Other than just showing them screenshots etc., is there a way I could have them go to a website where they can actually run it & check it out.
I'm thinking there would be a programming element involved (convert app to a mobile website essentially?), hence posted this question here.
Not quite sure where to get started. Any help would be appreciated.
You can use one of the patterns like MVC/MVP/MVVM to create your core library and then develop additional UI variants for different clients: Android, java applet etc.
Alternatively you can develop a mobile web site as you suggested and use simple android app to navigate built-in browser to it. This might be somewhat transparent to most users. I think Android MSN client uses such an approach.
I see 2 relatively easy options.
Give them an .apk designed to only
run on the emulator (you can check
the ID, the emulator ID is 00000...)
and they can boot up an emulator and
run it. If you're worried about them
reverse engineering your .apk you
probably shouldn't go down this
route. Or if you don't want them to
have to install the emulator
Set up a virtual machine and let
your clients remote desktop into it.
Give them permissions to only run
the emulator or however you want to
set it up

Categories

Resources