How to intercept SMS without loading SMS to UI?

by Kenny Yu » Wed, 11 Mar 2009 17:48:01 GMT


Sponsored Links
 Requirement:
1. The program must be on top of SDK only, no hacking!
2. When a TEXT SMS is arriving to Android mobile, the program must
intercept the TEXT SMS to analyze the SMS content (access the whole
SMS data)
3. In terms of the SMS content, the program determines if the SMS is
erased as it doesn't exist. No notification, no update to Inbox UI.
4. Power cycle the Android phone, the SMS is not seen at Notification
or message Inbox

Can any one help with the solution? Or which API shall we look into?

Kenny
--~--~---------~--~----~------------~-------~--~----~



How to intercept SMS without loading SMS to UI?

by Gulfam » Wed, 11 Mar 2009 20:33:12 GMT


 Hi all,

My requirements are same as mentioned by Kenny Yu
any one can help regarding this that How discard or delete that sms at
interception time.

Regards,
Gulfam



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


How to intercept SMS without loading SMS to UI?

by Kenny » Fri, 13 Mar 2009 17:36:26 GMT


 I didn't know how to get it on top of SDK. Any activity can override
BroadcastReceiver::onReceive() or IntentReceiver::onReceiveIntent() to
know incoming SMS. I didn't know how to stop Mms activity getting the
SMS_RECEIVE intent.

Any idea if we use internal JAVA API (not in SDK though)?

Kenny




--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Receive data in a serlvet

Hi,

I am using a urlconnection method to connect to a server (here
localhost) which has a servlet running (HelloServlet). Could some one
please tell me how do I receive the contents that the client wrote on
the outputstream.


Here is my client code
try{
                        URL url = new URL("http://10.0.2.2/HelloServlet");
                    URLConnection conn = url.openConnection();
                    conn.setDoOutput(true);

                    Toast.makeText(getBaseContext(),
                    "connection set",
                    Toast.LENGTH_SHORT).show();
                    OutputStreamWriter writer = new
OutputStreamWriter(conn.getOutputStream());

                    writer.write("value=hello&anotherValue=imran");
                    writer.flush();
                    Toast.makeText(getBaseContext(),
                    "sent the data",
                    Toast.LENGTH_SHORT).show();
                    String line;
                    BufferedReader reader = new BufferedReader(new
InputStreamReader(conn.getInputStream()));
                    while ((line = reader.readLine()) != null) {
                      System.out.println(line);
                      Toast.makeText(getBaseContext(),
                      "received from server"+line,
                      Toast.LENGTH_SHORT).show();
                    }
                    writer.close();
                    reader.close();
                }
                catch (Exception e){

                }

The server code is

protected void processRequest(HttpServletRequest request,
HttpServletResponse response)
    throws ServletException, IOException {
        response.setContentType("text/html;charset=UTF-8");
        PrintWriter out = response.getWriter();
        try {
            String value = request.getParameter("value");
            String value2 = request.getParameter("anotherValue");
            System.out.println("The data recieved is:"+value+" and
"+value2);


            out.println("<html>");
            out.println("<head>");
            out.println("<title>Servlet LoginServlet</title>");
            out.println("</head>");
            out.println("<body>");
            out.println("The data recieved is:"+value+" and
"+value2);
            out.println("</body>");
            out.println("</html>");

        } finally {
            out.close();
        }
    }

-- 

2. How to handle plural with resources

Hi,

Is there any "best practice" to deal with plural messages?

        <string name="info_files_deleted_plural">%d files successfully
deleted</string>
        <string name="info_files_deleted_singular">1 file successfully
deleted</string>
        <string name="info_files_deleted_none">No files deleted</string>

How could that be done?

Cheers

-- 

3. AutoCompleteTextView weirdness

4. MMS di G1 |pake kartu a

5. Android OpenGL Game - App Architecture and Threading Logic

6. What did those "DO NOT MERGE" warning in the commit logs mean?

7. mo tanya tentang bootloader