Can I use PC to control G1 Phone?

by Handy_Zhou » Fri, 13 Mar 2009 01:42:42 GMT


Sponsored Links
 I want to develop an Agent on  G1 ,so I can use PC to  control a
Gphone ,which likes LogMeIn Rescue+Mobile.After the user click the
Keyboard,The character is transmited to the Gphone,I want
the screen to be changed corresponding. It seems  the character make
the screen changed.Is there APIs to help me to relise the Key stroke?
Thanks very much.

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



Can I use PC to control G1 Phone?

by Handy_Zhou » Fri, 13 Mar 2009 01:42:44 GMT


 I want to develop an Agent on  G1 ,so I can use PC to  control a
Gphone ,which likes LogMeIn Rescue+Mobile.After the user click the
Keyboard,The character is transmited to the Gphone,I want
the screen to be changed corresponding. It seems  the character make
the screen changed.Is there APIs to help me to relise the Key stroke?
Thanks very much.

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


Sponsored Links


Other Threads

1. Listview onListItemClick(), position

Hello,

I am trying to get the value of a selected item in a listview. The
listview consists of the names of all the countries. The problem that
I encouter when running the app is that when the listview is showed, a
country can be selected by typing in it's first letters. But the
problem is that the position given by the callback listener
onListItemClick() is the position of the new filtered list. This way
the index for the array doesn't mach the list item position.

An list example:

Australia
Belgium
Botswana
Belize

Where Belgium has index and position 2 -> OK

after pressing BE on the keyboard the list is as follows:

Belgium

So the position is 1 and doesn't match the String array index any more
and it results in Australia being selected.

My question is how I can obtain the correct country and still use the
android letter filter option because the list is otherwise quite
long.



My current code:

package com.android.pokerwinnings;

import java.util.Currency;
import java.util.Locale;

import android.app.ListActivity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.Toast;


public class SelectCurrency extends ListActivity {

        String[] countries;
        Locale[] ll;

        @Override
        public void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);

                ll = Locale.getAvailableLocales();
                countries = new String[ll.length];
                int i=0;
                for (Locale loc : ll) {
                        countries[i] = loc.getDisplayCountry();
                        i++;
                }

            setListAdapter(new ArrayAdapter<String>(this,
                  android.R.layout.simple_list_item_1, countries));
            getListView().setTextFilterEnabled(true);
        }

        @Override
    protected void onListItemClick(ListView l, View v, int position,
long id) {
        super.onListItemClick(l, v, position, id);
        Context context = getApplicationContext();
        Toast.makeText(context,
                "Country selected: " + countries[position],
                Toast.LENGTH_LONG).show();
        Intent intent = new Intent(SelectCurrency.this,
PokerWinnings.class);
        startActivity(intent);
    }

}



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

2. Library to communicate with peripherals in Android?

Hi,

I'm looking into developing a peripheral that could plug into the USB
port on an Android phone. Does the SDK have any way of communicating
with such a peripheral? Are there any resources for developing
peripherals that play nice with Android? Thanks.

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

3. how to download an image?

4. Get user's email address

5. batch file

6. N00b: Do I really need the official developer hardware kit?

7. how to solve error due to dalvik format conversion