PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   TP2 Themes & Software (http://forum.ppcgeeks.com/forumdisplay.php?f=109)
-   -   Google Voice Android Port Project (http://forum.ppcgeeks.com/showthread.php?t=109239)

dgourd 02-03-2010 01:28 PM

Google Voice Android Port Project
 
One thing I admire about the Google Voice application on Android that is lacking in any Windows Mobile solutions is the ability to make calls through Wifi. This will bypass any need for a plan.

Since Android is Open Source, I was wondering if we could work on a port. I have some experience and would like to recruit others to help.

I have some google invites for anybody that legitimetly helps on the port :).

EDIT: Maybe not a full port of Google Voice, but a way to make calls through wifi. I know you can use that program with an Unlocked Nexus one with no plan so it is possible.

Needed Support:
I could really use some help with someone that knows C++/C# or how to make a nice GUI for the interface.

GOALS:
  1. Get the source code and decompile the functionshttp://www.androidonhtc.com/lib/imag...icon_check.gif
  2. Figure out how the functions workhttp://www.androidonhtc.com/lib/imag...icon_check.gif
  3. Create a program to login in and display information (such as SMS and Voicemails)http://www.androidonhtc.com/lib/imag...eys/icon_x.gif
  4. Add ability to send SMShttp://www.androidonhtc.com/lib/imag...eys/icon_x.gif
  5. Add ability to make phone calls through callback methodhttp://www.androidonhtc.com/lib/imag...eys/icon_x.gif
  6. Add ability to make and receive calls through WiFi / 3Ghttp://www.androidonhtc.com/lib/imag...eys/icon_x.gif
  7. Integrate all features with Windows / Manilahttp://www.androidonhtc.com/lib/imag...eys/icon_x.gif

dgourd 02-03-2010 07:46 PM

Re: [IDEA] Google Voice Android Port
 
Updates:
  • I have found out that the android apps are written in Java (which I know a lot about). So It would be relatively easy to port, just got to change some functions around to fit windows mobile. We could use the same base code.
  • I have decompiled the java google voice API. There are 2 classes and a test program. Click here to read the post
  • Apparently, all the data is retreived from a URL. So we can port this to a different language and parse the data as needed.

Puertorikanking 02-04-2010 12:03 AM

Re: [IDEA] Google Voice Android Port
 
Plx hit me up if you do it! Very interested!

drewcam888 02-04-2010 09:19 AM

Re: Google Voice Android Port Project
 
Very interested keep use posted.

JCerna 02-04-2010 12:46 PM

Re: [IDEA] Google Voice Android Port
 
Sounds good but just to give you a heads up WinMo does not play nice with Java at least not the newer versions. I believe Google put out an SDK so it migth be easier to start from there. If I had the time I would be all over this too. Thanks for trying it out.

Quote:

Originally Posted by dgourd (Post 1538936)
I have found out that the android apps are written in Java (which I know a lot about). So It would be relatively easy to port, just got to change some functions around to fit windows mobile. We could use the same base code.


kitts 02-04-2010 12:55 PM

Re: Google Voice Android Port Project
 
count me in.. let me know how can I help you..

dgourd 02-04-2010 01:18 PM

Re: Google Voice Android Port Project
 
I can only find the source code for the android base. I can't find the source for Google Voice, but I have found an API. Will update with link soon!

LINK: http://code.google.com/p/google-voice-java/

dgourd 02-04-2010 01:29 PM

Re: [IDEA] Google Voice Android Port
 
About the API:
It is basically a class with all the necessary Google Voice functions. It has connecting to google voice and placing calls, along with returning your inbox and other data. One definite positive is that it returns data as raw html or xml, so we can parse it how we need to.

Quote:

Originally Posted by JCerna (Post 1540599)
Sounds good but just to give you a heads up WinMo does not play nice with Java at least not the newer versions. I believe Google put out an SDK so it migth be easier to start from there. If I had the time I would be all over this too. Thanks for trying it out.

I am planning on taking apart the API to see how each of the functions work. Then, I might be able to port it to a different language using the Windows SDK.

The Google SDK wont work since it would just be used for creating Android apps.

Viper786 02-04-2010 02:26 PM

Re: Google Voice Android Port Project
 
This will be awesome if successfully ported!

dgourd 02-05-2010 01:18 PM

Re: Google Voice Android Port Project
 
1 Attachment(s)
Phone.class:
Code:

package com.techventus.server.voice;
public class Phone
{
  public String id;
  public String number;
  public String formattedNumber;
  public String type;
  public String name;
  public String carrier;
  public Boolean verified;
  public String toString()
  {
    String ret = "";
    if (this.id != null) {
      ret = ret + "id=" + this.id + ";";
    }
    if (this.number != null) {
      ret = ret + "number=" + this.number + ";";
    }
    if (this.name != null) {
      ret = ret + "name=" + this.name + ";";
    }
    if (this.carrier != null) {
      ret = ret + "carrier=" + this.carrier + ";";
    }
    if (this.type != null) {
      ret = ret + "type=" + this.type + ";";
    }
    if (this.verified != null) {
      ret = ret + "verified=" + this.verified + ";";
    }
    if (this.formattedNumber != null) {
      ret = ret + "formattedNumber=" + this.formattedNumber + ";";
    }
    return ret;
  }
}

test.class:
Code:

package test;
import com.techventus.server.voice.Phone;
import com.techventus.server.voice.Voice;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.util.List;
public class test
{
  public static void main(String[] args)
  {
    System.out.println("Enter Your Google Voice Username, eg user@gmail.com:");
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String userName = null;
    try {
      userName = br.readLine();
    } catch (IOException ioe) {
      System.out.println("IO error trying to read your name!");
      System.exit(1);
    }
    System.out.println("Enter Your Password:");
    String pass = null;
    try {
      pass = br.readLine();
    } catch (IOException ioe) {
      System.out.println("IO error trying to read your name!");
      System.exit(1);
    }
    try
    {
      Voice voice = new Voice(userName, pass);
      try
      {
        Thread.sleep(2000L);
        if ((voice.phoneList != null) && (voice.phoneList.size() > 0)) {
          for (int i = 0; i < voice.phoneList.size(); ++i)
            System.out.println(((Phone)voice.phoneList.get(i)).toString());
        }
        Thread.sleep(2000L);
      }
      catch (InterruptedException e)
      {
        e.printStackTrace();
      }
    }
    catch (IOException e)
    {
      e.printStackTrace();
    }
  }
}

I have attached the Voice.class (the most important one) to this as a txt file.


All times are GMT -4. The time now is 09:47 AM.

Powered by vBulletin® ©2000 - 2024, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com


Content Relevant URLs by vBSEO 3.6.0