[Q]Java developement on Android - Android Q&A, Help & Troubleshooting

Hello. I've been wondering for some time now if it's possible to make some Java classes (that you would normally compile and run on windows) on android. Here's the thing; I'm a student and we need to make some silly classes at school. I bought my new SGS3 and I wanted to do all the work on it so I don't have to take my PC to school everytime.
So, is there any kind of emulator or application which could solve my problem?
I know there's Eclipse for Androd Java developement but that's not gonna help me with my problem. I also know that Android has DVM instead of JVM but i just wanna know if there's a workaround.
Thank you,
Krastt
PS: I'm sorry if I this is not the right place to post such a question but honestly it seems the most appropriate.
Sent from my GT-I9300 using Tapatalk 2

Krastt said:
Hello. I've been wondering for some time now if it's possible to make some Java classes (that you would normally compile and run on windows) on android. Here's the thing; I'm a student and we need to make some silly classes at school. I bought my new SGS3 and I wanted to do all the work on it so I don't have to take my PC to school everytime.
So, is there any kind of emulator or application which could solve my problem?
I know there's Eclipse for Androd Java developement but that's not gonna help me with my problem. I also know that Android has DVM instead of JVM but i just wanna know if there's a workaround.
Thank you,
Krastt
PS: I'm sorry if I this is not the right place to post such a question but honestly it seems the most appropriate.
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
You could look at ADIE https://play.google.com/store/apps/details?id=com.aide.ui&hl=en which is a IDE to run on android to build android apps but you might be able to use it to write java classes.
Or check out my project which lets you run full linux distros on top of android, this its a bit of a work around but you could then install a full java IDE and work from there

While I'm waiting for more ideas I'll check your project. I knew about AIDE but I never tought it might also work with Java classes. Imma try that too.
Sent from my GT-I9300 using Tapatalk 2

Check out an app called Terminal IDE. I think it's what you are looking for.
Sent from my GT-I9300 using xda premium

Related

[OFFTOPIC] Ubuntu OS

so i know there is an offtopic thead on XDA but i feel really compfy here on the x10mini forums and i know you guys a bit so please have mercy on me pasting here
i was thinking about getting Ubuntu on my pc and wanted to know if anybody here uses it? does it have all of the features of win7? and does it support games and co.? and i heard its possible to run a linux os in windows!?!? or is it a complete installation like windows?
thx guys
X10mini miniCM7 2.0.1 using XDA Premium App
freebordjunky said:
i was thinking about getting Ubuntu on my pc and wanted to know if anybody here uses it?
Click to expand...
Click to collapse
Yes, been using linux on the desktop for more than 10 years now. Mostly developing, mostly mathematical related. I've used different distro's, but the last 3 years I've settled on ubuntu as it is quick to set up and all software I need is supported for it.
freebordjunky said:
does it have all of the features of win7?
Click to expand...
Click to collapse
I don't know. My girlfriend uses Vista and for most things we are on par.
freebordjunky said:
and does it support games and co.?
Click to expand...
Click to collapse
I hardly play any games. But I'm sure that a lot of games will also run on linux.
freebordjunky said:
and i heard its possible to run a linux os in windows!?!?
Click to expand...
Click to collapse
There exists something like VMWare, that allows to run one os inside an other. This works both ways. What also is possible is to use wine in linux, with it you can run windows programs from your linux desktop. This works very well, I use it to manage my tracks in MapSource (a program for garmin sport gps).
freebordjunky said:
or is it a complete installation like windows?
Click to expand...
Click to collapse
It could be, there are alot of different ways to run windows/linux together, you will find what best works you. It is for instance also possible to install the two next to each other, then at boot you choose the os you want to boot into..
There exists a couple of different ubuntu forums. Normally you should get a lot of help. When I got into linux, there existed a linux user group (LUG) at my university. You might see if a LUG exists near you.
I use VMware workstation. It's good Its worth the money Im able to run Ubuntu on Windows using this.
Sent from my X10mini using XDA Premium App
yeah i just did it no i can choose at boot! i like it alot
X10mini miniCM7 2.0.1 using XDA Premium App
I personally don't like ubuntu especially with uniity as I like kde you might want to try it as it is closer to windows so kubuntu or opensuse are good for this
Sent from my U20i using XDA App
freebordjunky said:
and does it support games and co.? and i heard its possible to run a linux os in windows!?!? or is it a complete installation like windows?
thx guys
X10mini miniCM7 2.0.1 using XDA Premium App
Click to expand...
Click to collapse
Using linux for gaming, it's like using a F/A-18 Hornet, for transporting pets
and about the windows thing, you can even install WINDOWS on windows, if u know what i mean
haha totally agreed D4rKn3sSyS
i use and ubuntu and win7 they are different on many points but imo
on topic
if you want gaming and you like windows interface just stay on it
still if you want to try it ubuntu play alot of windows games (not fully) like no shaddows and directX things..
linux is nice but you need "terminal work" not like windows with ok buttons...
up to you always !
x10man said:
I personally don't like ubuntu especially with uniity as I like kde you might want to try it as it is closer to windows so kubuntu or opensuse are good for this
Sent from my U20i using XDA App
Click to expand...
Click to collapse
i also don't like unity (in fact .. my old GPU does not like it .. really buggy ^^), but you always can use the old gnome panel
Try Windows + Ubuntu dualboot, thats what I do, helps when windows has problems and I need to use lol...
ruifung said:
Try Windows + Ubuntu dualboot, thats what I do, helps when windows has problems and I need to use lol...
Click to expand...
Click to collapse
Haha that reminds me of every three times i installed Ubuntu and got Internet working. That day or Next day i messed the whole OS up
this works? but i can't run ubuntu in my device
byxzer0 said:
this works? but i can't run ubuntu in my device
Click to expand...
Click to collapse
what do you mean by your "device" ?
it is possible to run ubuntu on smart phones with android its called androlinux. i installed it
on ny mini and it booted but i could not see anyfhing because of resolution issues
X10mini miniCM7 2.0.1 using XDA Premium App
freebordjunky said:
it is possible to run ubuntu on smart phones with android its called androlinux. i installed it
on ny mini and it booted but i could not see anyfhing because of resolution issues
Click to expand...
Click to collapse
While technical there is no issue to run it on the mini. I think it is more useful to run this on a tablet. For example the eee pad transformer with dock. This 'transforms' your transformer into a netbook..
There is a method that involves setting up a vnc server. This works well, but does not run at the fastest possible speed (though, it is doable). XDA members are working on a native implementation. This would make tegra2 tablets dual boot. Seems like best of both worlds.
Playing and browsing in the sofa: android. Continuing your project on the go or in the library: linux desktop (for example ubuntu).
ServerBoost100 said:
Haha that reminds me of every three times i installed Ubuntu and got Internet working. That day or Next day i messed the whole OS up
Click to expand...
Click to collapse
Ha that's fun kinda reminds me of when I had ubuntu + suse on my aspire one got bored and deleted every important file I could find on my suse partition
Sent from my U20i using XDA App

[Q] Am I on the right track?

I want to develop android apps.. lol I downloaded JDK and eclipse.. I am familiar with the concepts of coding html, php, exceptions.. Do I need a TON of knowledge to get started? Can someone link me to some basic walkthroughs?
If you don't have Java knowledge, then your options are Phonegap or Titanium Appcelerator!
Using phonegap, you will be able to write apps using HTML+CSS+JS. Read about it.
See if these http://developer.android.com/resources/browser.html?tag=tutorial are enough to get you going. Maybe after that look for a book. I've been using a more recent version of http://www.amazon.com/gp/product/1934356492. Then again, maybe it isn't the best book to use, because I haven't actually created any apps of my own yet.
Cool thanks for the help. I am gonne get the lynda.com tutorial and a java book. Im sure all coding has the same basic concepts. Maybe I can make a useful app one day lol
Sent from my MB860 using XDA Premium App

[Q] Can I create an android app without knowing java?

i want to whether i can create an app without knowing anything about java..i have installed the sdk but can't go any futher..do i need to know about java??
If you want to actually program yes... I believe there is an easy app creator out there, but you won't get too far with it.
I just started learning Java, picked up a book and im getting into it. Oracle has online tutorials as well as Android Developers, you can follow those to get a gasp of it. The real issue is learning the in's and out's of java to bee more creative.
Sent from my PC36100 using xda premium
Take a look at illumination software creator at radicalbreeze.com . No programming experience necessary. There are other apps like this.
Sent from my Galaxy Nexus using xda premium
Simply put yes you can. There are other language alternatives. C# (mono project) and there are a few different implementations to allow you to write javascript for apps as well. Also check out app inventor, it lets you drag and drop program. No typing involved.

Devople apps on android

What i need to build app and games ? Please tell me about the language which i had to learn to write a program ??
Sent from my GT-I9100G using xda app-developers app
ahmed_mokh said:
What i need to build app and games ? Please tell me about the language which i had to learn to write a program ??
Sent from my GT-I9100G using xda app-developers app
Click to expand...
Click to collapse
You will need Windows or other platform , jdk , java IDE such as eclipse , android sdk . You'll need to have a basic understanding of java and xml...
Sent from my WT19i using xda app-developers app
First off, you need the Android SDK and Eclipse.
You also need to have an experience in Java or C++ programming as well as a good experience with XML files.
Here's a link to a tutorial..
Do use the SEARCH button next time.
Thanks all for reply
Sent from my GT-I9100G using xda app-developers app
You need to know firstly - What Android is not?
Answer is:
A Java ME implementation — Android applications are written using the Java language,
but they are not run within a Java ME (Mobile Edition) VM, and Java-compiled classes and
executables will not run natively in Android.
Part of the Linux Phone Standards Forum (LiPS) or the Open Mobile Alliance (OMA) —
Android runs on an open-source Linux kernel, but, while their goals are similar, Android’s
complete software stack approach goes further than the focus of these standards-defining
organizations.
Simply an application layer (such as UIQ or S60) — Although Android does include an application
layer, “Android’’ also describes the entire software stack, encompassing the underlying
operating system, the API libraries, and the applications themselves.
A mobile phone handset — Android includes a reference design for mobile handset manufacturers,
but there is no single “Android phone.” Instead, Android has been designed to support
many alternative hardware devices.
Google’s answer to the iPhone — The iPhone is a fully proprietary hardware and software
platform released by a single company (Apple), whereas Android is an open-source
software stack produced and supported by the Open Handset Alliance (OHA) and designed
to operate on any compatible device.
anasdcool71 said:
First off, you need the Android SDK and Eclipse.
You also need to have an experience in Java or C++ programming as well as a good experience with XML files.
Here's a link to a tutorial..
Do use the SEARCH button next time.
Click to expand...
Click to collapse
What level of Java is necessary? I'm a compsci major and I've had Java for 3 semesters. I've never done anything with XML.
Any suggestions on what I should start reading/learning?
BosnianKingdom said:
What level of Java is necessary? I'm a compsci major and I've had Java for 3 semesters. I've never done anything with XML.
Any suggestions on what I should start reading/learning?
Click to expand...
Click to collapse
XML is really easy to learn.
Java, you'll only require upto those constructors, string use, and all that. And yeah, arrays too.
Sent from my GT-S5360 using xda premium
anasdcool71 said:
XML is really easy to learn.
Java, you'll only require upto those constructors, string use, and all that. And yeah, arrays too.
Sent from my GT-S5360 using xda premium
Click to expand...
Click to collapse
Yeah I've looked at some xml sample code, it doesn't seem to be difficult. I I don't think that it's as complex as Java. All of the things that you have listed are covered in the second semester. In the third semester we went over data structures...
#### Sent from my GN7 #### B0$N4 ####
BosnianKingdom said:
Yeah I've looked at some xml sample code, it doesn't seem to be difficult. I I don't think that it's as complex as Java. All of the things that you have listed are covered in the second semester. In the third semester we went over data structures...
#### Sent from my GN7 #### B0$N4 ####
Click to expand...
Click to collapse
Then you're good to go. For high level apps, you may require data structure too.
But the writing of the source code of an android app is a lot different from the original Java. You gotta know about certain Objects and Methods which you're gonna use in your app. Head over to API guides in developer.android.com.
Sent from my GT-S5360 using xda premium

Canonical asking for community to help develop apps

Just wanted to share this with the guys around here that are the developers.
https://wiki.ubuntu.com/UbuntuPhone/CoreApps/
Cool)
I wait for Ubuntu for phones.
I think it will a cool OS.
But apps will be few. It's a big minus.
Ubuntu for phones must can start typical Ubuntu apps.
It can resolve a problem, I think.
romanzi said:
Cool)
I wait for Ubuntu for phones.
I think it will a cool OS.
But apps will be few. It's a big minus.
Ubuntu for phones must can start typical Ubuntu apps.
It can resolve a problem, I think.
Click to expand...
Click to collapse
Ubuntu will use QML, so I think will be easy port application from desktop built in QML.
We know that many Apps Developers are Ubuntu users, and this will helps with new apps for phone.
Im very excited with Ubuntu, but I do not think that will be a iOS or Android killer,
Will be a Geek Phone, I think.
ti-rodrigues said:
but I do not think that will be a iOS or Android killer,
Will be a Geek Phone, I think.
Click to expand...
Click to collapse
Maybe it will not be popular as iOS or Android but alternatives are always good for us
Canonical said the phone runs the same language as the desktop. So its simply coding a ui change on a desktop app for it to work on the phone.
Sent from my ADR6425LVW using xda app-developers app
texascfdad said:
Canonical said the phone runs the same language as the desktop. So its simply coding a ui change on a desktop app for it to work on the phone.
Sent from my ADR6425LVW using xda app-developers app
Click to expand...
Click to collapse
That's incorrect it uses the same Operating system not the same language apps have to be used on arm based cpus not x86 out 64 bit cpus hence different programming language if a particular PC app doesn't have arm support it won't work
PHONE SLOW CLICK ME?
_____________________________________
"If your doing the right thing then to hell with everyone else -Deadly"​
Well it actually would be the same language just for a different architecture (arm). For example people can/may write an application in C which is used in many different architectures (as long as there is a compiler)
Sent from my Nexus 4 using xda app-developers app
Architecture changes so language changes
PHONE SLOW CLICK ME?
_____________________________________
"If your doing the right thing then to hell with everyone else -Deadly"​
Will it have WhatsApp? Kinda hard to live without it nowadays...
vitorgatti said:
Will it have WhatsApp? Kinda hard to live without it nowadays...
Click to expand...
Click to collapse
Not native..
The whatsapp dev´s won´t use QML
If ubuntu android emulator comes to UP it will work on it like win.exe with wine
btw. wrong thread ^^
sorry for OT :angel:
Sv: Canonical asking for community to help develop apps
TingTingin said:
That's incorrect it uses the same Operating system not the same language apps have to be used on arm based cpus not x86 out 64 bit cpus hence different programming language if a particular PC app doesn't have arm support it won't work
PHONE SLOW CLICK ME?
_____________________________________
"If your doing the right thing then to hell with everyone else -Deadly"​
Click to expand...
Click to collapse
Well nope. You can use exactly the same co de on both. You just use a compiler which targets a different architecture. So the binaries are different. IF you don't mean apps written in ASM but there are none so that's just stupid.
Sent from my Nexus 4 using xda app-developers app

Categories

Resources