PPCGeeks Forums HTC Arrive HTC HD2 HTC Thunderbolt HTC Touch Pro 2 HTC Evo 4G HTC Evo 3D Samsung Galaxy S II Motorola Droid X Apple iPhone Blackberry
Go Back   PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro 2 > TP2 Themes & Software
Register Community Search

Notices


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

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-05-2010, 01:18 PM
dgourd's Avatar
Regular 'Geeker
Offline
Pocket PC: Touch Pro 2
Carrier: Verizon
Threadstarter
Location: Chicago
 
Join Date: Sep 2009
Posts: 257
Reputation: 405
dgourd is becoming a PPCGeeks regulardgourd is becoming a PPCGeeks regulardgourd is becoming a PPCGeeks regulardgourd is becoming a PPCGeeks regulardgourd is becoming a PPCGeeks regular
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
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;
  }
}
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.
Attached Files
File Type: txt voice_class.txt (14.0 KB, 3 views) Click for barcode!
Reply With Quote
  #2 (permalink)  
Old 02-06-2010, 06:50 PM
dgourd's Avatar
Regular 'Geeker
Offline
Pocket PC: Touch Pro 2
Carrier: Verizon
Threadstarter
Location: Chicago
 
Join Date: Sep 2009
Posts: 257
Reputation: 405
dgourd is becoming a PPCGeeks regulardgourd is becoming a PPCGeeks regulardgourd is becoming a PPCGeeks regulardgourd is becoming a PPCGeeks regulardgourd is becoming a PPCGeeks regular
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Google Voice Android Port Project

I added a list of goals for the project on the first post. I also created icons for their status. If you have any questions or want to add a goal, leave a reply and I will add it!
Reply With Quote
Reply

  PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro 2 > TP2 Themes & Software

Tags
android, google, port, touch pro 2, voice


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 05:00 AM.


Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0
©2012 - PPCGeeks.com