how to get the listview item's default "on-pressed" drawable resource id

by [EMAIL PROTECTED] » Sat, 29 Nov 2008 16:31:08 GMT


Sponsored Links
 how to get the listview item's default  "on-pressed" drawable resource
id? I mean the orange background image when the listview's item is
pressed.

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



Other Threads

1. a error about the intent

Dear all
Recently ,I use a intent to jump to the MovieView.but something is
wrong.But I don't konw where the wrong is .

 Intent intent =new Intent(Test.this,MovieViewTest.class);
                    intent.setData(Uri.parse(url));
                    intent.setType("video/*");
                    intent.setAction(Intent.ACTION_VIEW);
                    startActivity(intent);
__________________________________________________________________________
D/StatusBar(  582): updateResources
D/AndroidRuntime(  907): Shutting down VM
W/dalvikvm(  907): threadid=3: thread exiting with uncaught exception
(group=0x4000fe70)
E/AndroidRuntime(  907): Uncaught handler: thread main exiting due to
uncaught exception
E/AndroidRuntime(  907): java.lang.RuntimeException: Unable to start
activity ComponentInfo{com.android.Test/
com.android.Test.MovieViewTest}: java.lang.ClassCastException:
android.widget.VideoView
E/AndroidRuntime(  907):        at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2268)
E/AndroidRuntime(  907):        at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2284)
E/AndroidRuntime(  907):        at android.app.ActivityThread.access$1800
(ActivityThread.java:112)
E/AndroidRuntime(  907):        at android.app.ActivityThread$H.handleMessage
(ActivityThread.java:1692)
E/AndroidRuntime(  907):        at android.os.Handler.dispatchMessage
(Handler.java:99)
E/AndroidRuntime(  907):        at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(  907):        at android.app.ActivityThread.main
(ActivityThread.java:3948)
E/AndroidRuntime(  907):        at java.lang.reflect.Method.invokeNative
(Native Method)
E/AndroidRuntime(  907):        at java.lang.reflect.Method.invoke
(Method.java:521)
E/AndroidRuntime(  907):        at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:782)
E/AndroidRuntime(  907):        at com.android.internal.os.ZygoteInit.main
(ZygoteInit.java:540)
E/AndroidRuntime(  907):        at dalvik.system.NativeStart.main(Native
Method)
E/AndroidRuntime(  907): Caused by: java.lang.ClassCastException:
android.widget.VideoView
E/AndroidRuntime(  907):        at com.android.Test.MovieViewTest.onCreate
(MovieViewTest.java:69)
E/AndroidRuntime(  907):        at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1123)
E/AndroidRuntime(  907):        at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2231)
E/AndroidRuntime(  907):        ... 11 more

________________________________________________________________________


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

2. Android projects only in Java ?

Hi there,

I have a possibly stupid question:
I started with Android SDK and Eclipse and created a 'hello world'
application.
My question is: Is it possible to create an Android project in C++ ?
I noticed there is an Android NDK that enables you to code in C in a
cumbersome manner.
The Android API is only in Java, right ?

Regards,
Walter

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

3. Rename NotePad project

4. Android Kernel 2.6.29 on HTC DREAM

5. Android MySQL Database

6. TWO ICONS installing for a single app...Help?

7. activity problem..