Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python sl4a sendText not working #15

Open
GoogleCodeExporter opened this issue Apr 5, 2015 · 3 comments
Open

Python sl4a sendText not working #15

GoogleCodeExporter opened this issue Apr 5, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

>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
Copy link
Author

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
Copy link
Author

Attached log.txt is not the logcat

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant