looking for app to compile and run java code to my android phone - Android Apps and Games

Hello! i was wondering whether there is an app that can compile a .java text file and to able to run it in my android phone.

kapazo said:
Hello! i was wondering whether there is an app that can compile a .java text file and to able to run it in my android phone.
Click to expand...
Click to collapse
It would be great but AFAIK it does not exist (much complicated i guess).

The only method I've seen of doing this is real overkill. Basically, set up Linux to run on your device and VNC into it so you can run a development IDE in there.
If you want to do that then I can link you to tutorials on getting Linux running, but it's running as a VM on your device, so it's a bit slow and not very friendly. I really wouldn't recommend it as a development choice.
I know there's some basic C compilers out there, but I don't know of anything else (other than a Spectrum emulator )

Related

Android Dev System in VM

I was wondering if people would like it if i made a prebulit VM image usable with the free VMware player. It would just be a linux distro with the appropriate tools and what not too run the SDK. Then I might port over some of the developer's scripts (Lucid, Metlus, MartinFick) to the system so people will not have to search for scripts or anything (noob friendly). Anyone else think this is a good idea?
That'd be a good idea. I was thinking of setting up a VM for Android. Mainly for checking it out. I'd be curious to see what tools and programs you use in your setup.
Well eather a JeOS Ubuntu Cd or puppy linux as a base then on top of that a script that gets the SDK from Google and moves the appropriate files to the correct places (Have to get the SDK from Google because they prohibit redistribution)
They're working on it http://code.google.com/p/live-android/
In a virtual environment there is currently no mouse or networking support, but it's a good step forward.
I aware of the support of running android on a x86 system, this is not what i want to do. I want to make a VM package anyone can used by downloading VMware player for free. This VM will a linux distro with SDK and parts needed to modify the android system, without the need for a live cd. The advantage of a VM is we only need to support the VM hardware and everything is in a preset controlled environment.
I think its a good Idea!
I'm pretty new to linux and struggled a lot getting a vm setup. I saw a thread of someone asking if something like that was out there in my travels of figuring it out. I think it would help lots of people if they had a vm image that was all set up and ready to go as soon as they load it. If you make it I'd still be interested in using it even though I already have one that is working.

crazy request - C language compiler in browser?

If this doesn't exist, just tell me but I'd figure this was the best place to ask...
I'm looking for something like a C compiler for Android (please note I mean a C Compiler running ON android, not to compile FOR android). If there's a website that will run on android and will run C code like for learning purposes that would be great too.
Basically I'm learning C by reading on the train, and would love to be able to try my examples rather than just reading them. Appreciate any advice you might have. Worst case I just buy a netbook.
http://www.dignus.com/dcxx/compileit.html
I found this but it only outputs assembly language, which doesn't really tell me if my code is doing what I was hoping for. anything else along these lines?
Thanks again
There's a few websites that let you paste code and compile and run it. One such site is www.codepad.org. They're running in some virtual machine type environment for security purposes.
Another option would be to use something like ConnectBot to ssh to a computer somewhere and run gcc there.
On my Palm I fiddled a bit with OnBoard C. Would be great to get that one ported to Android.
http://onboardc.sourceforge.net/
Or an onboard version of Java for that matter.
[email protected] said:
There's a few websites that let you paste code and compile and run it. One such site is www.codepad.org. They're running in some virtual machine type environment for security purposes.
Another option would be to use something like ConnectBot to ssh to a computer somewhere and run gcc there.
Click to expand...
Click to collapse
Yeah I've considered the remote option, I can always do that. I guess I'm not really going to get a good experience no matter what when I'm on a tiny phone screen without a keyboard, right?
I really do appreciate that site though, that will be nice for playing around at work with.
christine600 said:
On my Palm I fiddled a bit with OnBoard C. Would be great to get that one ported to Android.
http://onboardc.sourceforge.net/
Or an onboard version of Java for that matter.
Click to expand...
Click to collapse
That looks sweet
Hi !
As far as I know, the Palm Pascal Compiler designer (PP and also PIAF and BIRD used by some onboardC users) is coding an onboard compiler for Android. It generates ARM executable code directly.
At this time, the application is not fully functionnal, but it nicely compiles some pieces of ISO Pascal code. It will also include an assembler (the disassembler is working well).
Once functionnal, I think it would be easy to create a C compiler (as it has been done with IZBasic)
Probably a bit late but for any others looking for something similar
berardi said:
If this doesn't exist, just tell me but I'd figure this was the best place to ask...
I'm looking for something like a C compiler for Android (please note I mean a C Compiler running ON android, not to compile FOR android). If there's a website that will run on android and will run C code like for learning purposes that would be great too.
Basically I'm learning C by reading on the train, and would love to be able to try my examples rather than just reading them. Appreciate any advice you might have. Worst case I just buy a netbook.
Click to expand...
Click to collapse
I just found this, it may not be 100% free but give it a look eitherway
https://compilr.com

[Q] C Libraries question

I know this probably belongs in one of the Development threads, but I can't post there yet.
I have an ASUS Transformer TF101. As such, I have a fairly easy way to install Ubuntu. My question is if It would be feasible to directly copy a C library (with the .so extension) from the Ubuntu image and use it for Android development. For example, could I (depending on the library of course, unfortunately I don't think I'll be able to build Gnome 3/Gnome Shell into a launcher anytime soon) use that C library using Calls to System.loadLibrary? I would think that since it is compiled for arm it should work, but I could be way off.
markthema3 said:
I know this probably belongs in one of the Development threads, but I can't post there yet.
Click to expand...
Click to collapse
No it doesnt, this is a question.
Developement forums are only for things that you created or released.
markthema3 said:
I have an ASUS Transformer TF101. As such, I have a fairly easy way to install Ubuntu. My question is if It would be feasible to directly copy a C library (with the .so extension) from the Ubuntu image and use it for Android development. For example, could I (depending on the library of course, unfortunately I don't think I'll be able to build Gnome 3/Gnome Shell into a launcher anytime soon) use that C library using Calls to System.loadLibrary? I would think that since it is compiled for arm it should work, but I could be way off.
Click to expand...
Click to collapse
You are mixing things up.
You could MAYBE make a C binary that could call functions out of the C library.
But you can't integrate it into an app.
Apps are made with java, so you can't call C library functions from within your java app (like a launcher).
I might be wrong here and it is possible but it would be a very weird solution.
Dark3n said:
No it doesnt, this is a question.
Developement forums are only for things that you created or released.
You are mixing things up.
You could MAYBE make a C binary that could call functions out of the C library.
But you can't integrate it into an app.
Apps are made with java, so you can't call C library functions from within your java app (like a launcher).
I might be wrong here and it is possible but it would be a very weird solution.
Click to expand...
Click to collapse
Thanks for the info on development threads.
As for the rest, do some research on the NDK and System.loadLibrary(libName). Not to be a smart-ass but these tools are fairly widely used. I know for sure that Autodesk Sketchbook uses quite a few native libs (just open up the apk and look in the libs folder).
Though Gnome 3 would make for one seriously bad-ass launcher.

[Q] Java

Hey,
I have done some research on Developing Java on my TF700. I have found Terminal IDE to be pretty close to what Im looking for.
My problem is that I want to create console-applications which would be fine if I System.console().readLine(); wouldnt result in an exception error.
Is there any other App that works similar to Terminal IDE or does anybody know a workarround?
Thanks in advance
Your syntax looks almost like .net, for java read is System.out.read() give that a try.
System.console().readLine() works on Windows and probably on Linux aswell but ill give System.out.read() a try :
:good:
Edit:
-> System.out.read() wrong copy paste
I use AIDE, but that's mostly for app development. I especially like the ability to sync via Dropbox so I can work on the same project on any device, including Eclipse on my Ubuntu box. Not sure how it would be for your needs, but may be worth looking at?
Yah, AIDE is for small android project (In my opinion). I think OP is doing Java development in general not android app development.
So OP, how did that go? I never used Terminal IDE so I can't really help you test it out.
Cheers

How to Program Own Apps in Android 4.4.4 KitKat

I am a programmer who has programmed in x86 Assembler, Visual C++ under Windows and DOS.
I need to be able to do own applications for Android KitKat 4.4.4
I need any help and information such as manuals, books, lists of commands, lists of functions, C compiler or, best, Assembler compilers for a given processor, etcetera.
I would like to code in Assembler. I guess I need an Assembler for a given processor and cell phone. In case not possible, I need a C compiler for Android 4.4.4 KitKat. I need the basic rules on how to code for this OS as well as the OS calls which I can use, as well as a description of function libraries which may come with the C compiler.
I prefer pure C than C++ or Java.
I have briefly searched the Internet with various key words and I have not been able to find anything relevant.
Please, does anyone have any information where I can get anything helpful.
I am totally new to this OS and I do not even know the shell commands. I do not have much information of the shell, although I have found a basic list on this forum and I use ls and ? and go by the name as a dumb fool.
Please, advise.
While Android is in Java, it also allows you to run C/C++ native code.
Search "Android NDK" and you will find the relevant documentation.
Arws Apps said:
While Android is in Java, it also allows you to run C/C++ native code.
Search "Android NDK" and you will find the relevant documentation.
Click to expand...
Click to collapse
Thanks. I have tried NDK. I am not sure whether I have installed this correctly but I would keep this.
Because NDK is hardware specific and I am not sure whether and how much Moto E XT1023 and others are supported, I have installed Android Studio 1.2 ad started with XML and Java. I have done similar things with HTML and Java for web sites. I would use XML as much as I can and Java only to get and set some variables, then I would use C for programming and then I would set Java variables and methods. I am not very happy with Java but there is not any other way for now. Hopefully, in the future, they would make XML a real language with all the resources available, functions and methods.
At least Java has a very C-like syntax, so in general it shouldn't be that difficult. In some sense it would even be easier (no memory management).
Arws Apps said:
At least Java has a very C-like syntax, so in general it shouldn't be that difficult. In some sense it would even be easier (no memory management).
Click to expand...
Click to collapse
Yes. You are right. I would prefer, however, a pure ANSI C. This can be done either as an interpreter to be hardware independent or as a compiler upon launch, the system would have a compiler, the user would download only the ASCI text. Upon launch, the compiler would be called first to compile and then the application can be launched. Then, the user can either keep the .exe or keep just the ASCI text, in which case, new compilation has to be done with every launch. A compilation would normally take one or a few seconds only for normal applications.

Categories

Resources