sms not sent from java bridge

15 views
Skip to first unread message

bernhard

unread,
Feb 19, 2012, 7:01:31 PM2/19/12
to Android Programming at USF
hi,

anybody successfully implemented the java bridge example?
i set the permission in the manifest

<uses-permission android:name="android.permission.RECEIVE_SMS"></uses-
permission>
<uses-permission android:name="android.permission.SEND_SMS"></uses-
permission>

and showed some debug messages in a label

dbg("Message Received from"+number);
texter.PhoneNumber(number);
texter.Message(MessageTextBox.Text());
texter.SendMessage();
dbg("Response "+MessageTextBox.Text()+" Sent to"+number);

i see the text from the message box as well as the number that sent me
the sms
- but the sms is never sent from my phone, no messages in logcat.

any hints?
thanks in advance,

bernhard

M. Hossein Amerkashi

unread,
Feb 19, 2012, 7:23:14 PM2/19/12
to android-progr...@googlegroups.com
Should work. I have a social networking (texting) app in Market with +46,000 downloads. It lets people create Google+ like circles and text messages to a circle in one-click. Its implemented using bridge and have had not issues with it. BTW, what type of phone do you have?

-Hossein

Bernhard Schelling

unread,
Feb 19, 2012, 8:46:23 PM2/19/12
to android-progr...@googlegroups.com
Hi,
thanks for the quick answer.

thing is I have no clue whats going wrong since i get no messages on the logcat.
Is there any way to check it?
I got a - crappy - LG VM670 running Android Version 2.2.1.
thanks again,

bernhard

David W Wolber

unread,
Feb 20, 2012, 1:06:16 PM2/20/12
to android-progr...@googlegroups.com
Hi Bernhard. Did you get this one working. The sample code up at:


works if you set the permissions as below...at least for my phone. Maybe try another phone?

dave

Bernhard Schelling

unread,
Feb 20, 2012, 1:14:27 PM2/20/12
to android-progr...@googlegroups.com
hi,
didn't try again yet - will do and let you know!
thx
bernhard

bernhard

unread,
Feb 20, 2012, 5:05:57 PM2/20/12
to Android Programming at USF
hi,

still doesnt work :/
used the nightly build as well as the AiBridge_v1.0.1.jar - no
difference
no sms - no error message.

i have uploaded my eclipse project here.
http://www.cs.usfca.edu/~bbschelling/testsmssend.zip

thx
bernhard

On Feb 20, 10:14 am, Bernhard Schelling <bernhard.schell...@gmail.com>
wrote:
> hi,
> didn't try again yet - will do and let you know!
> thx
> bernhard
>
> On Mon, Feb 20, 2012 at 10:06 AM, David W Wolber <wolb...@usfca.edu> wrote:
>
>
>
>
>
>
>
> > Hi Bernhard. Did you get this one working. The sample code up at:
>
> >https://sites.google.com/site/mobileprogrammingusf/no-texting-java-br...
>
> > works if you set the permissions as below...at least for my phone. Maybe try
> > another phone?
>
> > dave
>
> > On Sun, Feb 19, 2012 at 4:01 PM, bernhard <bernhard.schell...@gmail.com>

David W Wolber

unread,
Feb 20, 2012, 6:37:15 PM2/20/12
to android-progr...@googlegroups.com
Hi Bernhard. Sorry for these issues. I'll try to look, and can you come to office hours tomorrow after class. Perhaps we can debug then.

Dave

David W Wolber

unread,
Feb 20, 2012, 6:44:07 PM2/20/12
to android-progr...@googlegroups.com
Hi Bernhard. In the code you sent, you're not calling texter.SendMessage (you were in your early snippet you sent).

Dave

Bernhard Schelling

unread,
Feb 20, 2012, 8:02:51 PM2/20/12
to android-progr...@googlegroups.com
hi -you're absolutely right i must have somehow deleted this line!
now that code works on my phone, will check out my original app too!
thanks again!
bernhard
Reply all
Reply to author
Forward
0 new messages