running android application

by siddarth » Sat, 27 Feb 2010 16:28:29 GMT


Sponsored Links
 hi...

I have complete code of an android application running well .
But this application will run only on clicking its icon in the menu

I WANT THIS APPLICATION TO RUN WHEN " 5 " BUTTON ON THE ANDROID
KEYBOARD IS CONTINUOUSLY PRESSED  FOR MORE THAN 5sec

How do i do it..... Plz... help me its urgent


Thanking You in Advance
sid

--



Other Threads

1. Google support for developers

We are really e{*filter*}d to see Android move forward. We believe that the
openness of this platform
is crucial to buisness development.

Two questions:

1. Will there be a discount price for developers?
2. Are there possibilities that Google will support Android-based
businesses with VC funding or marketing collaborations?
--~--~---------~--~----~------------~-------~--~----~

2. URLConnection with https fails every other time

Can anyone help?

The code below loops 10 times where each loop does a URL connection
using either http or https.
When using http protocol everything works fine.

When using https, every other message is sent correctly while the
incorrect messages fail silently (no message is sent to the server and
no exception is thrown).
We know no packets are sent because we are using echoport to track
packets.

If the delay between messages is set to 1ms, then all https messages
are sent correctly.


  private void sendHttpsMsg(long id) {
        String urlString = "https://192.168.1.104/msg";
        //String urlString = "http://192.168.1.104/msg";
                        try {
                                URL url = new URL(urlString);
                                Log.i("httpsURL",url.toString());
                                URLConnection connection = url.openConnection();

                                InputStream is = connection.getInputStream();
                                Scanner in  = new Scanner(is);

                                while (in.hasNextLine())
                                        Log.i("httpsURL",in.nextLine());
                        } catch (Exception ioe) {
                                Log.i("httpsURL",ioe.toString());
                        }
    }

    private class HttpMsgThread extends Thread {
        HttpMsgThread() {
                super("httpsMsg");
        }
        public void run() {
                for(int i=0; i<10; i++) {
                        sendHttpsMsg(getId());
                        try {Thread.sleep(10000);}
                        catch (InterruptedException e) {}
                }
        }
    }


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

3. Are there any base64 encoding functions in 1.0r1?

4. Revocation of Signed Applications

5. a Strange thing about List, array and ArrayAdapter

6. is gps raw observables available?

7. Devices for testing?