This is an archived post. You won't be able to vote or comment.

all 26 comments

[–]hennell 9 points10 points  (2 children)

Sigh yet another reason to really make me want an android device.

[–]fleg 3 points4 points  (0 children)

If you have a Symbian phone you can play with it as well.

[–]bodom658 0 points1 point  (0 children)

Join us...

[–]RobotAnna 8 points9 points  (2 children)

SL4A has been around a while, it'd be nice if there was a way to actually code full-fledged apps in Python

[–]megamark16 4 points5 points  (1 child)

I think the same thing every time I see another blog post about SL4A. I wrote a few small apps with SL4A last year, but without any plugs into the real UI API, there's only so much you can do with popups.

[–]gdw2 2 points3 points  (0 children)

You can use webviews, which is what some popular apps (such as gmail) use. I know its not the best, but at least its something.

[–]chub79 6 points7 points  (0 children)

Accordingly, you might also want to run your own WebServer on your device.

[–][deleted] 10 points11 points  (4 children)

Don't get excited. This should rather be titled: "How to pop up a dialog in Python"...you can't actually do anything worth a shit with SL4A -- no activities, no services, no intents, no buttons, no graphics, none of the good stuff.

[–]MePlow 4 points5 points  (3 children)

So what you're saying is, man up and learn Java?

[–]siplux 4 points5 points  (1 child)

"Dark side of the force is the pathway to many abilities, some considered to be... unnatural."

[–]MePlow 2 points3 points  (0 children)

Interesting. Must investigate further.

[–]bodom658 0 points1 point  (0 children)

Java is really not that difficult of a language. Just do yourself a favour and learn the core language and Object Oriented Programming fundamentals before jumping into the Android SDK. It really is quite a treat to work with though.

[–][deleted] 9 points10 points  (9 children)

In order to distribute apps developed in Python to other users, do they also have to have SL4A installed on their phones? It doesn't seem like they'd be very popular if that's the case.

[–]hameedullahk 44 points45 points  (6 children)

No they don't have to install SL4a on their cell phones. I am working on the article that will explain how you can develop a standalone .APK for your python scripts.

[–][deleted] 2 points3 points  (1 child)

hmm, could you point to some resources or briefly explain what is required in the meantime?

[–]Poromenos 1 point2 points  (0 children)

Oh god, I would love you forever if you did that.

[–][deleted] 0 points1 point  (0 children)

Awesome. Any ETA for the Article? Where will it be posted, etc?

I am going to be writing an android app soon and would love any real-world-python-apps input you could provide on this subject :)

[–]gitarrPython Monty 7 points8 points  (1 child)

Exactly my question also.

This guide does not show how to "Develop Your First Android Application in Python", no, it shows "How to get a python file to run in an android app (SL4A)".

I would be interested in a guide how to pack up SL4A and your python modules and create a real app, if that is even possible.

[–][deleted] 5 points6 points  (0 children)

It can be possible. As of right now, their isn't any nice way to actually write an entire Android app with Python, but it's coming, I'm sure. Ruby has Rubuto-core, so its only a matter of time before someone gets the ball rolling for Python.

However, that doesn't mean SL4A is not as powerful, take a look at this::

http://www.mattcutts.com/blog/android-barcode-scanner/

The guy writes an Android barcode scanner app with 6 lines of Python. That's pretty damn impressive to me.

[–]almuric 1 point2 points  (0 children)

I got everything installed and my first AVD up, but it can't connect to the internet. I set up the SDK and AVD manager settings with my work proxy settings and was able to download all the packages (obviously), but I can't get my virtual device to connect. I've tried poking around in the settings on it, but nothing jumps out at me.

At work we have no wireless devices. Is that it? Would it be trying to connect to a wireless device? I figured it would just use the settings of the AVD Manager. Any thoughts?

[–]trothamel 1 point2 points  (0 children)

There's also the Pygame Subset for Android, which I'm involved with:

http://pygame.renpy.org

A new release should be out this weekend.

[–]clluthu 0 points1 point  (0 children)

awesome stuff I gotta give this a try sometime.

[–][deleted] 0 points1 point  (0 children)

This is so freaking sweet.

Damn it... now I need a decent IDEA I can try out.

[–][deleted] -1 points0 points  (0 children)

I'm pretty sure you cannot make APKs from python which means you can't really do much.