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. How do I build Android project

I am trying to build android source code (specifically the
applications such as the alarm clock, calendar) and when I do this
using eclipse, there are 1000+ errrors being thrown possibly due to
mismatch of class path and other environmental settings.
Can somebody please help in terms of any said steps to follow for
building the application projects under android using eclipse?
This is important since I need to debug certain issues and due to
failure of compiling I am unable to debug via Eclipse as debug
requires an open project compiled successfully to be present.

FYI- I have installed the DDMS plugin and ADT successfully and am able
to communicate with the target successfully using eclipse, but
unfortunately not able to debug due to the above said reasons.

Any help is appreciated.

braid pitt.

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

2. how to invalidate the textview

i meet a issue on Android , i can't set the background color ,  can
anyone help me? thanks in advance.

set a string to the textview, and use setOnTouchListener to capture
touch event, when receive MotionEvent.ACTION_UP event. set the
background color to 0xFFFF0000(red), when receive
MotionEvent.ACTION_DOWN event. set the background color to 0xFF0000FF
(blue)

my codes as below:
textView.setText(string);
final SpannableString str = new SpannableString(string);

textView.setOnTouchListener(new OnTouchListener() {
        public boolean onTouch(View v, MotionEvent event) {
                int eventaction = event.getAction();

                switch (eventaction) {
                case MotionEvent.ACTION_UP:
                                str.setSpan(new 
BackgroundColorSpan(0xFFFF0000), 0, string.length
(),Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
                                textView.invalidate();
                                return true;

                case MotionEvent.ACTION_DOWN:
                                str.setSpan(new 
BackgroundColorSpan(0xFF0000FF), 0, string.length
(),Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
                                textView.invalidate();
                                return true;

                        default:
                                return v.onTouchEvent(event);
                }
        }
});

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

3. GSM emulation problem

4. Will android work on samsung jet?

5. Java Date Objects slow to instantiate in Android 1.6?

6. Streaming problems with Android 2.0

7. PROCEDURE FOR KEYBOARD WORKING WITH ANDROID FOR BEAGLEBOARD