Dialing from a PIM?

by GoodDamon » Fri, 22 May 2009 02:06:50 GMT


Sponsored Links
 I have a personal information manager (PIM) that I use to keep track
of all of my contacts (synced with gmail contacts, natch). This PIM
has the ability to run arbitrary operating system commands when you
click on a contact's phone number. It would be really handy to be able
to select a phone number and have my G1 dial that number
automatically, as if I selected that number in the dialer application
on the phone.

Is there a way to do this? I'm not interested in tethering the phone
to my laptop, I just would like to be able to run the dialer
component. I don't care whether it's through the USB cable or through
bluetooth.

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



Other Threads

1. Sockets with Android.

Hi
I'm implementing a program which uses sockets to communicate between
the client and server. I am getting this to work fine with just a
message. However, I want to have an EditText field in my application,
which when I hit a 'Send' button, sends the text from the field to my
server and logs it. I am trying to implement this, but my program
always crashes. Any help would be appreciated. Here is my code:

Android Client:
public class SocketTest extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        Thread sThread = new Thread(new TCPServer());
        Thread cThread = new Thread(new TCPClient());
        sThread.start();
        try {
               Thread.sleep(1000);
          } catch (InterruptedException e) { }

          cThread.start();
    }
}

TCP Server:
public class TCPServer implements Runnable{

    public static final String SERVERIP = "127.0.0.1";
    public static final int SERVERPORT = 8888;
    public void run() {
         try {
              Log.d("TCP", "S: Connecting...");

              ServerSocket serverSocket = new ServerSocket
(SERVERPORT);
              while (true) {
                 Socket client = serverSocket.accept();
                 Log.d("TCP", "S: Receiving...");
                 try {
                      BufferedReader in = new BufferedReader(new
InputStreamReader(client.getInputStream()));
                      String str = in.readLine();
                      Log.d("TCP", "S: Received: '" + str + "'");
                    } catch(Exception e) {
                        Log.e("TCP", "S: Error", e);
                    } finally {
                         client.close();
                         Log.d("TCP", "S: Done.");
                    }

              }

         } catch (Exception e) {
           Log.e("TCP", "S: Error", e);
         }
    }
}

TCP Client:
 public class TCPClient extends Activity implements Runnable {

    final EditText msg = (EditText) findViewById(R.id.message);
    final Button sendButton = (Button) findViewById(R.id.sendserver);

    public void run() {
        sendButton.setOnClickListener(new OnClickListener() {

                        @Override
                        public void onClick(View v) {
                                // TODO Auto-generated method stub
                                try {

                                   InetAddress serverAddr = 
InetAddress.getLocalHost();
                                   Log.d("TCP", "C: Connecting...");
                                   Socket socket = new Socket(serverAddr,
TCPServer.SERVERPORT);
                                   String message = msg.toString();
                                       try {
                                        Log.d("TCP", "C: Sending: '" + message 
+ "'");
                                        PrintWriter out = new PrintWriter( new
BufferedWriter( new OutputStreamWriter(socket.getOutputStream
())),true);

                                        out.println(message);
                                        Log.d("TCP", "C: Sent.");
                                          Log.d("TCP", "C: Done.");

                                     } catch(Exception e) {
                                         Log.e("TCP", "S: Error", e);
                                        } finally {
                                          socket.close();
                                        }
                                 } catch (Exception e) {
                                      Log.e("TCP", "C: Error", e);
                                 }
                        }
                }) ;

    }
}
--~--~---------~--~----~------------~-------~--~----~

2. mechanism for data sharing across media framework

Hi,
In an earlier email Dave has suggested that Android will be updated
with improved mechanism for tunneling device specific parameters
through the framework to the HAL. And this would be consistent
throughout the media framework (audio, camera, media player, etc).

Are there actual ongoing plans for this or is it already integrated in
Android.

Ref: 

3. i can't see my samsung galaxy on windows seven 64 bit

4. Layout - Weight not working

5. Android Device security ???

6. Porting to a cpu

7. Paging bos lucky