I am building an Android App for my college, which need to compile different type of programming languages. Can I somehow use the Cloud9 IDE as a compiler in my App ? please guide me.
expected working: App will send the program to the cloud9 and compiles and returns output/errors or prompts for Input (if any).
Or
Is there any other way I could make this feature work with the App.
Related
I am using Visual Studio 2015. I am trying to follow the basic tutorial of Xamarin from here
https://developer.xamarin.com/guides/xamarin-forms/getting-started/hello-xamarin-forms/quickstart/
When I get to the build part, I get problems, some of which because I don't have a Mac connected.
I only want to try things for now, and don't have any need for my app to work, or even compile for iOS, but still I want it to be written in Xamarin forms, just to learn how it works.
For Android, everything seems to compile, and my only physical device runs Android.
I would like to disable iOS and Windows build, and only remain with Android, and play around with that, and only later busy myself with Windows and iOS trouble.
How can I remain with only the portable and Android parts?
In VS and XS, you can right-click on a project in the solution and choose to either Unload or Delete. Unload is temporary, Delete is permanent.
We are building a game for Android that uses a server to allow people to play online. The server shares the same project than the application because it works by serializing classes to exchange messages between the clients and the server. So we have so classes that are both used by the server AND the android application. Of course, the server does not use Android code so that it can be run on a Desktop computer. For now, everything works fine on our PCs.
The problem is that we have almost finished the game and the server and we want to install the latter on a dedicated server. We just realized that it was not possible to compile it on the server (it is a strong requirement that we cannot bypass, we have to provide the source code that will be compiled on the server) because the Android SDK is not installed on the server and Java encounters errors while compiling the shared classes that contains Android code (not used by the server, once again). So we are in a difficult situation as we cannot require to install the Android SDK on the server just to be able to compile the program... Especially because the server never runs Android code so once compiled, the SDK should not be required anymore.
We are aware that it is a design flaw, but we cannot just delete the server and restart a new one with a better architecture right now, we are stuck... Additionally, the shared classes cannot easily be refactored as the whole architecture of the project is based on the fact that the server can serialize them and the client just has to call a method in them that runs Android-specific code.
What is your opinion about the possible solutions?
Thanks!
In Android SDK you can find a file called android.jar. For example for API level 22 its location is $ANDROID_HOME/platforms/android-22/android.jar. This file contains all the public classes and method stubs, so you can use it for compilation as a runtime dependency.
Okay, here's the situation:
I'm developing an application for a client (or trying to do so). It requires much (if not all) of the same functionality as the built-in SMS/MMS application. So, I thought - HEY! Android is open source right? I can take the application and modify to my needs, right?
So, I found the code on github for the MMS/SMS application (for some reason, based on the AndroidManifest file, it calls my project I built, "ConversationList"). But I get TONS of errors involving the import com.google.android.mms.* package and a couple other packages.
Everyone keeps saying "it's a private/internal package", and "download the entire AOSP". But, HOW do I do this on Windows, and WHY can't I just download the appropriate packages to use in the program?
ALL I want to do is build a project in Eclipse deploy it to my phone, and then modify the necessary code. If Android is open source, why so many secret/internal packages? This is frustrating.
Any advice?
So, I found the code on github for the MMS/SMS application (for some reason, based on the AndroidManifest file, it calls my project I built, "ConversationList"). But I get TONS of errors involving the import com.google.android.mms.* package and a couple other packages.
AOSP applications like this are designed to be built as part of a firmware image, not as standalone apps.
But, HOW do I do this on Windows
Most likely, you don't. Cygwin might work. More likely, you will need to use OS X or Linux, such as running Linux in VirtualBox. And the result of your build will not run on anything, except as part of a firmware build that you use to replace the firmware on a device.
WHY can't I just download the appropriate packages to use in the program?
Because that application is designed to be built as part of a firmware image, not as a standalone app.
ALL I want to do is build a project in Eclipse deploy it to my phone, and then modify the necessary code.
Then find a project that is designed to be built as a standalone app as your starting point. Or, work on modifying the project you are trying to use to work as a standalone app, by ripping out all the functionality that depends upon things that are not in the app itself.
If Android is open source, why so many secret/internal packages?
They are not "secret". They are part of the firmware.
For example -- since you appear to be familiar with Windows -- it is entirely possible that "apps" like Control Panel are not designed to be built independently from the Windows OS. If you were able to download the source code to Windows and tried to load Control Panel into Visual Studio, it is eminently possible that you could not create some standalone CPANEL.EXE file just via that one project. Rather, you would need to use a customized Windows OS build process to build the whole OS, which would then contain a CPANEL.EXE that would run within that built version of the OS.
Most of the AOSP apps work this way. Some have been forked to create standalone apps -- K-9 Mail came from the early version of the AOSP email app. I have no idea if anyone has done this with the stock AOSP Messaging app or not.
You could instead fork TextSecure[0] as it is no system application but looks very similar to the stock messaging application. The AOSP application needs to be installed on /system/app which requires root and might not be what your customer wants.
Please note that this application is copylefted (GPLv3) so you'd have to give your client access to the source code under the terms of the GPL if you fork.
[0] https://github.com/WhisperSystems/TextSecure
I was talking with someone about iPhone and Android apps and they said there was something around called "Titanium" that could convert an iPhone app to an Android app and vice versa; being that they are written in different languages (amongst other nuances) I found this a little hard to believe.
I'm assuming he meant this
From what I can understand, you can't "convert" an existing app from one to the other, but if you build an iPhone app based off of this API THEN it can be converted to the other?
Am I right in my thinking?
You're almost right. In Titanium you build your app using JavaScript (and HTML/CSS for webviews - sort of webpages) and it converts it to native code for both platforms - Obj C for iOS and Java for Android. However you still need to write a significant amount of platform specific code because not everything will work right out of the box on both platforms. And yes - you can not convert existing apps using Titanium to anything.
The word "convert" is inaccurate in describing what Titanium Mobile does. You don't "build an iPhone app based off of this API", you write your app using the Ti API (which is based in Javascript/HTML/CSS), and when you compile that app you end up with both a native iOS app package and a native Android app package.
I saw app inventor and have tried it and thought "wow this could really make app development more easy".
But it does have some downside: some people have a problem with the apps created on app inventor not running correctly on their phone, while it runs on the emulator.
And there are also news like you can't upload apps created on app inventor to your android market account, so i just thought it would be really helpful if you could see the codes generated by app inventor like in eclipse.
If you use the GUI for the xml it generates a code and since app inventor is also in java it should also have a way the user can see the codes generated by the app inventor and use it as a reference for coding in eclipse or other java IDE.
So is their a way to see the codes generated or not?
App Inventor does not generate Java code. It generates Scheme code, which is converted by the Kawa compiler into byte code. While you could undex and decompile it, as mentioned by cypressious, that code is unlikely to be useful.
There is a third-party program, Marketizer, that prepares App Inventor apps for the market.
If it generates an apk, you can unpack and then "undex" it via http://code.google.com/p/dex2jar/. Then you can see the rough code by using tools like http://java.decompiler.free.fr/?q=jdgui.