[android-developers] Re: SMS related API

2014-08-03 Thread Pent
Have a look at Telephony.Sms in the docs.

To detect changes in the DB you can use ContentObserver.

New messages can be detected also with 
Telephony.Sms.Intents.SMS_RECEIVED_ACTION, there's a lot of code on the 
internet for that.

Pent

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: SMS related API

2014-08-03 Thread Nitin Gautam
Thanks Pent for the start point guidance, let me have a look on this and 
get back in case any hurdle :)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: SMS Receiver Issue

2013-09-09 Thread Piren
The SMS Receive broadcast is an ordered broadcast. Handcent catches the 
event before you and stops it from being propagated.
change your receiver's priority to a higher one and it should work.




On Saturday, September 7, 2013 7:34:22 PM UTC+3, fahad mullaji wrote:

 Guys,

 If user has installed handcent application on his/her device then my code 
 is not catching receive sms event.

 Anybody faced such issue?

 -- 
 Regards
 Fahad Mullaji

  

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: SMS/MMS Default App source code into Eclipse?

2012-08-29 Thread Rajiv Singh
can u please provide me link to those repositories !! i m also working to 
modify default sms Application !!

On Friday, 11 May 2012 02:34:53 UTC+5:30, Ginzorf wrote:

 Greetings all, 

 I'm attempting to make some slight modifications to the SMS/MMS 
 application that comes included with Android. I've found a couple 
 repositories, but downloaded the code from GitHub. 

 However, when I try to build a new solution from the existing source, 
 it says it can't find the manifest even though it's in the same 
 folder, etc. Also, the AndroidManifest doesn't appear to have a min- 
 sdk listed in it? Do I add this? 

 I basically, for starters, just want to deploy the code from eclipse 
 to my phone and verify that it works just like my Text / MMS 
 application that I use all the time. Then I'll make my modifications. 

 But I'm having a heck of a time getting this started. Any ideas?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: SMS Header

2012-08-03 Thread bob
 

I doubt your phone service provider will allow you to spoof SMS messages.

On Wednesday, August 1, 2012 7:26:17 PM UTC-5, Basti189 wrote:

 Hello,

 I want to program an App which can send SMS with the special function. I 
 want to modify the header that the receiver of the sms don't see my phone 
 number but a number that you define in the App.
 My english is very bad, but I hope you can understand this.

 Yours

 Sebastian


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: SMS/MMS Default App source code into Eclipse?

2012-07-10 Thread jayesh jethava
Well... you need to include all files that are referenced If you 
don't have protobuf how do you expect the classes to use it to function ?

In your project, you should have the following packages (create them and 
add all the files to them if you don't already have them):

Your own source package with your files
com.gc.android.market.api
com.gc.android.market.api.model

And you need to include the protobuf-java-2.2.0.jar file as a library 
(don't know which IDE you are using so don't know the exact 
instructions). But, it will be something like Build Path where you add 
the library.

Hope it helps :).


Bistro Bot - Bistro Blurb
http://bgies.comhttp://nocrappyapps.com
http://bistroblurb.com  http://forcethetruth.com
http://ihottonight.com
---
Everything in moderation, including abstinence (paraphrased)

Every person is born with a brain... Those who use it well are the 
successful happy ones - Brad Gies

Adversity can make or break you... It's your choice... Choose wisely - Brad 
Gies

Never doubt that a small group of thoughtful, committed people can
change the world. Indeed. It is the only thing that ever has - Margaret Mead

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: SMS application for iPhone - http://alturl.com/jfzi4

2012-04-12 Thread Ali Chousein
 We have recently developed SMS Application (Beta version) for iPhone. Find
 below the link for your reference.

Good for you man, thumps f@#~!*@ up. And what do you want us to do
after your great achievement? Give up any interest developing apps for
Android and spend 3K-4K $$$ just to get started doing iOS development?
Hhmmm, I'll take a second to think about it. Hhmmm, I think my answer
is No.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: SMS URI trigger Application

2012-04-03 Thread Ali Chousein
http://stackoverflow.com/questions/2372248/launch-sms-application-with-an-intent

-
Ali Chousein
http://socialnav.blogspot.com | http://twitter.com/socialnav1
http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy
http://www.codeproject.com/KB/android/PayGol-Android.aspx
http://geo-filtered-assistant.blogspot.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: SMS with name

2012-03-23 Thread vivek elangovan
Hi members,
  I am developing a SMS application whereas using 
sendSMS function i am able to do that. what i need to do is instead of 
sending msg with number i want to send that with name.is it possible ?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: SMS with name

2012-03-23 Thread Ali Chousein
Yes it is possible. After you have the name, search the contacts to
see if you have such a name. If yes, you can query the phone number
and send the SMS to this phone number. You need to study and
understant the ContactsContract interface:
http://developer.android.com/reference/android/provider/ContactsContract.html
 Google also for ContactsContract example, there are plenty of
them.

But AFAIK in every Android based device you already can send SMS
messages by entering the name.

-
Ali Chousein
http://www.codeproject.com/KB/android/PayGol-Android.aspx
http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy
http://geo-filtered-assistant.blogspot.com
https://marketplace.cisco.com/apphq/products/994

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: SMS as techinque for chatting

2012-03-22 Thread Ali Chousein
 I hv created an application that send and receive but couldnt mk these msgs
 as chatting?

What's so difficult about it? You already have all SMS messages you
wish to display on the screen. You need to understand how you should
design your UI. You have to make choices how your UI should look like
and get started with it. I know it's very basic, but you can start
from Hello, Views tutorials maybe? You can find these tutorials
here: http://developer.android.com/resources/tutorials/views/index.html
Certain people in this list can help you only when you have specific
questions about an approach you have chosen.

PS. And please man, don't drop vowels when you write something!

-
Ali Chousein
http://www.codeproject.com/KB/android/PayGol-Android.aspx
http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy
http://geo-filtered-assistant.blogspot.com
https://marketplace.cisco.com/apphq/products/994

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: SMS Table

2012-02-22 Thread Nitin Sethi
Deepa,

A good place to start would be:

http://developer.android.com/resources/tutorials/notepad/notepad-ex1.html

On Feb 22, 12:56 pm, Deepa M deepam8...@gmail.com wrote:
 Dear All

 can any one help me to create a sms database table as sms table in
 android to store all iin that created database incoming messages ...

 --
 Thanks Regards
 Deepa M

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: SMS Table

2012-02-22 Thread moktarul anam
Hi Deepa,
What do want to do ?  already sms db table is there in android.


Moktarul

On Feb 22, 12:56 pm, Deepa M deepam8...@gmail.com wrote:
 Dear All

 can any one help me to create a sms database table as sms table in
 android to store all iin that created database incoming messages ...

 --
 Thanks Regards
 Deepa M

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: SMS Table

2012-02-22 Thread Deepa M
i want to create a own database to store all inbox messages... its my
interest project..pls refer

On 2/22/12, moktarul anam mokta...@gmail.com wrote:
 Hi Deepa,
 What do want to do ?  already sms db table is there in android.


 Moktarul

 On Feb 22, 12:56 pm, Deepa M deepam8...@gmail.com wrote:
 Dear All

 can any one help me to create a sms database table as sms table in
 android to store all iin that created database incoming messages ...

 --
 Thanks Regards
 Deepa M

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
Thanks Regards
Deepa M

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Sms Manager

2012-02-16 Thread Ali Chousein
Yes it is normal. First when I saw this behavior I was also surprized,
when then when I thought about it, it made sense that the SMSManager
does not mess around with the DB of the SMS application on the phone.

-
Ali Chousein
http://www.codeproject.com/KB/android/PayGol-Android.aspx
http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy
http://geo-filtered-assistant.blogspot.com
https://marketplace.cisco.com/apphq/products/994

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: SMS Manager

2012-02-07 Thread Ali Chousein
Hhhmmm, I doubt that the Android framework supports this by default.
When you send an SMS to another emulator on the same machine, you
specify other emulator's port number. If you want to send an SMS to
another machine, I guess you'll need something like:

1. You are working on machine M1. Send SMS to port P1 on machine M1.
2. You have a running software on M1 which listens to P1 and forwards
any incoming date to port P2 on machine M2.
3. You have another software on M2 which listens to P2 and forwards
any incoming data to an emulator running on M2.

Of course, in this case you'll need to implement the software for
machines M1 and M2, but this should be something quite simple.

If anybody has any other proposal it'll be very interesting to read
it.

-
Ali Chousein
http://www.codeproject.com/KB/android/PayGol-Android.aspx
http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy
http://geo-filtered-assistant.blogspot.com
https://marketplace.cisco.com/apphq/products/994

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: SMS Manager

2012-02-05 Thread vivek elangovan
Hi members,
  Using SMS Manager i m able to send message from one
emulator to another emulator which is in my local machine and it is
working fine.Is it possible to send SMS from my emulator to another
emulator of another machine ?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re : SMS application

2012-02-02 Thread Jagruti Sangani
HI,
Can you send me your application full code?Because I really want that
application for my project training.
Thanks in advance.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re : SMS application

2012-02-01 Thread vivek elangovan
Hi members,
  I m developing one application to send SMS,here
i used sendSMS() function and SmsManager class and it is working fine
for sending messages between two emulators.I need to send msgs to real
phones for that i have to mention some SMS gateway.So in SmsManager
class where i can specify the gateway address and their corresponding
username and password.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: SMS and Application Integration! Need Suggestion

2012-01-13 Thread Ali Chousein
This is an excellent tutorial: 
http://mobiforge.com/developing/story/sms-messaging-android
 You can start from here and build the functionality you are
interested in.

-
Ali Chousein
http://www.codeproject.com/KB/android/PayGol-Android.aspx
http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy
http://geo-filtered-assistant.blogspot.com
https://marketplace.cisco.com/apphq/products/994

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: SMS and Application Integration! Need Suggestion

2012-01-12 Thread Prathamesh
Any Suggestion please

On Jan 12, 5:14 pm, Prathamesh prathame...@gmail.com wrote:
 Hi all,

 I want to read received SMS in my application without closing or
 minimizing or switching application.

 Is there any provision in android for such functionality ?

 How to integrate Application and SMS ?

 Assumption:

 SMS is intended for that application. SMS has some meta-data related
 to appplication using which application identifies that SMS.

 Any Ideas/ suggestions

 Thanks
 Prathamesh

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: SMS and Application Integration! Need Suggestion

2012-01-12 Thread TreKing
On Thu, Jan 12, 2012 at 9:32 AM, Prathamesh prathame...@gmail.com wrote:

 Any Suggestion please


Suggestion:  http://developer.android.com/search.html#q=smst=0

Then explain what you have tried and what is not working.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: SMS interface and timestamps

2011-11-01 Thread gjs
Hi,

For (1) probably not, sms can be queued by the operator for quite a
while if recipient phone is off.

For (2) you can get an accurate GMT timestamp from the GPS Location,
provided you have a current gps fix.

Regards

On Nov 1, 6:29 am, John Goche johngoch...@googlemail.com wrote:
 Hello,

 I would like to code with android's SMS interface, however I am
 somewhat new to SMS programming. I would like to know:

 1. If I send an SMS, can I be notified from the operator with some
 option about the timestamp in GMT for instance that the message
 was sent?

 I ask because I need to coordinate database manipulations across
 a distributed network of cellphones and am concened that if I use
 the time on each phone then if different phones have different
 timestamps things may get out of sync.

 2. Is there an alternate way of letting the phones know about any
 time discrepancies in their time tracking settings?

 Thanks,

 John Goche

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: SMS interface and timestamps

2011-11-01 Thread John Goche
On Tue, Nov 1, 2011 at 8:37 AM, gjs garyjamessi...@gmail.com wrote:

 Hi,

 For (1) probably not, sms can be queued by the operator for quite a
 while if recipient phone is off.

 For (2) you can get an accurate GMT timestamp from the GPS Location,
 provided you have a current gps fix.


What do you mean by current gps fix?

Thanks,

John Goche

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: SMS interface and timestamps

2011-11-01 Thread Belvedere Computer Services
i am new at this but i am sure what he is saying is A class
representing a geographic location sensed at a particular time (a
fix). A location consists of a latitude and longitude, a UTC
timestamp. and optionally information on altitude, speed, and bearing.
But what you are saying is that any transaction needs to have a time
stamp so you have to come up with some way of keeping all transactions
sync() which is remarkably challenging unless have one place issues
the transaction and all the others work off of the timestamp on the
originating transaction

if each of the cellphones can generate a transaction then keeping
everything sync() is an issue of concern that you need to look at very
closely

On Nov 1, 4:40 am, John Goche johngoch...@googlemail.com wrote:
 On Tue, Nov 1, 2011 at 8:37 AM, gjs garyjamessi...@gmail.com wrote:
  Hi,

  For (1) probably not, sms can be queued by the operator for quite a
  while if recipient phone is off.

  For (2) you can get an accurate GMT timestamp from the GPS Location,
  provided you have a current gps fix.

 What do you mean by current gps fix?

 Thanks,

 John Goche

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: SMS interface and timestamps

2011-11-01 Thread gjs
Hi,

See http://developer.android.com/reference/android/location/Location.html
and 
http://developer.android.com/guide/topics/location/obtaining-user-location.html

Regards


On Nov 1, 8:52 pm, Belvedere Computer Services fa829...@gmail.com
wrote:
 i am new at this but i am sure what he is saying is A class
 representing a geographic location sensed at a particular time (a
 fix). A location consists of a latitude and longitude, a UTC
 timestamp. and optionally information on altitude, speed, and bearing.
 But what you are saying is that any transaction needs to have a time
 stamp so you have to come up with some way of keeping all transactions
 sync() which is remarkably challenging unless have one place issues
 the transaction and all the others work off of the timestamp on the
 originating transaction

 if each of the cellphones can generate a transaction then keeping
 everything sync() is an issue of concern that you need to look at very
 closely

 On Nov 1, 4:40 am, John Goche johngoch...@googlemail.com wrote:







  On Tue, Nov 1, 2011 at 8:37 AM, gjs garyjamessi...@gmail.com wrote:
   Hi,

   For (1) probably not, sms can be queued by the operator for quite a
   while if recipient phone is off.

   For (2) you can get an accurate GMT timestamp from the GPS Location,
   provided you have a current gps fix.

  What do you mean by current gps fix?

  Thanks,

  John Goche

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: SMS Notifications

2011-08-24 Thread Amit
Hi,
   What is your expectation here?
Do you want to process it first or you only want to process it?

I mean, you can declare your app as default SMS receiver and then kill
the intent. OR, you just set the high priority so that you will be the
first one to receive it but again Android gives you some time to
process it else it will assume that your app is not responding and
will pass that to the next one.

Let us know what are you planning to do here?

Thanks,
-A

On Aug 24, 1:40 pm, Yahor Paulavets ypaulav...@agilefusion.com
wrote:
 Hello,

 I think it is not possible. Because there are could be another applications
 listen to the sms broadcast.

 Please update this thread if you find a solution.

 Best regards,
 Yahor

 On Tue, Aug 23, 2011 at 8:46 AM, nageswara rao rajana nagu.raj...@gmail.com 
 wrote:
  Hi,

       I developed a service application which receives and send SMS in
  background.When SMS received or send a notification is
       displaying.So, i want to disable that notification through
  application.So, please any one can help me.

       Thanking you,
       Nageswara rao.

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: SMS Broadcastreceiver not received when GO SMS Pro installed

2011-07-29 Thread Jim
GoSMS has the SMS_RECEIVED priority set to 2147483647. Android docs
state that it should be less than 1000 (http://developer.android.com/
reference/android/content/IntentFilter.html#SYSTEM_HIGH_PRIORITY).
Priorities set too high will have unpredictable results, just as apps
with the same priority level will execute in an arbitrary order (the
Stackoverflow thread says that it is in installation order, and even
though that seems to be the usual order, I have seen it execute in
what seems to be random order).

GoSMS has this wrong (and many other apps) and it interferes with
other apps, as indicated in your logcat.

-Jim

On Jul 12, 5:26 am, Mark Murphy mmur...@commonsware.com wrote:
 On Mon, Jul 11, 2011 at 11:08 PM, rich friedel rich.frie...@gmail.com wrote:
  Yeah... Go SMS Pro really screws with things... the only thing I can figure 
  is they are absorbing the incoming broadcast and somehow not letting it 
  through so that other receivers can do what they need to do.

 The OP had originally posted on StackOverflow -- here's the analysis:

 http://stackoverflow.com/questions/6600266/suppress-block-broastrecei...

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

 Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: SMS Broadcastreceiver not received when GO SMS Pro installed

2011-07-11 Thread Subba
Any luck on this issue? am facing the same issue...

On Jul 3, 9:44 pm, Android Geek i...@textyapp.com wrote:
 I have implemented an SMS receiver which intercepts incoming SMS
 messages without any issues. However, when I install GO SMS Pro and
 set Disable other message notification, then my app does not receive
 any broadcast message even though I have set the priority on intent
 filter very high. Is there a way to overcome so that my app always
 receive a SMS broadcast irrespective of what user does on Go SMS Pro's
 app, especially since my app does not show any UI pop-up notification?
 As soon as I uninstall GO SMS Pro, my app starts getting incoming SMS
 broadcasts and works fine.

 Here is the log when an incoming SMS is received and GO SMS Pro is
 installed. There is some magic done by GO SMS Pro which I don't
 understand. Can someone explain what is done here and how can I make
 sure my app does get ordered broadcast notification every time?

 07-02 19:52:21.674: INFO/Zygote(25209): Zygote: pid 25209 has INTERNET
 permission, then set capability for CAP_NET_RAW

 07-02 19:52:21.820: INFO/ActivityThread(25209): Publishing provider go-
 sms: com.jb.gosms.provider.GoSmsProvider

 07-02 19:52:21.830: INFO/ActivityThread(25209): Publishing provider go-
 mms-sms: com.jb.gosms.provider.GoMmsSmsProvider

 07-02 19:52:21.834: INFO/ActivityThread(25209): Publishing provider
 com.jb.gosms.im;com.jb.gosms.chat:
 com.jb.gosms.im.database.ImContentProvider

 07-02 19:52:21.842: INFO/ActivityThread(25209): Publishing provider
 com.jb.gosms.schedule.Schedule: com.jb.gosms.schedule.ScheduleProvider

 07-02 19:52:21.846: INFO/ActivityThread(25209): Publishing provider go-
 mms: com.jb.gosms.provider.GoMmsProvider

 07-02 19:52:21.959: DEBUG/dalvikvm(25209): GC_FOR_MALLOC freed 2657
 objects / 173112 bytes in 30ms

 07-02 19:52:22.182: DEBUG/dalvikvm(25209): Trying to load lib /data/
 data/com.jb.gosms/lib/libHanzi2Pinyin.so 0x47d4cf70

 07-02 19:52:22.182: DEBUG/dalvikvm(25209): Added shared lib /data/data/
 com.jb.gosms/lib/libHanzi2Pinyin.so 0x47d4cf70

 07-02 19:52:22.182: DEBUG/dalvikvm(25209): No JNI_OnLoad found in /
 data/data/com.jb.gosms/lib/libHanzi2Pinyin.so 0x47d4cf70, skipping
 init

 07-02 19:52:22.186: INFO/Hanzi2Pinyin_Native(25209): InitLib in
 ver=3141000

 07-02 19:52:22.186: INFO/Hanzi2Pinyin_Native(25209): Init in

 07-02 19:52:22.186: INFO/Hanzi2Pinyin_Native(25209): file size=155203

 07-02 19:52:22.186: INFO/Hanzi2Pinyin_Native(25209): Init out

 07-02 19:52:22.186: INFO/Hanzi2Pinyin_Native(25209): Instance out Init
 = 21

 07-02 19:52:22.186: INFO/Hanzi2Pinyin_Native(25209): InitLib out

 07-02 19:52:22.467: DEBUG/dalvikvm(25209): GC_FOR_MALLOC freed 5960
 objects / 376104 bytes in 29ms

 07-02 19:52:22.815: DEBUG/IMS/Ims3GPP2SmsMessage(25209):
 IMSLogcreateFromPdu : calling parsePdu

 07-02 19:52:22.815: DEBUG/IMS/Ims3GPP2SmsMessage(25209): IMSLogpdu to
 parse :
 02100202070292A106A85A0008150003100730010610254E9D3A000306110702195220

 07-02 19:52:22.815: DEBUG/IMS/Ims3GPP2SmsMessage(25209):
 IMSLogparseAddress

 07-02 19:52:22.815: DEBUG/IMS/Ims3GPP2SmsMessage(25209): IMSLogaddress
 received :3233292992

 07-02 19:52:22.815: DEBUG/IMS/Ims3GPP2SmsMessage(25209): IMSLogbearer
 data received : 0003100730010610254E9D3A000306110702195220

 07-02 19:52:22.815: ERROR/bearer data(25209): bearer data obtained 1

 07-02 19:52:22.815: DEBUG/EMS(25209): messageType is 1 messageId is
 115 hasUserDataHeader is false

 07-02 19:52:22.858: DEBUG/IMS/Ims3GPP2SmsMessage(25209):
 IMSLogcreateFromPdu : calling parsePdu

 thanks!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: SMS -Sending

2011-04-24 Thread Chambras
Did you add the permission in your manifest file
What error do you see in the logcat?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: SMS -Sending

2011-04-24 Thread kaushik p
Hi ,

 thanks for the reply , i am very new to android  . I have put the
permission in the manifest file uses-permission
android:name=android.permission.SEND_SMS /.

I am not getting any errors the application is not responding and i have to
force stop it .
and what is logcat ?

On Mon, Apr 25, 2011 at 7:18 AM, Chambras marcech...@gmail.com wrote:

 Did you add the permission in your manifest file
 What error do you see in the logcat?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
ThanksRegards
Kaushik Pendurthi

http://kaushikpendurthi.blogspot.com/

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: SMS -Sending

2011-04-24 Thread Chambras
you can connect to your emulator or device using adb shell and from there 
you can see the log file and see what is the error
here you can find more documentation on this topic
http://developer.android.com/guide/developing/tools/adb.html

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: SMS sending through HTC Desire

2011-01-04 Thread Jawwad Farooq
Yes I am calling from another phone on my development phone ...



On Dec 31 2010, 9:05 pm, TreKing treking...@gmail.com wrote:
 On Thu, Dec 30, 2010 at 2:22 AM, Jawwad Farooq jawwad.far...@gmail.comwrote:

  I make a call to my number and got the busy tone.

 Please tell me you mean you used a different phone to call your development
 phone ... because if you're calling your development phone with your
 development phone ... well ...

 ---­--
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: SMS sending through HTC Desire

2011-01-04 Thread Jawwad Farooq
No, not about voicemail ... I am talking about simple phone call

On Dec 31 2010, 10:02 pm, XiaoXiong Weng ad...@littlebearz.com
wrote:
 Wouldn't that just goto the voicemail?

 Erh, when I send text to myself it works J

 From: android-developers@googlegroups.com
 [mailto:android-develop...@googlegroups.com] On Behalf Of TreKing
 Sent: Friday, December 31, 2010 11:06 AM
 To: android-developers@googlegroups.com
 Subject: Re: [android-developers] SMS sending through HTC Desire

 On Thu, Dec 30, 2010 at 2:22 AM, Jawwad Farooq jawwad.far...@gmail.com
 wrote:

 I make a call to my number and got the busy tone.

 Please tell me you mean you used a different phone to call your development
 phone ... because if you're calling your development phone with your
 development phone ... well ...

 ---­-
 -
 TreKing http://sites.google.com/site/rezmobileapps/treking  - Chicago
 transit tracking app for Android-powered devices

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: SMS Receipt Notification

2010-12-30 Thread Ian
No takers for this yet.

I see that we used to be able to send PDU data directly - which may
have given me a route to achieve this, but this has been removed. Is
there a security issue here?

What I am trying to achieve is to get my application to send an
'important' email for which my application requires confirmation
receipt - without getting the user to turn it on manually.

Any other ideas?

Many Thanks
Ian Hunter

On Dec 27, 2:26 pm, Ian ian.fawcett.hun...@gmail.com wrote:
 Hi Folks,

 It would be really good if there was a way to programmatically turn 
 onSMSreceiptnotificationbefore sending anSMS(again
 programatically).

 I couldn't find this - anybody know how?

 Many Thanks
 Ian Hunter

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: SMS PDU Behaviour

2010-12-03 Thread nithya nataraj
it internally aggregates the 160 + 40 characters and
   sends out a single broadcast?


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: SMS PDU Behaviour

2010-12-02 Thread Tez
any ideas?

On Dec 1, 7:49 pm, Tez earlencefe...@gmail.com wrote:
 Sms's have a max length of 160 characters. Assuming a sender sent an
 sms with length 200 chars, does the system send out 2 SMS_RECEIVED
 broadcasts? or it internally aggregates the 160 + 40 characters and
 sends out a single broadcast?

 Cheers,
 Earlence

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: sms uri

2010-10-15 Thread Abava
that was  my question exactly. Do you know something about their
plans? 2.2?

Though the SMS app has a content
 provider which you can use.
even from the web page?

On 14 окт, 13:28, Kumar Bibek coomar@gmail.com wrote:
 It's not supported officially yet. Though the SMS app has a content
 provider which you can use. Search for a few samples, and you will
 find details regarding the content provider. Or you can pull out the
 related DB from the emulator and see the column names and table
 names...

 On Oct 13, 2:54 am, Abava dnam...@gmail.com wrote:

  and what is the current state for SMS URI support? E.g. the following
  links

  sms:?body=some_text
  sms:+some_phone?body=some_text

  do not work

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: sms uri

2010-10-15 Thread Kumar Bibek
I don't know about their plans. :)

On Fri, Oct 15, 2010 at 5:26 PM, Abava dnam...@gmail.com wrote:

 that was  my question exactly. Do you know something about their
 plans? 2.2?

 Though the SMS app has a content
  provider which you can use.
 even from the web page?

 On 14 окт, 13:28, Kumar Bibek coomar@gmail.com wrote:
  It's not supported officially yet. Though the SMS app has a content
  provider which you can use. Search for a few samples, and you will
  find details regarding the content provider. Or you can pull out the
  related DB from the emulator and see the column names and table
  names...
 
  On Oct 13, 2:54 am, Abava dnam...@gmail.com wrote:
 
   and what is the current state for SMS URI support? E.g. the following
   links
 
   sms:?body=some_text
   sms:+some_phone?body=some_text
 
   do not work

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: sms uri

2010-10-14 Thread Kumar Bibek
It's not supported officially yet. Though the SMS app has a content
provider which you can use. Search for a few samples, and you will
find details regarding the content provider. Or you can pull out the
related DB from the emulator and see the column names and table
names...

On Oct 13, 2:54 am, Abava dnam...@gmail.com wrote:
 and what is the current state for SMS URI support? E.g. the following
 links

 sms:?body=some_text
 sms:+some_phone?body=some_text

 do not work

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Sms hiding and deletion

2010-07-23 Thread Andrea Rota
I am working on the same topic. Actually I am not able to do it, but I
found that a developer has already done it.

Check for SMS Guard on the market. I tried to get in touch with the
developer, but he hasn't answered yet.

On 8 Lug, 20:08, Usama usama...@gmail.com wrote:
 i am currently making an application in which i require to delete ansms. How 
 do i go about it.
 Also I may need to hide asmsi.e not visible in the inbox but i may
 choose to unhide it later. How do i do that ?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: SMS database access

2010-06-03 Thread Mike dg
There are undocumented content providers that allow access to SMS
databases. However they are subject to change, and can, and do differ
between devices.

On Jun 3, 10:41 am, Nando Android nando.andr...@gmail.com wrote:
 Hello all,

 I believe the Java API does not give full access to the SMS database and
 other databases.

 Is there any way to have root access to some of those databases such as SMS
 and phone settings so that I can fetch some information out of it?

 Thanks

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: SMS database access

2010-06-03 Thread Nando Android
What does allow for access to SMS regardless? Would that require program the
underlining SDK instead of doing it via the Java API?

I would like to have an agent on the phone that has access to that SMS
database.

Is it possible to do so?

Thanks.

On Thu, Jun 3, 2010 at 8:58 AM, Mike dg vinb...@gmail.com wrote:

 There are undocumented content providers that allow access to SMS
 databases. However they are subject to change, and can, and do differ
 between devices.

 On Jun 3, 10:41 am, Nando Android nando.andr...@gmail.com wrote:
  Hello all,
 
  I believe the Java API does not give full access to the SMS database and
  other databases.
 
  Is there any way to have root access to some of those databases such as
 SMS
  and phone settings so that I can fetch some information out of it?
 
  Thanks

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: SMS text messages and data messages

2010-04-16 Thread Shih-Peng
There is a significant bug of the data SMS functionality on the
released versions of SDKs. But same code might work fine on real
device, like HTC G1 and HTC hero.


On 4月16日, 上午3時48分, 64 ghaib...@gmail.com wrote:
 HEEELP 

 Can anyone explain how to send sms text messages on a specific
 application port (including java and xml code) ??

 If it's impossible then plz show at least how to send  receive sms
 data message successfully (java  xml) on android emulator (and not G1
 or others...).

 Thx.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: SMS

2010-03-24 Thread Ozymandias
SMS_RECEIVED might point you in the right direction.

On Mar 24, 1:23 am, irfan irfan989...@googlemail.com wrote:
 Hello all
 I am trying to make an application in android that can intercept an
 incomming sms. I then want to parse it and then trigger certain events
 according to certail header present in that sms or text message. Can
 any one help me regarding this as i am a very beginner in android
 development.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] Re: SMS BroadcastReceiver

2010-03-05 Thread weaselgrater
It's not.

On Mar 5, 10:07 am, Ne0 liamjamesalf...@googlemail.com wrote:
 Hi,

 I am writing my own sms receiver app and i want it to catch all the
 sms using a broadcast receiver. This on its own, is no problem, but i
 want to be able to stop the message being passed to the messaging app.
 Does anyone know if this is this possible?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: SMS ringtone

2010-03-04 Thread abdelmonim
Hi there,

I just found one solution:
I have to implement my own SMS client and play my tone when I recieve
a SMS but it's heavy
If anyone has another idea, please share with me

Thanks

On 2 mar, 11:55, abdelmonim abetti.abdelmo...@gmail.com wrote:
 Can anyone help me?
 Thanks

 On 1 mar, 16:24, abdelmonim abetti abetti.abdelmo...@gmail.com
 wrote:



  Hi,

  I want to change SMS ringtone programatically from a raw resource  but I
  don't find any example to do it.

  Thanks
  Regards

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: SMS Interception

2009-12-07 Thread Dexter#39;s Brain
Hi Raj,

This is not possible, since this SMS broadcast is an unordered
broadcast. So you can't intercept it, and prevent the broadcast to
reach the default SMS application.


Thanks,
Kumar Bibek
http://tech-droid.blogspot.com

On Dec 3, 9:03 pm, Raj rajesh.kamin...@gmail.com wrote:
 Hi

 My app needs to intercept SMS messages but the problem is that the SMS
 are intercepted while my App is active and running.   Otherwise, the
 SMS messages are delivered to the SMS app only.

 How do you configure the Android Manifest file to let the system send
 certain SMS messages to be send to a particular App.   Say.. all
 messages matching certain attribute with in SMS like.. mime-type to be
 send to my App.

 Thanks
 Raj

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: SMS Interception

2009-12-07 Thread Raj
can we register a URI scheme just like the iphone SDK so as to open
the App.

Like  for example:   myapp://  is registered with my app and I should
be able to start my
app when SMS content contains the myapp:// link embedded.

Thanks for the answer

Raj

On Dec 7, 6:58 am, Dexter#39;s Brain coomar@gmail.com wrote:
 Hi Raj,

 This is not possible, since thisSMSbroadcast is an unordered
 broadcast. So you can't intercept it, and prevent the broadcast to
 reach the defaultSMSapplication.

 Thanks,
 Kumar Bibekhttp://tech-droid.blogspot.com

 On Dec 3, 9:03 pm, Raj rajesh.kamin...@gmail.com wrote:

  Hi

  My app needs to interceptSMSmessages but the problem is that theSMS
  are intercepted while my App is active and running.   Otherwise, the
 SMSmessages are delivered to theSMSapp only.

  How do you configure the Android Manifest file to let the system send
  certainSMSmessages to be send to a particular App.   Say.. all
  messages matching certain attribute with inSMSlike.. mime-type to be
  send to my App.

  Thanks
  Raj

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: SMS Database with new Hero ROM

2009-09-24 Thread Mark Murphy

 I've developed an sms application. With the new Hero rom, the app
 doesen't work anymore. It seems as if the database has changed.

 I use the following approach to get the data I need:

 private String[] mProjection = new String[]
 {thread_id,address,body,read,date,m_type,type};
 private Uri mUri = Uri.parse(content://mms-sms/conversations);

 Cursor smsCursor= context.getContentResolver().query
 (mUri,mProjection,null, null,DATE DESC);

 This code now suddenly crashes on HTC Hero phones, complaining about
 missing tables (thread_id for instance).

 How can I fix this? Where do I get additional information about new
 db design? And more generally: How in gods name am I supposed to
 handle different behaviour on different phones when I develop my apps
 on the standard SDK???

Do you have any evidence that the SMS database is part of Android's public
API?

If it is not -- and it does not seem to appear in android.provider, where
the officially-supported providers reside -- then you will run into
problems like this. Any device manufacturer is welcome to replace the
built-in applications, including SMS.

Solving this may not be possible, unless you can do queries with wildcards
on the content provider (never tried that) and can therefore inspect at
least the column names that way. Even then, that implies that you can
learn the schemas for all devices that change the original schema and can
adapt your application to each.

This is not significantly different than building an application that
assumes the existence of Outlook that then crashes when the user only has
Outlook Express, Mozilla Thunderbird, or some other email client.

If there isn't an issue already, you might consider putting an issue in
http://b.android.com, asking for a common SMS store to become part of the
official API (again, assuming it is not official already).

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



Re :Re: [android-developers] Re: SMS Database with new Hero ROM

2009-09-24 Thread markus etter
Subject:
Re: [android-developers] Re: SMS Database with new Hero ROMFrom:
Markus Etter met...@talionis.netDate:
Thu, 24 Sep 2009 20:33:58 +0200To:
android-developers@googlegroups.com

Mark Murphy wrote:

I've developed an sms application. With the new Hero rom, the app
doesen't work anymore. It seems as if the database has changed.

I use the following approach to get the data I need:

private String[] mProjection = new String[]
{thread_id,address,body,read,date,m_type,type};
private Uri mUri = Uri.parse(content://mms-sms/conversations);

Cursor smsCursor= context.getContentResolver().query
(mUri,mProjection,null, null,DATE DESC);

This code now suddenly crashes on HTC Hero phones, complaining about
missing tables (thread_id for instance).

How can I fix this? Where do I get additional information about new
db design? And more generally: How in gods name am I supposed to
handle different behaviour on different phones when I develop my apps
on the standard SDK???



Do you have any evidence that the SMS database is part of Android's public
API?

If it is not -- and it does not seem to appear in android.provider, where
the officially-supported providers reside -- then you will run into
problems like this. Any device manufacturer is welcome to replace the
built-in applications, including SMS.

Solving this may not be possible, unless you can do queries with wildcards
on the content provider (never tried that) and can therefore inspect at
least the column names that way. Even then, that implies that you can
learn the schemas for all devices that change the original schema and can
adapt your application to each.

This is not significantly different than building an application that
assumes the existence of Outlook that then crashes when the user only has
Outlook Express, Mozilla Thunderbird, or some other email client.

If there isn't an issue already, you might consider putting an issue in
http://b.android.com, asking for a common SMS store to become part of the
official API (again, assuming it is not official already).



Hello Mark

Thank you for your quick and enlightening reply. It wasn't clear to me that
something I can access using the standard SDK might actually not be part of
the public API. If it actually is not it would completely prevent the
development of alot of SMS applications.
There actually IS an open issue for this located here:
http://code.google.com/p/android/issues/detail?id=914q=smscolspec=ID%20Type%20Status%20Owner%20Summary%20Stars

However there still are SMS apps that do not seem to be influenced by this
problem; ergo I assume there's some dirty way around?


Cheers, Markus

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



Re: Re :Re: [android-developers] Re: SMS Database with new Hero ROM

2009-09-24 Thread Mark Murphy

 It wasn't clear to me
 that
 something I can access using the standard SDK might actually not be part
 of
 the public API.

Think about it: pagefile.sys is accessible using the Windows SDK, yet I
rather doubt Microsoft would consider manipulating that file to be part of
its public API.

The core Android team's approach is pretty much this: if it is officially
documented, it is part of the public API.

The only SMS-related thing I can think of off the top of my head that is
officially documented are the Intents for receiving messages and
ACTION_SEND for sending anything (with SMS being an option via
createChooser()).

 If it actually is not it would completely prevent the
 development of alot of SMS applications.

Agreed. That's why I point out, where I see the opportunity, that anything
you do with the SMS content provider is risky. Your Hero experience adds
weight to my concern.

Now, it is eminently possible for the Android/SMS community to attempt to
create its own compatibility later, pooling efforts to reverse-engineer
other built-in SMS clients. That is still risky, but it's a bit of a
pooled risk, like building a compatibility layer on top of device drivers.

 There actually IS an open issue for this located here:
 http://code.google.com/p/android/issues/detail?id=914q=smscolspec=ID%20Type%20Status%20Owner%20Summary%20Stars

I have starred it, for what that's worth. IMHO, it would be beneficial to
the ecosystem if there was a solid core that was open and documented, even
if some vendors elect to add stuff at the margins, with some having mighty
wide margins.

 However there still are SMS apps that do not seem to be influenced by this
 problem; ergo I assume there's some dirty way around?

Possibly. Or, they just haven't been run on the Hero yet -- that device is
pretty new. Or, they've already created a portability layer and adapted
it, somehow, to the Hero.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: SMS intent does not fill in number

2009-09-17 Thread Jack Ha

Try:

sendIntent.putExtra(address, 123456);

--
Jack Ha
Open Source Development Center
・T・ ・ ・Mobile・ stick together
The coverage you need at the price you want

The views, opinions and statements in this email are those of
the author solely in their individual capacity, and do not
necessarily represent those of T-Mobile USA, Inc.


On Sep 17, 4:33 am, Gustav Mauer gus...@mauer.co.za wrote:
 I want to send an SMS from an application, but without needing the SMS
 permission, using an intent. This way the user can also decide if he/
 she really wants to proceed to send the SMS. The code looks as
 follows:

 Uri smsToUri = Uri.parse(smsto:123456);
 Intent sendIntent = new Intent(Intent.ACTION_VIEW, smsToUri);
 sendIntent.putExtra(sms_body, Hello dear world);
 sendIntent.setType(vnd.android-dir/mms-sms);
 startActivity(sendIntent);

 However, when the SMS screen now shows, the number is not filled in.
 The SMS body is however filled in. This happens on the emulator and on
 a phone. What am I doing wrong please?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: SMS intent does not fill in number

2009-09-17 Thread Gustav Mauer

Thank you very much. That works great.

On Sep 17, 5:28 pm, Jack Ha jack...@t-mobile.com wrote:
 Try:

     sendIntent.putExtra(address, 123456);

 --
 Jack Ha
 Open Source Development Center
 ・T・ ・ ・Mobile・ stick together
 The coverage you need at the price you want

 The views, opinions and statements in this email are those of
 the author solely in their individual capacity, and do not
 necessarily represent those of T-Mobile USA, Inc.

 On Sep 17, 4:33 am, Gustav Mauer gus...@mauer.co.za wrote:

  I want to send an SMS from an application, but without needing the SMS
  permission, using an intent. This way the user can also decide if he/
  she really wants to proceed to send the SMS. The code looks as
  follows:

  Uri smsToUri = Uri.parse(smsto:123456);
  Intent sendIntent = new Intent(Intent.ACTION_VIEW, smsToUri);
  sendIntent.putExtra(sms_body, Hello dear world);
  sendIntent.setType(vnd.android-dir/mms-sms);
  startActivity(sendIntent);

  However, when the SMS screen now shows, the number is not filled in.
  The SMS body is however filled in. This happens on the emulator and on
  a phone. What am I doing wrong please?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: SMS Notification

2009-08-18 Thread androiduser mobile

I would like to send and receive the SMS in the same emulator using an
app.

Thanks.

On Aug 18, 11:24 am, androiduser mobile androiduser.mob...@gmail.com
wrote:
 Hello all,

 I am writing an app to generate an SMS notification in the
 notification bar. I would like to run this app in an emulator(only one
 instance).
 I am using the sendTextMessage(devicePhoneNo,null,dummy message,
 sentPI,deliveredPI) where devicePhoneNo is like the fake number
 1215135. I am able to see the SMS Sent message but unable to see
 anything in the notification bar.

 I do have SMS_SEND and SMS_RECEIVE in my manifest file.

 Please let me know if I am missing anything here. Your help is highly
 appreciated.

 Thanks,
 Android user
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Sms Broadcasts and Logs

2009-06-29 Thread fidji-florian

+1

I want to know when a sms to be send. (I want to count how many sms i
send in a determinate time)

Merci,

Flo

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: SMS Counter

2009-05-11 Thread Marco Nelissen
On Mon, May 11, 2009 at 11:55 AM, stevenroose stevenro...@gmail.com wrote:


 Hi,

 I suggestion for Android I would like to do is a build-in SMS Counter.
 When having plans that allow you to do a specified amount of SMS
 messages in a month, an SMS Counter would be very useful, and I can't
 imagine writing code for it could be that hard.


Why not submit a patch then?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: SMS in android

2009-03-31 Thread mark . kahrl


   You can receive an SMS mesage on the emulator by using
emulator control, you'll need an actual device to fully test sending
sms, the behavior is different on the emulator.

 M

On Mar 30, 10:05 am, aglagla lad...@gmail.com wrote:
 Hello World!
 I'm a beginner in android platform.I want to know how I can send and
 receive a sms with android emulator.I have followed example given in
 this link:http://mobiforge.com/developing/story/sms-messaging-android
 But I can't really send and launch the second emulator for receiving
 an incoming sms.

 Thanks for your help.

 aglagla
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: SMS encoding?? how can i receive Chinese SMS???

2009-03-26 Thread Jove Chia
does it related to encoding or font?
how you can send sms by eclipse?

2009/3/26 SinFrancis kyowxf2...@gmail.com


 I wanna receive Chinese SMS ,
 i use eclipse send Chinese SMS to emulator, but the message all like
 this ?,
 if the English SMS, not prob.

 I wanna know the encoding of SMS in Android.
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: SMS encoding?? how can i receive Chinese SMS???

2009-03-26 Thread 王心锋
yes, i send Chinese sms use eclipse, but receive data not correct.
in source code , the data encoding is USC2,
when i send by eclipse , convert data USC2 to GBK, also not correct.


2009/3/26 Jove Chia jove.c...@gmail.com

 does it related to encoding or font?
 how you can send sms by eclipse?

 2009/3/26 SinFrancis kyowxf2...@gmail.com


 I wanna receive Chinese SMS ,
 i use eclipse send Chinese SMS to emulator, but the message all like
 this ?,
 if the English SMS, not prob.

 I wanna know the encoding of SMS in Android.



 



-- 
Best Regards!


王心锋
Software Engineer/AndroidOS Creator
Email: kyowxf2...@gmail.com| Web: http://androidos.cc| Community:
http://androidos.cc/bbs
Tel:0551-2341751 Mobile: 13485512230
Address: 34#503,7#602 ShuNanTingYuan, WangJiang Road,HeFei City,An Hui
Province

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: SMS sync with Gmail or something else

2009-02-19 Thread nEx.Software

http://code.google.com/p/android-sms/

On Feb 19, 8:45 pm, VA vinay.avas...@gmail.com wrote:
 I am looking for a functionality where the SMS on the phone can be
 synced to cloud (preferably to GMail, like Chat). Is there work going
 on in that area. Is there a SMS like service existing to which I can
 perform sync. I understand that GMail had launched a SMS functionality
 for US users sometime back. Is there an API to access to that?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: SMS Inbox: 2008's toughest problem ( At least for me)

2009-01-01 Thread Timothy DeWees

I ran into something similar and I needed to tell the manifest to use
the right permission.  Check your android manifest and make try
something like this:

?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=com.app.you.package
  android:versionCode=1
  android:versionName=1.0.0
uses-permission android:name=android.permission.READ_SMS /
!-- Your other stuff goes here --
/manifest

Here is a good list of the app permissions:
http://code.google.com/android/reference/android/Manifest.permission.html

You definitely want to try debugging and don't forget to use
android.util.Log

On Dec 31 2008, 2:52 pm, moazzamk moazz...@gmail.com wrote:
 You can generally catch the errors in your code by putting it in try
 and catch block. Here's a tutorial on the whole process of debugging
 in Android :http://moazzam-khan.com/blog/?p=41

 - Moazzam

 On Dec 31, 7:18 am, linker lv linke...@gmail.com wrote:

  Uri uri = Uri.parse(content://sms/undelivered);

              // Perform a managed query. The Activity will handle closing and
  requerying the cursor
              // when needed.
              Cursor cursor = getContentResolver().query(uri, null, null,
  null,null);
              startManagingCursor(cursor);
              int[] names = new int[]{R.id.row_entry};
              String[] columns = new String[]{body};
              // Used to map notes entries from the database to views
              SimpleCursorAdapter adapter = new SimpleCursorAdapter(this,
  R.layout.main, cursor,
                      columns, names);
              setListAdapter(adapter);

  main.xml
  ?xml version=1.0 encoding=utf-8?
  LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
      android:orientation=vertical
      android:layout_width=fill_parent
      android:layout_height=fill_parent
      
  TextView
      android:layout_width=fill_parent
      android:layout_height=wrap_content
      android:text=@string/hello
      android:id=@+id/row_entry/

  /LinearLayout

  *make sure that there is data in content://sms/undelivered.*
  public String strUriInbox = content://sms/inbox;//SMS_INBOX:1
      public String strUriFailed = content://sms/failed;//SMS_FAILED:2
      public String strUriQueued = content://sms/queued;//SMS_QUEUED:3
      public String strUriSent = content://sms/sent;//SMS_SENT:4
      public String strUriDraft = content://sms/draft;//SMS_DRAFT:5
      public String strUriOutbox = content://sms/outbox;//SMS_OUTBOX:6
      public String strUriUndelivered =
  content://sms/undelivered;//SMS_UNDELIVERED
      public String strUriAll = content://sms/all;//SMS_ALL
      public String strUriConversations = content://sms/conversations;//you
  can delete one conversation by thread_id
  content://sms//you can delete one message by _id

  2008/12/31 linker lv linke...@gmail.com

   you can use try catch, show your log.
   also, cursor should be close. have a try.

   2008/12/31 ipeg.stud...@gmail.com

   ###
   Please help me access the list of sms in the inbox. I am using this
   code, please let me know what is wrong, it always gives a n unexpected
   error popup in the emulator.

   I used a similar code for accessing the contacts list ( People.NAME
   etc ), it worked fine. However, I cannot do it for SMS inbox.

   Thanks in advance and happy new year!
   ###
   package org.anddev.android.hello;

   import android.app.ListActivity;
   import android.database.Cursor;
   import android.os.Bundle;
   import android.provider.Telephony.Sms;
   import android.widget.ListAdapter;
   import android.widget.SimpleCursorAdapter;

   public class HelloAndroid extends ListActivity {

       private ListAdapter mAdapter;

        /** Called when the activity is first created. */
     �...@override
      public void onCreate(Bundle icicle) {
          super.onCreate(icicle);
          Cursor c = getContentResolver().query(Sms.Inbox.CONTENT_URI,
   null, null, null, null);//.query(Sms.CONTENT_URI, null, null, null,
   null);
          startManagingCursor(c);
          String[] columns = new String[]{Sms.Inbox.READ};
          int[] names = new int[]{R.id.row_entry};
          mAdapter = new SimpleCursorAdapter(this, R.layout.main, c,
   columns, names);

          this.setListAdapter(mAdapter);
      }

    }
   ###

   Here is the main.xml code

   ?xml version=1.0 encoding=utf-8?
   LinearLayout xmlns:android=http://schemas.android.com/apk/res/
   android
      android:orientation=horizontal
      android:layout_width=fill_parent
      android:layout_height=wrap_content

   TextView
      android:layout_width=wrap_content
      android:layout_height=wrap_content
      android:text=Name: 
      /
   TextView
      android:id=@+id/row_entry
      

[android-developers] Re: SMS Inbox: 2008's toughest problem ( At least for me)

2008-12-31 Thread linker lv
you can use try catch, show your log.
also, cursor should be close. have a try.

2008/12/31 ipeg.stud...@gmail.com


 ###
 Please help me access the list of sms in the inbox. I am using this
 code, please let me know what is wrong, it always gives a n unexpected
 error popup in the emulator.


 I used a similar code for accessing the contacts list ( People.NAME
 etc ), it worked fine. However, I cannot do it for SMS inbox.

 Thanks in advance and happy new year!
 ###
 package org.anddev.android.hello;

 import android.app.ListActivity;
 import android.database.Cursor;
 import android.os.Bundle;
 import android.provider.Telephony.Sms;
 import android.widget.ListAdapter;
 import android.widget.SimpleCursorAdapter;

 public class HelloAndroid extends ListActivity {

 private ListAdapter mAdapter;

  /** Called when the activity is first created. */
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
Cursor c = getContentResolver().query(Sms.Inbox.CONTENT_URI,
 null, null, null, null);//.query(Sms.CONTENT_URI, null, null, null,
 null);
startManagingCursor(c);
String[] columns = new String[]{Sms.Inbox.READ};
int[] names = new int[]{R.id.row_entry};
mAdapter = new SimpleCursorAdapter(this, R.layout.main, c,
 columns, names);

this.setListAdapter(mAdapter);
}

  }
 ###

 Here is the main.xml code

 ?xml version=1.0 encoding=utf-8?
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/
 android
android:orientation=horizontal
android:layout_width=fill_parent
android:layout_height=wrap_content

 TextView
android:layout_width=wrap_content
android:layout_height=wrap_content
android:text=Name: 
/
 TextView
android:id=@+id/row_entry
android:layout_width=wrap_content
android:layout_height=wrap_content
/
 /LinearLayout

 #
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: SMS Inbox: 2008's toughest problem ( At least for me)

2008-12-31 Thread linker lv
Uri uri = Uri.parse(content://sms/undelivered);

// Perform a managed query. The Activity will handle closing and
requerying the cursor
// when needed.
Cursor cursor = getContentResolver().query(uri, null, null,
null,null);
startManagingCursor(cursor);
int[] names = new int[]{R.id.row_entry};
String[] columns = new String[]{body};
// Used to map notes entries from the database to views
SimpleCursorAdapter adapter = new SimpleCursorAdapter(this,
R.layout.main, cursor,
columns, names);
setListAdapter(adapter);

main.xml
?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent

TextView
android:layout_width=fill_parent
android:layout_height=wrap_content
android:text=@string/hello
android:id=@+id/row_entry/

/LinearLayout

*make sure that there is data in content://sms/undelivered.*
public String strUriInbox = content://sms/inbox;//SMS_INBOX:1
public String strUriFailed = content://sms/failed;//SMS_FAILED:2
public String strUriQueued = content://sms/queued;//SMS_QUEUED:3
public String strUriSent = content://sms/sent;//SMS_SENT:4
public String strUriDraft = content://sms/draft;//SMS_DRAFT:5
public String strUriOutbox = content://sms/outbox;//SMS_OUTBOX:6
public String strUriUndelivered =
content://sms/undelivered;//SMS_UNDELIVERED
public String strUriAll = content://sms/all;//SMS_ALL
public String strUriConversations = content://sms/conversations;//you
can delete one conversation by thread_id
content://sms//you can delete one message by _id

2008/12/31 linker lv linke...@gmail.com

 you can use try catch, show your log.
 also, cursor should be close. have a try.

 2008/12/31 ipeg.stud...@gmail.com


 ###
 Please help me access the list of sms in the inbox. I am using this
 code, please let me know what is wrong, it always gives a n unexpected
 error popup in the emulator.


 I used a similar code for accessing the contacts list ( People.NAME
 etc ), it worked fine. However, I cannot do it for SMS inbox.

 Thanks in advance and happy new year!
 ###
 package org.anddev.android.hello;

 import android.app.ListActivity;
 import android.database.Cursor;
 import android.os.Bundle;
 import android.provider.Telephony.Sms;
 import android.widget.ListAdapter;
 import android.widget.SimpleCursorAdapter;

 public class HelloAndroid extends ListActivity {

 private ListAdapter mAdapter;

  /** Called when the activity is first created. */
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
Cursor c = getContentResolver().query(Sms.Inbox.CONTENT_URI,
 null, null, null, null);//.query(Sms.CONTENT_URI, null, null, null,
 null);
startManagingCursor(c);
String[] columns = new String[]{Sms.Inbox.READ};
int[] names = new int[]{R.id.row_entry};
mAdapter = new SimpleCursorAdapter(this, R.layout.main, c,
 columns, names);

this.setListAdapter(mAdapter);
}

  }
 ###

 Here is the main.xml code

 ?xml version=1.0 encoding=utf-8?
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/
 android
android:orientation=horizontal
android:layout_width=fill_parent
android:layout_height=wrap_content

 TextView
android:layout_width=wrap_content
android:layout_height=wrap_content
android:text=Name: 
/
 TextView
android:id=@+id/row_entry
android:layout_width=wrap_content
android:layout_height=wrap_content
/
 /LinearLayout

 #
 



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: SMS entry

2008-11-29 Thread Kingorcus

anyone ??

On Nov 28, 5:33 pm, Kingorcus [EMAIL PROTECTED] wrote:
 I am trying to insert a new SMS entry in the Database using the
 undocumented SMS URI

 I am successful in accessing the sms table, but not the threads table

 anyone knows how to do it

 or what is the content name for the threads table (URI)

 thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Sms with Intent

2008-11-11 Thread for android
Any help??

On Tue, Nov 11, 2008 at 11:50 AM, for android [EMAIL PROTECTED] wrote:

 I need to send an SMS with an Intent. whats the best way to test this.In
 the emulator I can only send an SMS,but not an SMS with an intent.


 Whats the best way to accomplish this testing?

 Thanks



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: sms messaging questions

2008-10-01 Thread Joey Yandle

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Please don't double post.  It's obnoxious, especially on a high volume
list like this one.  Mailing lists often don't send your message for an
indeterminate period of time, so just because you don't see it
immediately doesn't mean that it was lost.

 I'm just installing the sdk now but I have a few questions before I go
 any further.
 
 Is it possible to change the functionality of the built-in text
 messaging application.
 

No.  You can, however, listen for incoming SMS, and read stored SMS.

 Not just to replace it, but to actually see the code that it uses and
 alter it with an app.
 

What do you mean by actually see the code?

The code for the messaging app is in the com.android.mms package, but
that code is not available in the SDK.  So you cannot subclass it, or do
any other kind of alterations.

It is possible to *call* the messaging application using an Intent with
an explicit componentName.  Run your emulator with -logcat, and when you
launch the messaging program, you will see the class names for the
various activities.



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI4/KRNig/07RbnEsRAn3eAKDBlZyCpK4y4zodKK0wJyKJCzbRlACfT2w8
5XqXWaMaYUrzG6IGRC64wcA=
=4Gez
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: SMS Intents Missing From 1.0?

2008-09-25 Thread Reto Meier

The helper methods have disappeared but you can still listen for the
Intent by using the String literal and extract the messages manually.

This thread has the details:
http://groups.google.co.uk/group/android-developers/browse_thread/thread/c51383cc8761ffd5#

Cheers
Reto


Professional Android Application Development
http://www.amazon.com/gp/product/0470344717?tag=interventione-20

On 25 Sep, 00:00, blim [EMAIL PROTECTED] wrote:
 Our application needs to be able to listen to incoming SMS messages
 but android.providers.Telephony.Sms.Intents class has been removed
 from 1.0.

 Does anybody know where this has been moved to or if we should be
 using something else?  I haven't been able to find anything on the
 issue or why it was removed after 0.9.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---