none
find a mobile number RRS feed

  • Question

  • Anyone know a program or some code to recognize a phone numbers of other mobile phones that are connected to the same antenna? is not for malicious code but there is a number that goes to bother me and my mobile operator does not provide me the name of the holder of the contract number so I wanted to see if this number is in the areas that I still frequent.

     

    Thanks


    TcoUpLoad (Vb6 and VbNet | starting learning C#)
    Sunday, November 28, 2010 12:51 PM

Answers

  • Well,here is something i do for the app.

     Initialized the SystemState(PhoneIncoming……) in the Form method area.

    SystemState state = new SystemState(SystemProperty.PhoneIncomingCallerNumber);
    SystemState SS = new SystemState(SystemProperty.PhoneIncomingCall);
    SS.Changed += new ChangeEventHandler(SS_Changed);
    state.Changed += new ChangeEventHandler(state_Changed);
    

     And then,about the SS Event(it could drop the call which you don`t want to answer)

     void SS_Changed(object sender, ChangeEventArgs args)
        {
          try
          {
            if (DropCall.BannedList.Exists((s) =>
            {
              s = number;
              return (from t in DropCall.BannedList
                  where t.Equals(s)
                  select t).Count() == 0 ? false : true;
            }))
              DropCall.Drop();
          }
          catch (Exception ex)
          {
            MessageBox.Show(ex.Message);
          }
    
        }
    

    About DropCall.Drop() Function, its code is here:

     public static class DropCall
      {
        #region private field
        //VK Value of Key End--VK_F4
        private const int VK_F4 = 0x73;
        private const int KEYEVENTF_KEYUP = 0x0002;
        #endregion
    
        #region public fiield
        //The blacksheet list
        public static List<String> BannedList = new List<String>();
    
        /// <summary>
        /// simulate a button click
       /// </summary>
        public static void Drop()
        {
          MyRef.keybd_event(VK_F4, 0, 0, 0);
          MyRef.keybd_event(VK_F4, 0, KEYEVENTF_KEYUP, 0);
        }
        #endregion
    
        
      }
    
      #region Invoke Class
      public static class MyRef
      {
        //keybd_event API For the key which want to click
       [DllImport("coredll.dll")]
        public static extern void keybd_event(
          byte bVk,
          byte bScan,
          int dwFlags,
        int dwExtraInfo);
      }
      #endregion
    

    But, how to get the Incoming Phone number?just look here the state_Changed event:

     void state_Changed(object sender, ChangeEventArgs args)
        {
          try
          {
            if (args.NewValue != null)
            {
              number = (String)args.NewValue;
              //MessageBox.Show(number);
            }
          }
          catch (Exception ex) { MessageBox.Show(ex.Message); }
        }
    

    OK,now,we can intercept the PhoneIncoming Stata by the app,and capture the Incoming Number.I hope these codes can help u.


    (wm,winform,visio)developer
    • Marked as answer by Bin-ze Zhao Thursday, December 2, 2010 6:34 AM
    Thursday, December 2, 2010 1:15 AM

All replies

  • No. The list of subscribers attached to a particular cell is never sent to the device, so there is no way for the device to get that information.

    -PaulH

    Monday, November 29, 2010 3:04 PM
  • Wow~that sounds not so good~~~

    maybe this is a way to solve this problem,call the police,and add this number to blacksheet~~~the operator can not provide you the info of this contract nmuber!

     

    Tuesday, November 30, 2010 3:16 AM
  • Good morning,

    And what about making such an application for mobile, like a blacklist? An application that receives the number of the call and checks whether it has any restrictions?

     

    someone has done something similar?


    TcoUpLoad (Vb6 and VbNet | starting learning C#)
    Tuesday, November 30, 2010 10:51 AM
  • Yeah~I just did this long long ago ,here is the Description about it ,but just in chinese,you can only download the code.

    I hope it can help u~

    http://www.cnblogs.com/longqi293/archive/2009/02/13/1390342.html (this is the summary)

    http://files.cnblogs.com/longqi293/NoCalls.rar (Here is the download)

     


    (wm,winform,visio)developer
    Wednesday, December 1, 2010 2:11 AM
  • Hi,

    I do not understand anything from that site to download and asks me user and pass and I do not have anything like that! I can make an application like that, but how do you do for the application to act when a call comes in?

     

    Thanks


    TcoUpLoad (Vb6 and VbNet | starting learning C#)
    Wednesday, December 1, 2010 10:40 PM
  • Well,here is something i do for the app.

     Initialized the SystemState(PhoneIncoming……) in the Form method area.

    SystemState state = new SystemState(SystemProperty.PhoneIncomingCallerNumber);
    SystemState SS = new SystemState(SystemProperty.PhoneIncomingCall);
    SS.Changed += new ChangeEventHandler(SS_Changed);
    state.Changed += new ChangeEventHandler(state_Changed);
    

     And then,about the SS Event(it could drop the call which you don`t want to answer)

     void SS_Changed(object sender, ChangeEventArgs args)
        {
          try
          {
            if (DropCall.BannedList.Exists((s) =>
            {
              s = number;
              return (from t in DropCall.BannedList
                  where t.Equals(s)
                  select t).Count() == 0 ? false : true;
            }))
              DropCall.Drop();
          }
          catch (Exception ex)
          {
            MessageBox.Show(ex.Message);
          }
    
        }
    

    About DropCall.Drop() Function, its code is here:

     public static class DropCall
      {
        #region private field
        //VK Value of Key End--VK_F4
        private const int VK_F4 = 0x73;
        private const int KEYEVENTF_KEYUP = 0x0002;
        #endregion
    
        #region public fiield
        //The blacksheet list
        public static List<String> BannedList = new List<String>();
    
        /// <summary>
        /// simulate a button click
       /// </summary>
        public static void Drop()
        {
          MyRef.keybd_event(VK_F4, 0, 0, 0);
          MyRef.keybd_event(VK_F4, 0, KEYEVENTF_KEYUP, 0);
        }
        #endregion
    
        
      }
    
      #region Invoke Class
      public static class MyRef
      {
        //keybd_event API For the key which want to click
       [DllImport("coredll.dll")]
        public static extern void keybd_event(
          byte bVk,
          byte bScan,
          int dwFlags,
        int dwExtraInfo);
      }
      #endregion
    

    But, how to get the Incoming Phone number?just look here the state_Changed event:

     void state_Changed(object sender, ChangeEventArgs args)
        {
          try
          {
            if (args.NewValue != null)
            {
              number = (String)args.NewValue;
              //MessageBox.Show(number);
            }
          }
          catch (Exception ex) { MessageBox.Show(ex.Message); }
        }
    

    OK,now,we can intercept the PhoneIncoming Stata by the app,and capture the Incoming Number.I hope these codes can help u.


    (wm,winform,visio)developer
    • Marked as answer by Bin-ze Zhao Thursday, December 2, 2010 6:34 AM
    Thursday, December 2, 2010 1:15 AM
  • Hi,

     

    Great code. I'll analyze the code. That will definitely help me a lot.

    Thanks


    TcoUpLoad (Vb6 and VbNet | starting learning C#)
    Thursday, December 2, 2010 12:49 PM
  • Wow~~You are welcome~~~

    BTW:It is c# code~~


    (wm,winform,visio)developer
    Friday, December 3, 2010 1:56 AM