aharobot / android-python27 Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/android-python27
Automatically exported from code.google.com/p/android-python27
What steps will reproduce the problem?
1.Place python_scripts_r13 contents into res/raw/my_python_project.zip
2.Rename test.py to overwrite hello.py
3.Install and attempt to run
What is the expected output? What do you see instead?
The full test sequence should begin, instead it fails silently with the
following logcat output http://pastebin.com/C80tUMA3
What version of the product are you using? On what operating system?
Revision a7101e615939 (latest at the moment)
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 15 Jun 2012 at 11:12
[deleted issue]
What steps will reproduce the problem?
1. Install PythonAPK.apk
2. Run PythonAPK and choose install
What is the expected output? What do you see instead?
Expect to see toast. Actually see error stating that the application unexpectly
stopped.
What version of the product are you using? On what operating system?
GoogleTV by Sony.
Please provide any additional information below.
Tried both pre-built PythonAPK.apk downloaded here, and PythonAPK.apk built
from source. In additional test, I found that SL4A and python-for-android do
not work either.
Original issue reported on code.google.com by [email protected]
on 5 Jun 2012 at 10:21
[deleted issue]
[deleted issue]
[deleted issue]
What steps will reproduce the problem?
1.the android-python installs without problem in emulator of android 4.4.2
(kik-kat)in win7 64bit but throws an error
I tried even the apk from the project could not work
the android-pyhton27
cannot show the toast as expected
the logcat error is as follows
03-03 13:23:07.151: E/AndroidRuntime(3421): FATAL EXCEPTION: AsyncTask #1
03-03 13:23:07.151: E/AndroidRuntime(3421): Process: com.android.python32, PID:
3421
03-03 13:23:07.151: E/AndroidRuntime(3421): java.lang.RuntimeException: An
error occured while executing doInBackground()
03-03 13:23:07.151: E/AndroidRuntime(3421): at
android.os.AsyncTask$3.done(AsyncTask.java:300)
03-03 13:23:07.151: E/AndroidRuntime(3421): at
java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
03-03 13:23:07.151: E/AndroidRuntime(3421): at
java.util.concurrent.FutureTask.setException(FutureTask.java:222)
03-03 13:23:07.151: E/AndroidRuntime(3421): at
java.util.concurrent.FutureTask.run(FutureTask.java:242)
03-03 13:23:07.151: E/AndroidRuntime(3421): at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
03-03 13:23:07.151: E/AndroidRuntime(3421): at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
03-03 13:23:07.151: E/AndroidRuntime(3421): at
java.lang.Thread.run(Thread.java:841)
03-03 13:23:07.151: E/AndroidRuntime(3421): Caused by:
java.lang.UnsatisfiedLinkError: Couldn't load
com_googlecode_android_scripting_Exec from loader
dalvik.system.PathClassLoader[DexPathList[[zip file
"/data/app/com.android.python32-1.apk"],nativeLibraryDirectories=[/data/app-lib/
com.android.python32-1, /system/lib]]]: findLibrary returned null
03-03 13:23:07.151: E/AndroidRuntime(3421): at
java.lang.Runtime.loadLibrary(Runtime.java:358)
03-03 13:23:07.151: E/AndroidRuntime(3421): at
java.lang.System.loadLibrary(System.java:526)
03-03 13:23:07.151: E/AndroidRuntime(3421): at
com.googlecode.android_scripting.Exec.<clinit>(Exec.java:68)
03-03 13:23:07.151: E/AndroidRuntime(3421): at
com.android.python32.process.Process.start(Process.java:137)
03-03 13:23:07.151: E/AndroidRuntime(3421): at
com.android.python32.process.InterpreterProcess.start(InterpreterProcess.java:13
8)
03-03 13:23:07.151: E/AndroidRuntime(3421): at
com.android.python32.process.MyScriptProcess.launchScript(MyScriptProcess.java:6
1)
03-03 13:23:07.151: E/AndroidRuntime(3421): at
com.android.python32.BackgroundScriptService.startMyMain(BackgroundScriptService
.java:182)
03-03 13:23:07.151: E/AndroidRuntime(3421): at
com.android.python32.BackgroundScriptService.access$0(BackgroundScriptService.ja
va:156)
03-03 13:23:07.151: E/AndroidRuntime(3421): at
com.android.python32.BackgroundScriptService$startMyAsyncTask.doInBackground(Bac
kgroundScriptService.java:138)
03-03 13:23:07.151: E/AndroidRuntime(3421): at
com.android.python32.BackgroundScriptService$startMyAsyncTask.doInBackground(Bac
kgroundScriptService.java:1)
03-03 13:23:07.151: E/AndroidRuntime(3421): at
android.os.AsyncTask$2.call(AsyncTask.java:288)
03-03 13:23:07.151: E/AndroidRuntime(3421): at
java.util.concurrent.FutureTask.run(FutureTask.java:237)
03-03 13:23:07.151: E/AndroidRuntime(3421): ... 3 more
Original issue reported on code.google.com by [email protected]
on 3 Mar 2014 at 10:27
Attachments:
What steps will reproduce the problem?
1. Import python27 into Eclipse
2. Make adjustments to source for Python 3 (see changes.txt)
3. Clean/Build/Run
What is the expected output? What do you see instead?
The title bar appears for a couple of seconds then disappears. The GUI itself
does not appear at all. Logcat shows no errors besides one that appears with
all builds and has no ill-effect:
"E/PhonePolicy(19924): Could not preload class for phone policy:
com.android.internal.policy.impl.PhoneWindow$ContextMenuCallback"
What version of the product are you using? On what operating system?
Version: 3.2.2
OS: Windows 7 Home 64-bit
Please provide any additional information below.
Manually ran app within the data folder using DroidEdit and found permission
issues when accessing the xml files stored in
"data/data/com.android.python32/files/layout/layout.xml". Manually changed
permissions and the app ran perfectly. App still fails when run from the apk
installation.
I've attached a copy of the most recent Logcat log along with a list of changes
that were made to the source to implement Python 3. Please note that I am
currently creating a little app to convert between the builds and I would be
happy to share if I can get this issue sorted out. So far switching between 2.6
& 2.7 is working and I will get a gui slapped on once I have 3.2 working as
well.
*UPDATE* Used your suggestion from
https://groups.google.com/forum/?fromgroups=#!topic/python-for-android/S0RGtH7Uz
9A and that appears to solve the permission issue but the application itself
still fails to boot. Tested with the hello app as well, same result. *UPDATE*
Original issue reported on code.google.com by [email protected]
on 12 Apr 2013 at 3:02
Attachments:
[deleted issue]
How to add new module without setup ex: PIL and pygame.
Original issue reported on code.google.com by [email protected]
on 27 Dec 2012 at 7:03
Is there a way to stop the Python Script Service?
The Python Script Service just keep running in background after my python
script finished.
Original issue reported on code.google.com by [email protected]
on 5 Jun 2012 at 12:17
I have a working script which depends on a python .egg of PyBluez when run from
a desktop or android console environment
I cannot establish and it seems undocumented how to package these dependencies
to satisfy the needs of a self-contained Python APK. I assume I'm getting the
packaging wrong, which may be why the deployment fails.
The script relies on the python-for-android Bluez .egg at
https://code.google.com/p/python-for-android/downloads/detail?name=PyBluez-0.19-
py2.6-linux-armv.egg
Can it be recorded how this .egg should properly be distributed to fit in with
the layout of the standard APK Eclipse .project for creating APK files which
you have shared via https://code.google.com/p/android-python27/source/checkout
Original issue reported on code.google.com by [email protected]
on 18 Mar 2013 at 5:24
Hi. I have an android application using PySide and QML. It uses Python27 for
android. But I can't use this with SL4A. How can I import SL4A libraries into
python2.7 ? Thanks
Original issue reported on code.google.com by [email protected]
on 6 Feb 2014 at 8:00
What steps will reproduce the problem?
1. Including MS Access database file in my_python_project.zip
2. Create an apk file using eclipse
3. Run on emulator/samsung galaxy tab
What is the expected output? What do you see instead?
The app need to run on the Galaxy tablet and create a text file with desired
results(summary). The app crashes instead.
What version of the product are you using? On what operating system?
Samsung Galaxy tab. Android( Honeycomb Sandwich)
Please provide any additional information below.
I am accessing microsoft access DB in my python scripts. I included my database
file along with my_python_project.zip file. The python apk file installs but
crashes later on. Please suggest suitable ways of including MS Access database
in python apk file.
Original issue reported on code.google.com by [email protected]
on 16 Oct 2012 at 7:49
What steps will reproduce the problem?
1. Install and Run PythonAPK.apk
2. Check /sdcard/com.android.python27/hello.py.log
What is the expected output? What do you see instead?
The file exists, but is zero length. I expect to see output to be written here.
In Process.java line 118, the instream gets written into the log file?
What version of the product are you using? On what operating system?
Nexus Galaxy, Android 4.0.4
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 14 Jun 2012 at 7:12
What steps will reproduce the problem?
1. Download the Android-adt Eclipse
2. Import the template eclipse project and set everything to be working (Just
warn if buildpath is incomplete)
3. Run the built PythonAPK.apk on any Android. It won't even start and give you
the option to install...
What is the expected output? What do you see instead?
Expected:
The install button shows up (the application starts) and you can execute the
sample hello.py script through the apk file.
Saw:
http://pastebin.com/y7UBXawJ
What version of the product are you using? On what operating system?
Newest version cloned from github. I'm running it on linux
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 28 May 2013 at 8:15
[deleted issue]
Added to print the script result
Original issue reported on code.google.com by [email protected]
on 27 Sep 2012 at 2:12
Can't get PyQT to work using binaries, what do I need to do to be able to use
PyQT in apk?
Some documentation on PyQT on Android would be great! I could not find any.
*cheers
Original issue reported on code.google.com by [email protected]
on 31 Jan 2013 at 4:23
[deleted issue]
I want to create a standalone python installation, which can be used with the
android terminal emulator.
The python installation needs zope, twisted and pyopenssl, so I need to rebuild
python_27.zip and python_extras_27.zip.
I created an Ubuntu VM (12.04.1-desktop-i386).
I downloaded and installed adt-bundle-linux-x86.zip and
android-ndk-r7c-linux-x86.tar.bz2.
I downloaded the android-python27 source.
I executed "sudo apt-get install build-essential cpp-4.4 g++-4.4 gcc-4.4-base
gcc-4.4 bison flex autoconf automake autotools-dev quilt libcurl3 curl
openssh-server ant mercurial filezilla pure-ftpd dpatch texinfo libncurses5-dev
libgmp3-dev libmpfr-dev gawk patchutils binutils-dev zlib1g-dev git"
I executed "zcat -f /var/log/dpkg.log* | grep "\ install\ " | sort | tee
jeeto_install.txt"
I configured NDK in config.sh.
I created jeeto_bootstrap.sh, jeeto_build.sh and jeeto_package.sh.
I executed "bash ./jeeto_bootstrap.sh 2>&1 | tee jeeto_bootstrap.txt"
I executed "bash ./jeeto_build.sh 2>&1 | tee jeeto_build.txt"
I executed "bash ./jeeto_package.sh 2>&1 | tee jeeto_package.txt"
The packaging shows several errors (and python_27.zip is only 2,74 MB and
python_extras_27.zip is only 1,17 KB).
What am I doing wrong?
Also, how do I add the zope, twisted and pyopenssl recipes from
kivy/python-for-android to build.sh
(https://github.com/kivy/python-for-android/tree/master/recipes)?
I do not know much about linux :(
Thank you!
Original issue reported on code.google.com by [email protected]
on 5 Jan 2013 at 11:31
Attachments:
[deleted issue]
What steps will reproduce the problem?
1.Change hello.py to something "broken" (put some "import PLEASE_BREAK"
anywhere)
2.The Python code crash
3.You cannot see the traceback
What is the expected output? What do you see instead?
To help debug hello.py, is useful to get the traceback provided by the Python
interpreter, hopefully at the logcat. There is an logfile saved to the sdcard,
but it does not contain stdout output, so its not useful.
What version of the product are you using? On what operating system?
Android 2.3.3, 4.0.5 and 4.1
Please provide any additional information below.
I managed to fix this, but had no time to create a proper pull-request yet, but
I will. Mail me if you're in a hurry and we can talk.
Original issue reported on code.google.com by [email protected]
on 26 Jul 2013 at 7:14
Hi,
The libssl.so shipped with android-python27 might be affected by the OpenSSL
heartbleed bug.
Regards,
Original issue reported on code.google.com by [email protected]
on 13 Jun 2014 at 5:44
What steps will reproduce the problem?
1. Open PythonAPK.
2. Tap the Home button. Press and hold Home to get list of Recent apps.
3. Tap PythonAPK.
Instead of returning to the running instance of PythonAPK, it restarts the app,
stopping current actions and losing variable states. Particularly problematic
on Gingerbread, but reproducible on ICS with the Recent Apps button.
What is the expected output? What do you see instead?
Using Home/Recent should return to the current running instance of PythonAPK.
Instead, the app is restarted. Details below.
What version of the product are you using? On what operating system?
Latest; Windows.
Please provide any additional information below.
Using the BACK key to return to the PythonAPK, say from the browser, works
fine: it returns to the already running instance (logcat: "moveTaskToBack").
Likewise tapping the PythonAPK icon from the homescreen. When attempting to use
Home/Recent, the logcat reveals:
V/sl4a.FutureActivity:50(1035): FutureActivity created.
W/sl4a.FutureActivity:59(1035): FutureActivity has no task!
I/ActivityManager(181): Starting: Intent { act=android.intent.action.MAIN cat=
[android.intent.category.LAUNCHER] cmp=com.android.python27/.ScriptActivity } fr
om pid 1035
I/Process (1035): Sending signal. PID: 1045 SIG: 9
D/PythonAPK(1035): Killed process 1045
The process "com.android.python27" then dies, and a restart is scheduled in
5000ms. The issue appears to relate to FutureActivity.java, where the code
behind the log entries is found.
I would be grateful for any suggestions as to how to fix/avoid this issue, as
the restarting process can be disrupting/confusing to users, and cause some
freezing of the Android interface.
Original issue reported on code.google.com by [email protected]
on 7 Dec 2012 at 2:28
What steps will reproduce the problem?
1. Compiling my Qt with PyDroid template
What is the expected output? What do you see instead?
A functional example of PyQT on Android
What version of the product are you using? On what operating system?
Windows 7 - Android 4.03
Please provide any additional information below.
Copied over Python Extras and Python_27 from python_build_with_qt/binaries
Original issue reported on code.google.com by [email protected]
on 2 May 2013 at 8:22
Attachments:
Removed } from lines 25 and 27, to make bash working :)
Original issue reported on code.google.com by [email protected]
on 10 Nov 2012 at 12:32
Add PyCrypto module
Original issue reported on code.google.com by [email protected]
on 5 Oct 2012 at 7:21
[deleted issue]
I was able to run a python script that does not need root privileges in my
android phone, which is rooted, using PythonAPK. The problem is when I want to
run a script that for some reason need to be run by root user. It returns this
exception "Error code: 1 Message operation not permitted".
Is there a way to call my script from java code with root permissions
(something like su)?
Original issue reported on code.google.com by [email protected]
on 18 Sep 2013 at 5:17
What steps will reproduce the problem?
1. Run Eclipse
2. go to File->Import,
What do you see instead?
Archive for required library:
'libs/armeabi/libcom_googlecode_android_scripting_Exec.so' in project
'PythonAPK' cannot be read or is not a valid ZIP file
What version of the product are you using? On what operating system?
Win7
Original issue reported on code.google.com by [email protected]
on 25 May 2012 at 11:13
Is it possible to change the the grey titlebar where there's the text "SL4A
Title" ?
Original issue reported on code.google.com by [email protected]
on 14 Jul 2012 at 10:54
[deleted issue]
What steps will reproduce the problem?
1. Using the ADT Bundle for Windows
[http://developer.android.com/sdk/index.html] with android-python27 clone
2. Following [in a modified way] the "Tutorial How To Install Android SDK And
Eclipse"
3. Following
What is the expected output?
Sample app should launch successfully.
What do you see instead?
(Errors ... 765 Items) [This looks like a classpath issue to me.]
What version of the product are you using?
cloned today approx 9:07 am pacific time
On what operating system?
Windows XP SP3
Please provide any additional information below.
Here is my log of the steps i did to install and Use APK Template:
my Use APK Template Steps.log
0. For Tutorial How To Install Android SDK And Eclipse:
1.1 At steps 2 & 3, instead of separately downloading Eclipse and the ADT at http://developer.android.com/sdk/index.html i found the ADT Bundle. The site said "It includes the essential Android SDK components and a version of the Eclipse IDE with built-in ADT (Android Developer Tools) to streamline your Android app development."
1.2 Skipped steps 5 & 6, because the "ADT plugin for Eclipse" is PRESUMABLY already hooked up
1.3 At steps 7 & 8, i used TortoiseHg to clone the project into:
C:\1d\PythonPjs\androidPjs\zetc\android-python27\code.google-clone-01
Tutorial How to Use APK Template
1. Opened adt-elcipse with C:\Documents and Settings\joe\workspace-adt-01 [This
is an empty workspace.]
Welcome! screen appears. [No Project Explorer]
2. I click File->Import->General->"Existing Projects into Workspace"
2.1. i click next
2.2. in "Select a directory to search for existing Eclipse projects." dialog
i chose (x) select root directory and browsed to
C:\1d\PythonPjs\androidPjs\zetc\android-python27\code.google-clone-01\apk
which came up in the textArea as
[x] PythonAPK (C:\1d\PythonPjs\androidPjs\zetc\android-python27\code.google-clone-01\apk)
i left unchecked:
[ ] Copy projects into workspace
[ ] Add project to working sets
i clicked Finish
3. I click Window->Show View->Project Explorer
Problems:
Description Resource Path Location Type
Unable to resolve target 'android-15' PythonAPK Unknown Android Target Problem
Unable to resolve target 'android-15' PythonAPK Unknown Android Target Problem
Unable to resolve target 'android-15' PythonAPK Unknown Android Target Problem
Unable to resolve target 'android-15' PythonAPK Unknown Android Target Problem
Unable to resolve target 'android-15' PythonAPK Unknown Android Target Problem
Archive for required library: 'libs/armeabi/libcom_googlecode_android_scripting_Exec.so' in project 'PythonAPK' cannot be read or is not a valid ZIP file PythonAPK Build path Build Path Problem
Project 'PythonAPK' is missing required source folder: 'gen' PythonAPK Build path Build Path Problem
The project cannot be built until build path errors are resolved PythonAPK Unknown Java Problem
Console:
[2012-12-29 09:47:53 - PythonAPK] Unable to resolve target 'android-15'
[2012-12-29 09:47:53 - PythonAPK] WARNING: unable to write jarlist cache file C:\1d\PythonPjs\androidPjs\zetc\android-python27\code.google-clone-01\apk\bin\jarlist.cache
[2012-12-29 09:47:53 - PythonAPK] Unable to resolve target 'android-15'
[2012-12-29 09:47:53 - PythonAPK] WARNING: unable to write jarlist cache file C:\1d\PythonPjs\androidPjs\zetc\android-python27\code.google-clone-01\apk\bin\jarlist.cache
4. Because i have errors, i don't run Project->clean instead i:
4.1 I Right click on the PythonAPK project and select Build Path->Configure Build Path,
4.2 then [in left panel] under Java Compiler->Building i check, previously unchecked, [x] Enable Project Specific Settings is checked.
4.3 Under Build Path Problems i change "Incomplete build path" from Error to Warning.
4.4 I Click Apply [rebuild project dialog appears & i click Yes]
4.5 In the Properties dialog under Java Compiler->Building I click Apply and OK.
RESULT:
Problems: (Errors 100 of 765 Items) [I will show the first 3. This looks like a classpath issue to me.]
Description Resource Path Location Type
Activity cannot be resolved to a type RpcServerLauncher.java /PythonAPK/src/com/android/python27 line 8 Java Problem
Activity cannot be resolved to a type ScriptActivity.java /PythonAPK/src/com/android/python27 line 47 Java Problem
android.os cannot be resolved to a variable FacadeConfiguration.java /PythonAPK/src/com/googlecode/android_scripting/facade line 54 Java Problem
5. I run Project->clean [build automatically is set]
RESULT:
Problems: (Errors 100 of 765 Items) [I will show the first 3. This looks like a classpath issue to me.]
Description Resource Path Location Type
Activity cannot be resolved to a type RpcServerLauncher.java /PythonAPK/src/com/android/python27 line 8 Java Problem
Activity cannot be resolved to a type ScriptActivity.java /PythonAPK/src/com/android/python27 line 47 Java Problem
android.os cannot be resolved to a variable FacadeConfiguration.java /PythonAPK/src/com/googlecode/android_scripting/facade line 54 Java Problem
I'll attach the above as a file.
Thanks in advance for your help with this.
Love and peace,
Joe
Original issue reported on code.google.com by [email protected]
on 29 Dec 2012 at 7:03
Attachments:
What steps will reproduce the problem?
1. İnstalled PyDroid on Android device (4.0)
2. Opened adb shell, and tryed to active RPC Launcher (whith this:
https://code.google.com/p/android-python27/wiki/TutorialHowToRunPythonfromShell
)
What is the expected output? What do you see instead?
PyDroid example's error is pyqt-error.txt:
Traceback (most recent call last):
File "/data/data/org.kde.necessitas.example.PyDroid/files/main.py", line 35, in <module>
main()
File "/data/data/org.kde.necessitas.example.PyDroid/files/main.py", line 20, in main
droid=android.Android()
File "/data/data/org.kde.necessitas.example.PyDroid/files/python/lib/python2.7/android.py", line 34, in __init__
self.conn = socket.create_connection(addr)
File "/home/tsheasha/GUC/Bachelors/android-python27/python-build/build/lib/python2.7/socket.py", line 553, in create_connection
gaierror: [Errno 8] hostname nor servname provided, or not known.
What version of the product are you using? On what operating system?
Lubuntu 13.10
Please provide any additional information below.
How to active RPC server launcher and use SL4A on PyDroid?
Original issue reported on code.google.com by [email protected]
on 25 Feb 2014 at 8:04
What steps will reproduce the problem?
1. Compile the project on Eclipse & deploy standard hello.py to an Android 2+
phone
2. Compile the project on Eclipse & deploy standard hello.py to an Android 4+
phone
What is the expected output? What do you see instead?
Both phones should toast a hello world message, but android 4.1+ phones will
ran the service but not toast.
Please provide any additional information below.
I managed to discover the root cause by the adb shell:
>>> import binascii
ImportError: Cannot load library: link_image[1891]: 8804 could not load needed
library 'libz.so' for 'binascii.so' (get_lib_extents[742]: 8804 - libz.so is
not a valid ELF object)
So, I renamed binascii.so to _binascii.so and copied the contents of
https://gist.github.com/alanjds/6091309 as binascii.py (file attached) .
Repacked python_27.zip and deployed. Now it works on both Android 2.3+ and
Android 4.1+
Original issue reported on code.google.com by [email protected]
on 26 Jul 2013 at 7:04
Attachments:
What steps will reproduce the problem?
1. Bundle the attached file cam.py into apk
2. Run this on an Android phone
What is the expected output? What do you see instead?
Camera app should be launched. Instead, application crashes.
What version of the product are you using? On what operating system?
Tried this on Eclipse 3.7.2 on Ubuntu and Windows XP
Please provide any additional information below.
When the same script file is executed from "sl4a" app on the phone, camera app
is launched and I am able to click and store images on the sdcard successfully.
Please let me know how this issue can be resolved.
cam_logcat_output - Error messages in logcat.
cam.py - Source File
Original issue reported on code.google.com by [email protected]
on 13 Jun 2012 at 10:07
Attachments:
[deleted issue]
Is it possible to stop all services (both foreground and background) as soon as
script ends?
Original issue reported on code.google.com by [email protected]
on 13 Jul 2012 at 11:25
What steps will reproduce the problem?
1. Install Necessitas
2. Import into Eclipse PyDroid project
3. Build path / Configure build path
4. Project Clean / Build Project
What is the expected output? What do you see instead?
No Eclipse errors, 9 errors on QtActivity.java:
The method onServiceConnected(ComponentName, IBinder) of type new
ServiceConnection(){} must override a superclass
method QtActivity.java /PyDroid/src/org/kde/necessitas/origo line 178 Java
Problem
The method onClick(DialogInterface, int) of type new
DialogInterface.OnClickListener(){} must override a superclass
method QtActivity.java /PyDroid/src/org/kde/necessitas/origo line 167 Java
Problem
The method onClick(DialogInterface, int) of type new
DialogInterface.OnClickListener(){} must override a superclass
method QtActivity.java /PyDroid/src/org/kde/necessitas/origo line 122 Java
Problem
The method onClick(DialogInterface, int) of type new
DialogInterface.OnClickListener(){} must override a superclass
method QtActivity.java /PyDroid/src/org/kde/necessitas/origo line 230 Java
Problem
The method onServiceDisconnected(ComponentName) of type new
ServiceConnection(){} must override a superclass
method QtActivity.java /PyDroid/src/org/kde/necessitas/origo line 213 Java
Problem
The method run() of type new Runnable(){} must override a superclass
method QtActivity.java /PyDroid/src/org/kde/necessitas/origo line 204 Java
Problem
The method loaderReady(Bundle) of type new IMinistroCallback.Stub(){} must
override a superclass
method QtActivity.java /PyDroid/src/org/kde/necessitas/origo line 200 Java
Problem
The method onClick(DialogInterface, int) of type new
DialogInterface.OnClickListener(){} must override a superclass
method QtActivity.java /PyDroid/src/org/kde/necessitas/origo line 366 Java
Problem
The method onClick(DialogInterface, int) of type new
DialogInterface.OnClickListener(){} must override a superclass
method QtActivity.java /PyDroid/src/org/kde/necessitas/origo line 350 Java
Problem
What version of the product are you using? On what operating system?
Eclipse Juno Service Release 1, Windows 7
Please provide any additional information below.
I would like to develop a simple Pyqt application for Android,
so I started from the PyDroid template.
Before I had successfully imported, built and tested on Android the
PythonAPK project.
Original issue reported on code.google.com by [email protected]
on 3 Nov 2012 at 7:51
[deleted issue]
Can't seem to get Bluetooth scripts (using either SL4A Bluetooth Serial, or
PyBluez) to run when packaged as an APK, and I'm getting precious little
feedback from Logcat what's going wrong.
Using the same Eclipse project I can successfully deploy and launch APKs
containing hello.py scripts which are similar in their functionality except
they do not use bluetooth.
These BlueZ- and SL4A- bluetooth serial scripts work consistently when launched
interactively or within SL4A, but they die when run from the APK environment.
Having failed to get SL4A bluetoothConnect(...) to work, (errors described at
https://groups.google.com/forum/?fromgroups=#!topic/android-scripting/aCWUGHgLqL
k) I tried instead to use PyBluez functionality which is preferred.
Once again this works when run from the Python console on the phone, or through
SL4A, but does not launch when deployed as an APK.
To try and incorporate PyBluez support in the APK I took the contents of the
egg file from
https://code.google.com/p/python-for-android/downloads/detail?name=PyBluez-0.19-
py2.6-linux-armv.egg and extracted the files and folders into the path
/python/lib/python2.7/dynload/ in the python_27.zip within the project. I don't
know if this is the right place, but it seemed the most consistent. I tried
extracting to some other paths in the supporting zips too, but no luck so far.
The moment I substitute a bluetooth-using scripts in the place of hello.py,
LogCat simply reports that the python process has died, with the following
lines after the installation and extraction of the APK...
03-15 18:25:35.432: V/sl4a.SimpleServer:225(21946): Bound to localhost/127.0.0.1
03-15 18:25:35.472: I/BlueshrimpAPK(21946): Executing
/data/data/com.android.python27/files/python/bin/python with arguments
[/data/data/com.android.python27/files/hello.py, --foreground] and with
environment {ANDROID_SOCKET_zygote=10,
AP_HANDSHAKE=e77ff97e-91e1-4a75-a0e8-1fba1f6fc6eb, ANDROID_BOOTLOGO=1,
EXTERNAL_STORAGE=/mnt/sdcard, ANDROID_CACHE=/cache, ANDROID_ASSETS=/system/app,
PATH=/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin,
ASEC_MOUNTPOINT=/mnt/asec,
PYTHONPATH=/mnt/sdcard/com.android.python27/extras/python:/data/data/com.android
.python27/files/python/lib/python2.7/lib-dynload:/data/data/com.android.python27
/files/python/lib/python2.7, AP_HOST=127.0.0.1, LOOP_MOUNTPOINT=/mnt/obb,
TEMP=/mnt/sdcard/com.android.python27/extras/tmp,
BOOTCLASSPATH=/system/framework/core.jar:/system/framework/bouncycastle.jar:/sys
tem/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.
policy.jar:/system/framework/services.jar:/system/framework/core-junit.jar,
SD_EXT_DIRECTORY=/sd-ext, AP_PORT=46999, DOWNLOAD_CACHE=/cache/download,
ANDROID_DATA=/data, PYTHONHOME=/data/data/com.android.python27/files/python,
LD_LIBRARY_PATH=/data/data/com.android.python27/files/python/lib:/data/data/com.
android.python27/files/python/lib/python2.7/lib-dynload, ANDROID_ROOT=/system,
ANDROID_PROPERTY_WORKSPACE=9,32768}
03-15 18:25:35.472: D/dalvikvm(21946): Trying to load lib
/data/data/com.android.python27/lib/libcom_googlecode_android_scripting_Exec.so
0x405183d0
03-15 18:25:35.482: D/dalvikvm(21946): Added shared lib
/data/data/com.android.python27/lib/libcom_googlecode_android_scripting_Exec.so
0x405183d0
03-15 18:25:35.482: D/dalvikvm(21946): No JNI_OnLoad found in
/data/data/com.android.python27/lib/libcom_googlecode_android_scripting_Exec.so
0x405183d0, skipping init
03-15 18:25:40.122: D/BlueshrimpAPK(21946): Process 22083 exited with result
code 1.
03-15 18:25:40.223: I/Process(21946): Sending signal. PID: 21946 SIG: 9
03-15 18:25:40.252: I/ActivityManager(231): Process com.android.python27 (pid
21946) has died.
Original issue reported on code.google.com by [email protected]
on 15 Mar 2013 at 6:29
Can you add support for the Chord API? I can help with it if you want.
http://developer.samsung.com/chord
Original issue reported on code.google.com by [email protected]
on 3 Jun 2013 at 3:35
[deleted issue]
I need python-2.7.5, openssl, and sqlite for some python code I have.
Is there anyway to update the python source?
Original issue reported on code.google.com by [email protected]
on 26 Sep 2013 at 7:30
What steps will reproduce the problem?
1. install the apk with the script included (android-python27)
2. run it, it will sometimes work partailly.. the first time i ran it it worked
fine... but then stopped.
3. android service and/or my program crashes.
What is the expected output? What do you see instead?
all unread and read sms texts are collected from my android phone
(droid.smsGetMessages(0) and droid.smsGetMessages(1) ) and then sent to my
other phone as specified by number i give (using smsSent('01115555555555','foo')
Expected: i receive the sms messages from the device program is installed on,
to the phone with the number i provided.
INSTEAD: i may get one sms from the device installed on, or a may get a few...
but usually nothing, I get an android system error "Unfortunately, program has
stopped"
What version of the product are you using? On what operating system?
I am using android-python27 cloned, and it works for all my apps. on Ubuntu
(11.10 i think), and running the apk install on my samsung galaxy s2.
Please provide any additional information below.
I will attach the apk file, as well as the manifest. I'm assuming that perhaps
my manifest isn't set up exactly right?
Note: the majority of the code in hello.py is parsing the sms's, this all works
correctly.. the issue is with the sendSms call. Can you please help?
Original issue reported on code.google.com by [email protected]
on 5 Nov 2012 at 6:24
Attachments:
What steps will reproduce the problem?
1.Create .apk, install on the phone
2.Run Python command line
3.import md5,
4.import sha1
What do you see instead?
File "<stdin>", line 1, in <module>
File "/home/tony/Desktop/xcross/android-python27/python-build/build/lib/python2.7/md5.py", line 10, in <module>
ImportError: cannot import name md5
What version of the product are you using? On what operating system?
1. Moto Spice, Adroid 2.1
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 21 Jul 2012 at 12:08
This is a really interesting project, but I'm wondering how to get more out of
it than just
interpreting some basic code.
How do I manually run code and get the standard output from the Python process?
Original issue reported on code.google.com by [email protected]
on 26 Mar 2013 at 9:09
[deleted issue]
What steps will reproduce the problem?
1. edit hello.py and add anything, even simply:
droid.webViewShow('http://google.com')
2. zip the new hello.py as my_python_project.zip
3. recompile with new zip and install on phone
What is the expected output? What do you see instead?
It should run just like the original hello.py, but this time open a webView and
display google.com
What version of the product are you using? On what operating system?
the current download. Windows and Ubuntu.
Please provide any additional information below.
I have also tried dropping python 2.6 zip + extras, renaming globalvars, etc..
same problem. the steps above (1,2,3) produce the problem on the simplest
level. why doesn't webViewShow() work?
Also, the script I'm wanting to compile to apk imports urllib2, mimetypes, os,
simplejson, and many other modules. I have it running as an apk just fine on
platform 1.6 where you must also download the interpreter separately, but it's
losing everyones interest because people get confused if they have to download
the app, then the python interpreter, then back to the downloads folder to
re-try installing the app.
Please help me.
Thx.
Original issue reported on code.google.com by [email protected]
on 8 Oct 2012 at 4:55
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.