Developing Android app on both Linux and Windows host - android

My main developing phase is done on a Ubuntu machine.
The project is shared on the cloud by Dropbox.
I'd like to access to the project on other PC but, since it is a Windows PC, i receive some errors, first of all, the project path!!
Is there a way, or some guideline, to allow to develop the same project on Linux and Windows?

Instead of Dropbox, use a public version controls service (github, assembla) (or private + vpn etc.) and checkout the project on as many workstations as you want. Make you sure you don't check in IDE Specific files like Eclipse's '.classpath' etc.

Related

Where is Windows Phone Simulator for Xamarin Forms?

I have created a Xamarin forms multi-platform project. Using Xamarin Studio Community 6.3.
The project contains three folder. Project and Project.iOS and Project.Droid.
I have implemented most of code inside the Project folder which is supposed to be shared across all platforms.
When I choose to Run the project there are only options for project.iOS and project.Droid, what about running on Windows phone? I can't seem to find that option either on Xamarin Studio or Visual Studio Community 2017.
Also when I look into some of the samples downloaded from Xamarin websites. I see included projects which are no longer supported by Xamarin Studio. I'm new to Xamarin mobile development and I used to hear that it supports all platforms including windows. So are there any major changes I should know about or any mandatory tools I may have neglected ?
I don't think there is a Windows emulator for a mac computer.
If you have a windows computer with visual studio 2017 you can choose to install the emulator with the installer.
PS: for the second part of your questions, new things get added to Xamarin which end up in not supporting every version.
For example I use async methods to get data from WCF service en put them in my local database. Async methods are supported in Xamarin. However your computer needs at least Xamarin.Android version 4.8+ to be able to utilize async methods.

Edit Android project remotely (FTP) using Android Studio

I have an android project checked out from git into an ubuntu server. I will be doing git check-in and check-out files inside this ubunut machine.
I have installed Android studio in my local system .i.e. windows machine.
Is it possible to use FTP in Android Studio to directly import the project from ubuntu server and edit them without copying to my local windows system. I did search around the internet and couldn't find any posts regarding how to do this.
I'm aware that we can install Android studio in Ubuntu itself, but I'm not allowed to do that.
It would be very helpful if anyone throws some light on this.
FTP is not enough, you need something like NFS that allows a user on a client computer to access files over a computer network much like local storage is accessed.
It looks like this functionality is only available on IntelliJ IDEA Ultimate Edition, which Android Studio is based on. It looks like the server only stores the files and IDEA on the client does the heavy lifting. For Android, there's also the question of running emulators, which I assume is also done on the client.
Not sure what the delta is between AS and IDEA, but you can develop Android apps on it.

Unable to use windowsazure.mobileservices in my mono for android app

I am trying to get Windows Azure Mobile Services up and running but can not for the life of me find the DLL anywhere on my PC. I installed the SDK already.
I thought I read somewhere that this DLL is only available for use in Windows 8 development environments. Is this true? I am running Windows 7. If so is there another way around accessing my database in the cloud?
You need to use the version of the DLL that Xamarin ported from the original code. Download it from their component store: http://components.xamarin.com/view/azure-mobile-services/
well that depend on the way you start developing your application. if you developed the script on Windows Azure Mobile Cloud Service and then download the project from the portal, I am sure you wont face any problems of the above.

Android remote build system - install automation

I've put together a remote build system for Android using Ant on a Windows machine and I'm trying to figure out my options for an automated installer in order to deploy the build system to one of my client's machines.
The installer should be able to download Android SDK, Ant, GIT, launch and configure Android's install manager, configure system settings such as the PATH environment variable, configure GIT, etc.
And there is a slight possibility that I'll have to use a Linux client machine some time in the future.
Apart from writing such a software in, say, Qt, I don't see how to do this. Any help/ideas are very appreciated.

Compiling android apps on an actual phone

Hi I'd like to know how to compile an app source code on an android platform?
I know it's possible because I saw some apps that are doing it...
Thanx ahead!
I think what you are asking for is a way to compile android apps on an android device.
the way an app like this new IDE does.
If so what you would need to do is to take an open source java compiler such as the ejc (the Java compiler used within Eclipse) and use it to compile your java source. You would then need to port the dalvik compiler to be able to run, in order to generate dex from the class files generated by the java compiler.
An interview with he developers of AIDE has a little bit more info on how they did it.
UPDATE:
Actually I just came across an open source project which provides similar functionality but based on using vim and the existing SDK cli tools ported to run on a an android device. The project is hosted here.
UPDATE 2:
I found yet another open source project that also does on device compile/build which I think should provide you with examples of what you are trying to do...
More specifically, if you look in IDE.java, you can see how the individual tools (ejc, dx, aapt) are called/used.
Possible in a number of ways...
There have been apps - proprietary & open source - built for the purpose. I am not sure if these apps will be at least near the production quality. But they work:
It mainly depends on language you are writing - since cross platform app development is also possible on Android.
• Java: Java N-IDE, AIDE
• JavaScript: NativeScript CLI, Appcelerator Titanium CLI, Apache Cordova via CLI. [All these can be installed via node.js package manager (npm) which in turn can be installed via Dory NodeJS, GNURoot Debian or Termux apps..
• Linux CLI utilities can be installed on Android simply with a terminal shell or GNURoot / Termux. You can also Emulate complete PC OS using Limbo PC Emulator / Bochs [Although they should be lightweight]. In theory, by this way you should be able to use almost all Android development utilities. But Storage, memory & performance constraints come to play..
• There are other apps & web services for hobbyists: eg: Sketchware, DroidScript, Appy Pie, Monaca, PhoneGap Build and many others.... But don't expect professional quality apps using them..

Categories

Resources