How can python be a part of android? - Other Operating Systems and Languages

So I'm learning how to code python in a class I'm taking, and in the description I remember it said it was multiplatform and supports multiple OS like windows, Mac, Linux, android. And im wondering how python can be used for android?
Like can I developed apps or games just using python? Any pros or cons with programing with python for android?

Sl4a provides support for Python, Ruby, PHP, and Javascript (Rhino). In regards to python, you can try out app development with Kivy and sl4a. I'm none too sure about performance though.
Sent from my SM-G900T using Tapatalk

I heard, pygame can be used on android

Related

[Q] Full Java Virtual Machine - Is it a possibility?

So if this is a stupid question - please be kind.
It seems the Prime has the power to run the full Java instead of the phone based version.
I noticed this the other day when I was trying to run a java video app from within BlackBoard for one of my assignments. I just get a bunch of symbols at the top of the frame and it extends the screen endlessly to the right.
So is adding the full java something that can be done in a new firmware update or be a part of a rooting package of the future? It sure would be nice to take advantage of the power of this tablet by adding the upgraded java.
Thoughts? Suggestions? Am I crazy?
Dalvik is a full JVM, it's just that Android doesn't implement a lot of the Java libraries dedicated to writing desktop apps. It might not be too much work to get, e.g., hidden Java applets running. It would be a lot of work to get Java applications with graphical interfaces working.
I think it'd be cool to run a Minecraft server off my tablet... but that's just me.
Noxious Ninja said:
Dalvik is a full JVM, it's just that Android doesn't implement a lot of the Java libraries dedicated to writing desktop apps. It might not be too much work to get, e.g., hidden Java applets running. It would be a lot of work to get Java applications with graphical interfaces working.
Click to expand...
Click to collapse
But this tablet has the horsepower to run it if it were done, correct? I'm just thinking quad core tablet- a GB of ram. Seems like a ripe apple for the developers to add something a little more tricked out in the software now that there is hardware that would support it.
Of course I am not a developer, but my understanding is java is scaled back due to hardware limitations. The Prime is a beast of a tablet. What would it take for this to happen?
redraider II said:
What would it take for this to happen?
Click to expand...
Click to collapse
A lot of time and money? Months of work at an absolute minimum. I don't know all the missing APIs, but at least pretty much all the graphics stuff from desktop Java is missing on Android.
Noxious Ninja said:
A lot of time and money? Months of work at an absolute minimum. I don't know all the missing APIs, but at least pretty much all the graphics stuff from desktop Java is missing on Android.
Click to expand...
Click to collapse
Oh crap. Well..... I suppose that hope just went out the window.
I am happy with the Prime as it is. I was just curious about the possibilities of taking it to the next level java wise now that there are devices capable of running it.
I see you are in SA, Noxious. I'm just up the road in Austin. Have to come down there every other month or so to Methodist Transplant hospital. Had a liver transplant almost 5 years ago now. Graduated from Judson.
Thanks for your replies.
RedRaider II
You can run Java SE and even a JDK but you lose Android integration. Example: I have JRE/JDK and most of the Android SDK running on mine, in a Debian chroot. All I am missing seems to be a couple x86 C/C++ programs that I don't know where to find the source for, otherwise I could get them ported to ARM and do Android development on my tablet with the usual build system (not what terminal ide does).
But note that if you want to do GUI crap in Java, like AWT/Swing/JWT, then you need the x11/vnc stuff or to push the built code to another machine you can remote into. Running headless Java code is also possible via dalvik (just like the Android SDK does for what goes into .apk files) in some cases but I would not want to test complicated parts of core libs and classpath dancing.
Sent from my Transformer Prime TF201 using Tapatalk
Run Linux (ARMel or ARMhf) OS ontop of Android and run "ARM_Linux_Moder" from the following link after cloning it to the Linux file system
https://github.com/S0AndS0/Debian-Kit-Mods
Full directions are in readme file and I've a guide on xda and google docs to set up Linux on Android using Debian Kit.
Currently you can run JDK hard or soft float on Android and run almost any .jar file or java program that runs on PC Linux OS's using the scripts provided and install Java dependent software I've tested and scripted installers for.
I'll be working on Android SDK and NDK soon.
Sent from my SPH-D700 using xda app-developers app
Khyrdantai said:
I think it'd be cool to run a Minecraft server off my tablet... but that's just me.
Click to expand...
Click to collapse
I think it would be great too

Native C# Android?

Has anyone seen this?
http://blog.xamarin.com/2012/05/01/android-in-c-sharp/
This could be the bomb... coding in C# for Android natively!! Even maybe some of the good developers here at XDA could make a C# native Android ROM with a Dalvik machine for compatibility with non-C# market apps??
They have made tests and it seems that C# ROMs run like 5-8 times faster and leech much less power ...
Cheers!!!
Java and C# is brother actually. Both have virtual machines, both came from C++. But creating a new variation of one of these is so unreliable. Dalvik is Basically Java's clone but not very succesful clone. Mono is C#'s VM's clone and very reliable. Linux, Mac and Windows has Mono Ports (actually windows has .net framework) Mono is great but you know microsoft doesn't like UNIX like systems especially linux based ones. Thus C# programming could be harder for people. Also C# for phones could be awesome. Since 2000's We already have javaVMs on phones. Why Not C#. (python is good too but google wants a new language called GO)
Repeal said:
...Mono is great but you know microsoft doesn't like UNIX like systems especially linux based ones...
Click to expand...
Click to collapse
I think the problem is much greater with Google since they won't want a M$ programming language in their OS ... and that's a reason for which I'm sure they won't never support C# Android, but another thing are community ROMs.
Let time judge it.. but I think its good stuff...
Not only they do not 'want', they probably are not allowed as c# has patents. Look what is happening to google with java now owned by oracle..

language for android app development

Hello , i have an IT project lined up regarding the programming of an android app (a high level)
i would like to know that which is the best free book/pdf document is available online for learning android programming.
i have started learning python, i just wanted to know whether it can help me in any way?
Emmm....I think python won't help. By the way what languages do you know? If you like you can continue your project with Mono Android. Which is compatible with Microsoft Visual Studio and you can do many things easier with it. In that case you have to know C#. Here's the thread with many links. http://forum.xda-developers.com/showthread.php?t=2223114
Sent from my SonyX8 using Tapatalk 2
---------- Post added at 11:57 AM ---------- Previous post was at 11:55 AM ----------
Here's the thread for setup Mono Android. http://forum.xda-developers.com/showthread.php?t=2223010
Btw if you would like to go on this, pm me problems you have, I will help you as I can. Good luck.
Sent from my SonyX8 using Tapatalk 2
virk36 said:
Hello , i have an IT project lined up regarding the programming of an android app (a high level)
i would like to know that which is the best free book/pdf document is available online for learning android programming.
i have started learning python, i just wanted to know whether it can help me in any way?
Click to expand...
Click to collapse
Do yourself a favor and simply use Java if possible. That is how they intended to develop on Android. In my experience anything else is good only if specifically needed.
JAVA is the most used language to make apps for Android but there are alternatives and the biggest I see is Mono fro Android which uses C# as a programming language
const_char said:
Do yourself a favor and simply use Java if possible. That is how they intended to develop on Android. In my experience anything else is good only if specifically needed.
Click to expand...
Click to collapse
I second that. Android is mostly designed around C and Java. Even if you code C/C++, you sometimes have to use JNI to call back into Java, because some functionality is only exposed in a Java package, not in native code.
So Java is the best way to make full use of the Android platform, and gives you the best compatibility. Most tools, documentation and other resources are also aimed at Java development.
Java is default android development language
virk36 said:
Hello , i have an IT project lined up regarding the programming of an android app (a high level)
i would like to know that which is the best free book/pdf document is available online for learning android programming.
i have started learning python, i just wanted to know whether it can help me in any way?
Click to expand...
Click to collapse
you can develop android app with python but maybe your released app size is so big
because your app must statically have python interpreter.
it is not easy stuff, if you have not many experience of android development.
python is not too far from java or c/c++ so it may help anyway, but now you should go to java ...
but the most important is now to know how to use the Android framework
Nowadays, Java is the most useful language to create application for android, but I will prefer mono for C# as a programming language.
yeah...man u should use java it would really help u.....i m 14 i too wanna develop apps...so i learn JAVA it's the best ....
By the way gud luck with ur project
Sent from my IRIS402 using xda app-developers app

[Q] Development of an App?

I need to create an app from scratch for my local school. I have some experience in Python. What do I need to learn and how can I go about making this app?
It also needs to be able to support all types of devices, such as Windows and Apple.
Each platform (android, iOs, WindowsPhone) needs an own app. So you have to code same app three times.
But there are some frameworks like PhoneGap which creates all three apps out of one code.
If you want to use PhoneGap ur App must be coded in Html, & JavaScript.
If you want to code native Apps, you have to use Object-c for iOs, Java for Android and C# or C++ for WindowsPhone.
Regards
I cant program an app in C for Android. I didn't know that.
Sent from my SHV-E300S using xda app-developers app
EmptinessFiller said:
Each platform (android, iOs, WindowsPhone) needs an own app. So you have to code same app three times.
But there are some frameworks like PhoneGap which creates all three apps out of one code.
If you want to use PhoneGap ur App must be coded in Html, & JavaScript.
If you want to code native Apps, you have to use Object-c for iOs, Java for Android and C# or C++ for WindowsPhone.
Regards
Click to expand...
Click to collapse
Which is better to learn? Html or Java? I have plenty of time to learn the language, just need to know where to start. I would moest likely use PhoneGap.
there is no comparison of both the languges but if you are asking for development then you must go with java :thumbup:
Sent from my GT-S5830 using xda app-developers app
Depending of the complexity of the App, the time you have it for delivery it and other factors, you can choose from make a native App or a Hybrid App.
Native App: You need to use the native languague of each platform, which means that you need codify the same app for each platform on their native languge.
Hybrid App: One code for all platforms, in this case you codify the app with web technologies like HTML and JavaScript using frameworks like PhoneGap, Appcelerator and many others you can find in the web.
Other thing that is important when you are choosing between those two approach is that the performance of the native App will be always better, but for simple Apps, the hybrid approach offers a good overall performance.
Best regards!

C++ Ide

Hey,
I use visual studio for programming in C++ and am interested in learning to develop for android. I have previously done so in eclipse but it has been 2 years or so and that was in Java. I am interested in programming in C++ and was curious what IDE y'all used.
Thanks,
Fish.
MrFish. said:
Hey,
I use visual studio for programming in C++ and am interested in learning to develop for android. I have previously done so in eclipse but it has been 2 years or so and that was in Java. I am interested in programming in C++ and was curious what IDE y'all used.
Thanks,
Fish.
Click to expand...
Click to collapse
I suggest you to use Qt
You can programing in c++ for android
If you're on Windows, Visual C++ isn't a bad choice (esp. the latest editions which include Android support!). But if you're on Linux and/or programming on both Windows and Linux, Qt Creator is my favourite by all means.
Personally, I prefer CLion by JetBrains (the company that creates IntelliJ and Android Studio). Although it is a commercial IDE, you can have free license for student or open source project.
THGDev said:
Personally, I prefer CLion by JetBrains (the company that creates IntelliJ and Android Studio). Although it is a commercial IDE, you can have free license for student or open source project.
Click to expand...
Click to collapse
CLion is amazing! It works really well with Rust plugin too.

Categories

Resources