Re: [android-developers] Re: Receive SMS

2013-06-05 Thread Yaron Reinharts
Hi, Call abortBroadcast() if you don't want the message to appear in the built-in messaging application. http://developer.android.com/reference/android/content/BroadcastReceiver.html#abortBroadcast()

[android-developers] Re: Receive SMS

2013-06-04 Thread amro alfares
Hello Ehsan to receive from certain numbers , you have to do the following : 1- make a BroadcastReceiver for receiving SMS messages and declare it in the AndroidManifest.xml 2- in the onReceive(Context context, Intent intent) you take the incoming message by doing this Bundle bundle = inten

[android-developers] Re: receive sms application. need help.

2013-06-04 Thread amro alfares
Hello to start activity from a BroadcastReceiver in the onReceive(Context context, Intent intent) method do the following : Intent myIntent = new Intent(context, MyActivity.class); myIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(myIntent); Hope that Helps Regards On

[android-developers] Re: Receive SMS

2012-08-07 Thread Ehsan Sadeghi
it doesn't any solution for filter در دوشنبه 6 اوت 2012، ساعت 6:51:32 (UTC)، HOUSSEM ZAIER نوشته: > > > You have to filter all what you are receiving by the broadcast receiver. > http://www.tutos-android.com/broadcast-receiver-android > example of using the broadcast receiver. > Good luck --

[android-developers] Re: Receive SMS

2012-08-06 Thread HOUSSEM ZAIER
You have to filter all what you are receiving by the broadcast receiver. http://www.tutos-android.com/broadcast-receiver-android example of using the broadcast receiver. Good luck -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post

Re: [android-developers] Re: Receive sms

2012-08-02 Thread Fahrettin Ateş
Hi Ehsan, Answer is here : package com.android.Sms; import android.app.Activity; import android.app.PendingIntent; import android.app.ProgressDialog; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; impo

[android-developers] Re: Receive sms

2012-08-01 Thread Ehsan Sadeghi
How can I receive from certain numbers and only for them my app is started and how doesn't messages that app receive appear in the messaging built in? در دوشنبه 30 ژوئیهٔ 2012، ساعت 18:44:03 (UTC)، Ehsan Sadeghi نوشته: > > I write this code in manifest file : > android:minSdkVersion="8"

[android-developers] Re: receive sms application. need help.

2012-02-16 Thread Ali Chousein
Look at the following lines in your logcat: > com.android.project.smsapp.Receiver}: java.lang.ClassCastException: > com.android.project.smsapp.Receiver cannot be cast to > android.app.Activity Then, look at the following lines in your code: > Intent i = new Intent(this, Receiver.clss); > startAc

[android-developers] Re: receive sms application. need help.

2012-02-15 Thread jitesh adnani
added the permission, still no luck. this is my logcat: 02-16 09:11:11.367: D/AndroidRuntime(8446): Shutting down VM 02-16 09:11:11.367: W/dalvikvm(8446): threadid=1: thread exiting with uncaught exception (group=0x40a251f8) 02-16 09:11:11.371: E/AndroidRuntime(8446): FATAL EXCEPTION: main 02-16

[android-developers] Re: receive sms application. need help.

2012-02-15 Thread Marcel Arts
maybe you should have set one more permission: On Feb 15, 4:59 am, jitesh adnani wrote: > application starting and also knowing that a new sms has come. but > just then it shows that the application has stopped unexpectedly. -- You received this message because you are subscribed to the Goog

[android-developers] Re: receive sms application. need help.

2012-02-14 Thread jitesh adnani
application starting and also knowing that a new sms has come. but just then it shows that the application has stopped unexpectedly. -- 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@goo

[android-developers] Re: receive sms application. need help.

2012-02-14 Thread Marcel Arts
What is the problem to get over? On Feb 13, 8:22 pm, jitesh adnani wrote: > ive been stuck on some problem when trying to handle incoming sms > message and to toast them. have no idea how to get over the problem. > please help. > > this is my main java file - SmsApp.java > > package com.android.p

[android-developers] Re: Receive SMS on a specific port

2010-10-06 Thread VIP
are you sure that your reciever is correct? The specific port is coded in the Intent received by the receiver. a small example what i want to say: onReceive(, intent) { final String uri=intent.getDataString(); final String [] str = uri.split(":"); final int port = Integer.parseInt(str[str.l