Re: 回复: [android-beginners] How to send AT com mand in android?

2010-04-04 Thread jitendra kumar
Here modem is GSM/GPRS/EGPRS modem. The Radio Interface Layer (RIL) is the
interface between the modem and the Telephony framework in Android.

My main motive to disconnect the incoming call with out invoking native
application. I can disconnect incoming call using below AT command to mode.

*Hangup call +CHUP*

I just want to know that how to send AT command to modem without Phone
object?

Regards,
Jitendra Kumar

2010/4/4 DonFrench dcfre...@gmail.com

 What is this modem of which you speak?


 On Apr 3, 12:52 am, lhsxqsc hh4...@gmail.com wrote:
  right
 
  在 2010-4-3 下午1:37,jitendra kumar android.jiten...@gmail.com编写:
 
  Hi All,
 
  I want to send At command throug my application to modem. Can some one
  please let me know how to send AT command thr my application??
 
  *The ATResponseParser class parses part of the AT command syntax used*
  *to**communicate with the mobile radio hardware in a mobile handset.
  This
  ** is, in fact, a* * command syntax very much like the AT command syntax
  used by modems, a ** standard* * described in the 3GPP document number TS
  27.007 and related** specifications.*
 
  I ant to send below AT command to Mode.
  6.5 Hangup call +CHUPTable 13a: +CHUP action command syntax
 
  *Command*
 
  *Possible response(s)*
 
  +CHUP
 
 +CHUP=?
 
  Please help me.
 
  Regards,
  Jitendra Kumar
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Beginners group.
 
  NEW! Try asking and tagging your question on Stack Overflow athttp://
 stackoverflow.com/questions/tagged/android
 
  To unsubscribe from this group, send email to
  android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 android-beginners%2bunsubscr...@googlegroups.comandroid-beginners%252bunsubscr...@googlegroups.com
 
  For more options, visit this group athttp://
 groups.google.com/group/android-beginners?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

 To unsubscribe, reply using remove me as the subject.


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: How to block incoming call in Android?

2010-04-02 Thread jitendra kumar
mute the ringer is not a solution at all.

According to my finding , there are two way of blocking incoming call:

1) using Phone Object
2) using AT command to modem

--- for first approach i am not able to get Phone object. We need to find
out how can we get Phone object using below function call:

mPhone = PhoneFactory.getDefaultPhone();

I am able to build the project including above function call but while
executing the application i am getting below exception:

04-02 09:00:14.852: ERROR/AndroidRuntime(231): java.lang.RuntimeException:
Unable to start activity
ComponentInfo{com.android.CMdroid/com.android.CMdroid.CMdroid}:
java.lang.RuntimeException: PhoneFactory.getDefaultPhone must be called from
Looper thread.
 Why Exception???

public static void makeDefaultPhone(Context context)

Looks like when native phone application create default phone using above
API, at same time PhoneFactory class store thread ID of Phone applicaton .


   public static void makeDefaultPhone(Context context) {
synchronized(Phone.class) {
if (!sMadeDefaults) {
   * sLooper = Looper.myLooper();*
sContext = context;

if (sLooper == null) {
throw new RuntimeException(
PhoneFactory.makeDefaultPhone must be called from
Looper thread);
}
When other application call getDefaultPhone() to get Phone object, in that
case getDefaultPhone checks for phone thread ID which is store in variable
called * sLooper*.

public static Phone getDefaultPhone() {
if (sLooper != Looper.myLooper()) {
throw new RuntimeException(
PhoneFactory.getDefaultPhone must be called from Looper
thread);
}

This is the reason why we are getting exception when we call:

 mPhone = PhoneFactory.getDefaultPhone();


--- For 2nd approach we need to know how to send call disconnect command to
modem using AT command.

*The ATResponseParser class parses part of the AT command syntax used*
*to**communicate with the mobile radio hardware in a mobile handset.
This
** is, in fact, a* * command syntax very much like the AT command syntax
used by modems, a ** standard* * described in the 3GPP document number TS
27.007 and related** specifications.*

We need to find out how / what command pass to modem to disconnect the call.

Regards,
Jitendra Kumar


On Sat, Mar 27, 2010 at 10:53 PM, Sam Lowry sam.lo...@dotzyne.com wrote:

 jitendra kumar wrote:

   I want to develop one call control application on android. As we know
   android sdk does not provide any API which block incoming call due to
   security reasion.
 
   Is there any possiablity to block incoming call using android open
  source api;s?

 Did, you ever work this out?

 ~S


 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

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


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

To unsubscribe, reply using remove me as the subject.


[android-beginners] How to send AT command in android?

2010-04-02 Thread jitendra kumar
Hi All,

I want to send At command throug my application to modem. Can some one
please let me know how to send AT command thr my application??

*The ATResponseParser class parses part of the AT command syntax used*
*to**communicate with the mobile radio hardware in a mobile handset.
This
** is, in fact, a* * command syntax very much like the AT command syntax
used by modems, a ** standard* * described in the 3GPP document number TS
27.007 and related** specifications.*

I ant to send below AT command to Mode.
  6.5 Hangup call +CHUPTable 13a: +CHUP action command syntax

*Command*

*Possible response(s)*

+CHUP


   +CHUP=?




Please help me.

Regards,
Jitendra Kumar

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

To unsubscribe, reply using remove me as the subject.


[android-beginners] How to block incoming call in Android?

2010-03-16 Thread jitendra kumar
Hi All,

 I want to develop one call control application on android. As we know
 android sdk does not provide any API which block incoming call due to
 security reasion.

 Is there any possiablity to block incoming call using android open
source api;s?

 Please help me.

 Thanks,
Jitendra Kumar

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en