expandable list view

by google » Tue, 07 Apr 2009 19:39:12 GMT

Sponsored Links
i am creating expandable list with group and childs,
i am able to handle onchildclick()
but not able to handle ongroupclick()  can anybody helps in this



expandable list view

by dillirao malipeddi » Mon, 13 Apr 2009 17:21:26 GMT

 you can use
public void onGroupExpand(int groupPosition)
// TODO Auto-generated method stub
Toast.makeText(ExpandableList1.this, "Group Clicked on pos =
"+ groupPosition, Toast.LENGTH_SHORT).show();

for get selected  group position

i think this will help you

Dilli Rao. M


Sponsored Links

Other Threads

1. Can't find resource for bundle error

I am getting an error report occasionally from users with this stack

java.lang.RuntimeException: An error occured while executing
        at android.os.AsyncTask$3.done(AsyncTask.java:200)
        at java.util.concurrent.FutureTask
        at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
        at java.util.concurrent.FutureTask.run(FutureTask.java:137)
        at java.util.concurrent.ThreadPoolExecutor
        at java.lang.Thread.run(Thread.java:1096)
Caused by: java.util.MissingResourceException: Can\'t find resource
for bundle org. €€€€
uni.internal.locale.Locale, key en_US
        at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:245)
        at java.util.ResourceBundle.getBundle(ResourceBundle.java:154)
        at java.util.Locale$1.run(Locale.java:792)
        at java.util.Locale$1.run(Locale.java:791)
        at java.security.AccessController.doPrivileged(AccessController.java:
        at java.util.Locale.getBundle(Locale.java:790)
        at java.util.Calendar.<init>(Calendar.java:694)
        at java.util.GregorianCalendar.<init>(GregorianCalendar.java:338)
        at java.util.GregorianCalendar.<init>(GregorianCalendar.java:239)
        at com.mycompany.myapp.MyClass.myMethod(MyClass.java:408)

The thing is, this is crashing on a very simple line of code:

Calendar cal = Calendar.getInstance();

There are multiple places where this crash occurs, all with the same
exact code.  Also, the resource bundle not found differs; I've also
gotten these two:

Caused by: java.util.MissingResourceException: Can\'t find resource
for bundle org. 0\0\\\01\0
 uni.internal.locale.Locale, key en_US

Caused by: java.util.MissingResourceException: Can\'t find resource
for bundle org.apache.harmony.luni.internal\0\0\0 Locale,
key en_US

Any ideas?



2. BitlyAndroid, using bit.ly in your android code

I'm using bit.ly in my current project, and I'm sharing that particular code
(Bitly Android) with the rest of the world.

You'll find it on github: http://github.com/finnjohnsen/BitlyAndroid

Here is the essential file you can include in your sourcefile:

cba documenting this small thingie, so I made a short blog post:



3. need help with porting gmail app android 1.6 code to android 2.0 and market on emulator

4. Open Mobile Alliance and Android

5. nmea file in 1.6

6. Wakelock and phone restarts

7. Handling large Bitmaps