expandable list view

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


Sponsored Links
 hi,
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



regards,
chandra

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



expandable list view

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


 you can use
       @Override
public void onGroupExpand(int groupPosition)
       {
// TODO Auto-generated method stub
super.onGroupExpand(groupPosition);
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
trace...

java.lang.RuntimeException: An error occured while executing
doInBackground()
        at android.os.AsyncTask$3.done(AsyncTask.java:200)
        at java.util.concurrent.FutureTask
$Sync.innerSetException(FutureTask.java:273)
        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.runWorker(ThreadPoolExecutor.java:
1068)
        at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:561)
        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.doPrivilegedImpl(AccessController.java:
264)
        at java.security.AccessController.doPrivileged(AccessController.java:
84)
        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?

-Daniel

-- 

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:
http://github.com/finnjohnsen/BitlyAndroid/raw/master/src/com/finnjohnsen/bitlyandroid/test/BitlyAndroid.java

cba documenting this small thingie, so I made a short blog post:
http://johnsenf.blogspot.com/2010/02/bitly-for-android.html

/Finn

-- 

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