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


Other Threads

1. Sockets with Android.

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. */
    public void onCreate(Bundle savedInstanceState) {
        Thread sThread = new Thread(new TCPServer());
        Thread cThread = new Thread(new TCPClient());
        try {
          } catch (InterruptedException e) { }


TCP Server:
public class TCPServer implements Runnable{

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

              ServerSocket serverSocket = new ServerSocket
              while (true) {
                 Socket client = serverSocket.accept();
                 Log.d("TCP", "S: Receiving...");
                 try {
                      BufferedReader in = new BufferedReader(new
                      String str = in.readLine();
                      Log.d("TCP", "S: Received: '" + str + "'");
                    } catch(Exception e) {
                        Log.e("TCP", "S: Error", e);
                    } finally {
                         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() {

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

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

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

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


2. mechanism for data sharing across media framework

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


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