|
View Poll Results: Would you like a Google Voice port? | |||
Yes | 53 | 100.00% | |
No | 0 | 0% | |
Voters: 53. You may not vote on this poll |
|
LinkBack | Thread Tools | Display Modes |
|
||||
Re: [IDEA] Google Voice Android Port
Updates:
Last edited by dgourd; 02-07-2010 at 12:24 PM. |
|
||||
Re: Google Voice Android Port Project
Very interested keep use posted.
__________________
If you have wifi and GPS on your phone, click link below for Navizon. Navizon gives you money to log wifi and cell phone towers.
http://my.navizon.com/Webapps/UserAd...e=585A56575E5E |
|
||||
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.
__________________
|
|
||||
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/ |
|
||||
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:
The Google SDK wont work since it would just be used for creating Android apps. |
|
||||
Re: Google Voice Android Port Project
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; } } 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(); } } } |
|
Tags |
android, google, port, touch pro 2, voice |
|
|