zionhigt / android-python27

Automatically exported from code.google.com/p/android-python27
0 stars 0 forks source link

Python sl4a sendText not working #15

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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 MichaelD...@gmail.com on 5 Nov 2012 at 6:24

Attachments:

GoogleCodeExporter commented 8 years ago
>I get an android system error "Unfortunately, program has stopped"

Logcat ?

Original comment by anthony....@gmail.com on 5 Nov 2012 at 7:53

GoogleCodeExporter commented 8 years ago
Yes, not sure the logcat will tell us anything, as the emulator doesn't have 
text ability does it?

Original comment by MichaelD...@gmail.com on 5 Nov 2012 at 11:14

Attachments:

GoogleCodeExporter commented 8 years ago
Attached log.txt is not the logcat

Original comment by anthony....@gmail.com on 6 Nov 2012 at 8:00