Re: [android-beginners] Re: Some issues with ExpandableList

2010-02-05 Thread TreKing
On Fri, Feb 5, 2010 at 2:56 PM, Gustavo wrote: > in fact I think that there's something wrong with this line: > > LinearLayout groupLayout = > > (LinearLayout)getExpandableListAdapter().getGroupView(i, false, > null, null); > You know what, getGroupView will create a new view if you pass in nul

[android-beginners] Re: Some issues with ExpandableList

2010-02-05 Thread Gustavo
in fact I think that there's something wrong with this line: LinearLayout groupLayout = (LinearLayout)getExpandableListAdapter().getGroupView(i, false, null, null); because the only argument I'm sure that it's right is the i variable which retrieves the groupView,

[android-beginners] Re: Some issues with ExpandableList

2010-02-05 Thread Gustavo
Yes it does. =D any idea? On Feb 5, 6:48 pm, TreKing wrote: > On Fri, Feb 5, 2010 at 1:51 PM, Gustavo wrote: > > So, I guess I did what you told me to but the problem is that I'm not > > getting that print on my log whenever I hit the button, I already > > tried to set "clickable=true" on my xml

Re: [android-beginners] Re: Some issues with ExpandableList

2010-02-05 Thread TreKing
On Fri, Feb 5, 2010 at 1:51 PM, Gustavo wrote: > So, I guess I did what you told me to but the problem is that I'm not > getting that print on my log whenever I hit the button, I already > tried to set "clickable=true" on my xml but still nothing... what > could it be? am I doing it right? > Doe

[android-beginners] Re: Some issues with ExpandableList

2010-02-05 Thread Gustavo
So, I guess I did what you told me to but the problem is that I'm not getting that print on my log whenever I hit the button, I already tried to set "clickable=true" on my xml but still nothing... what could it be? am I doing it right? SimpleExpandableListAdapter expListAdapter = new SimpleExpanda

[android-beginners] Baffling recursive ClassCastExceptions when reading default shared preferences

2010-02-05 Thread Mark Rosenberg
Seems like I must be doing something basic very wrong, but the results are strange, and I'm having trouble tracking the problem down. This is in my my Activity's onCreate() PreferenceManager.setDefaultValues(this, R.xml.metronome_preferences, false); mSharedPrefs=PreferenceManager.getDe

[android-beginners] Re: Suddenly unable to post to android-developers

2010-02-05 Thread Mark Rosenberg
This is beginner's not developer's. Apparently it makes a difference. Really strange behavior. On Feb 5, 10:57 am, "Mr. Baseball 34" wrote: > It is apparent that users can't be blocked because the stupid spammer > alagmy is still able to post. > > Besides, how did you send this one, anyway? > > O

Re: [android-beginners] Suddenly unable to post to android-developers

2010-02-05 Thread Mr. Baseball 34
It is apparent that users can't be blocked because the stupid spammer alagmy is still able to post. Besides, how did you send this one, anyway? On Fri, Feb 5, 2010 at 12:26 PM, Mark Rosenberg wrote: > Since yesterday morning, I've been unable to post questions to > http://groups.google.com/group

[android-beginners] Re: Launch other activity on pressing the on-screen camera/camcorder button?

2010-02-05 Thread Abhi
Great! I will try this out right away. Thanks Roger. Appreciate it. Abhi On Feb 5, 12:47 pm, Rogério de Souza Moraes wrote: > Hi Abhi, > > it is possible. You can do like this: > >     private class ExpandedDialog extends Dialog { >         ExpandedDialog(Context context) { >             super(

[android-beginners] Confusion with Preferences

2010-02-05 Thread katti
Hi, I am developing a game in which I have set of preferences that are set to some default values. When I install the game for the first time on emulator or or on my phone the application is not able to get the preferences. I get this message in the logcat: 02-05 11:16:24.185: DEBUG/(389): unab

[android-beginners] Suddenly unable to post to android-developers

2010-02-05 Thread Mark Rosenberg
Since yesterday morning, I've been unable to post questions to http://groups.google.com/group/android-developers . I've been selecting the 'copy me' option on the page where you write and submit your question, and I've been getting a result page indicating success, as well as a copy of my post as e

Re: [android-beginners] Re: Some issues with ExpandableList

2010-02-05 Thread TreKing
On Fri, Feb 5, 2010 at 10:44 AM, Gustavo wrote: > So where exactly should I get the parent of the button and how would I > get the view's index in the adapter? > You would have to iterate over your collection of groups, and use findViewById to actually get a hold of each button in each group, th

Re: [android-beginners] Re: NullPoinerException in XML

2010-02-05 Thread Chirayu Dalwadi
@ Kitzy Thanks Got the error -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to an

Re: [android-beginners] Launch other activity on pressing the on-screen camera/camcorder button?

2010-02-05 Thread Rogério de Souza Moraes
Hi Abhi, it is possible. You can do like this: private class ExpandedDialog extends Dialog { ExpandedDialog(Context context) { super(context, com.android.internal.R.style.Theme_Light_NoTitleBar); } @Override public boolean dispatchKeyEvent(KeyEvent

[android-beginners] Launch other activity on pressing the on-screen camera/camcorder button?

2010-02-05 Thread Abhi
Hi, Is it possible to launch another activity or invoke a sensor (e.g. accelerometer) on the press of capture or video record button? Abhi -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack

[android-beginners] Re: Some issues with ExpandableList

2010-02-05 Thread Gustavo
Thanks for the support! I'm sorry for not making it clear for you... maybe I wasn't even able to understand what I was trying to do hehe... So, you got it right! that's exactly what I need! "get the group position based on the button that was pressed", but the problem is that as I'm on my first an

[android-beginners] Re: Video recording

2010-02-05 Thread Abhi
How can we run the built-in Camera app on the SDK? Is that available for developers? On Jan 25, 11:38 am, Dave Feltenberger wrote: > Awesome, thanks for the link.  That will be very useful. > > On Mon, Jan 25, 2010 at 10:06 AM, Sean Hodges > wrote: > > > On Mon, Jan 25, 2010 at 2:38 PM, Dave Felt

Re: [android-beginners] Re: Some issues with ExpandableList

2010-02-05 Thread TreKing
On Fri, Feb 5, 2010 at 8:39 AM, Gustavo wrote: > you told me "setOnGroupClickListener" because I can get the > groupPosition and that's exactly what I need BUT it only works after I > click on the group since it's inside setOnGroupClickListener where can > I place the button's onClickListener so

[android-beginners] Re: Emulator display proportion

2010-02-05 Thread Kitzy
What does your /res/layout/main.xml file look like? (Or just the elements with their android:layout... attributes if you don't want to display all attributes) -Kitzy On Feb 4, 9:32 am, jverner wrote: > A developer has built an Android app for me. When I view it on the > emulator, the display doe

[android-beginners] Re: syncronization on Android SDK 1.6 and 2.0

2010-02-05 Thread Kitzy
You either need to add the sdk for 1.6 on you machine (it is good to have multiple sdks so you can test on multiple emulator versions) or right click on you project in eclipse. Click on properties --> Android and change you sdk However it might not work on a 1.6 device this way -Kitzy On Feb 2,

[android-beginners] Re: newbie problem

2010-02-05 Thread Kitzy
The first time I start the emulator, it can take a good 5 mins to start. Once it has started, you can always make changes to you program and re-run them without restarting the emulator. If you get you emulator to start but don't see you program, that could be a problem in the code and not necessar

[android-beginners] Re: NullPoinerException in XML

2010-02-05 Thread Kitzy
Your error has the answer: On Feb 3, 10:34 pm, Chirayu Dalwadi wrote: > E/AndroidRuntime(  341): Uncaught handler: thread main exiting due to > uncaught e > xception > E/AndroidRuntime(  341): java.lang.RuntimeException: Unable to start > activity Co > mponentInfo{integration.android/integration.

[android-beginners] Re: connect 2 emulators over lan

2010-02-05 Thread Kitzy
Would your test work if you have two emulators running on the same machine? I know you can text from one emulator to the other, etc. -Kitzy On Feb 4, 10:29 pm, arin wrote: > Is it possible to connect 2 emulators e1 & e2 running separately in > machines m1 & m2 connected over a ethernet LAN cabl

[android-beginners] Re: Some issues with ExpandableList

2010-02-05 Thread Gustavo
Thank you so much for the quick reply! it worked!!! now the only problem I'm having is how to get the button click event... the only place I could put the onClickListener was inside the method you told me "setOnGroupClickListener" because I can get the groupPosition and that's exactly what I need B

[android-beginners] Re: How can I set max-height on GridView?

2010-02-05 Thread CoRex
I found out. There is a little word called "weight". It solved the problem. :) /CoRex On Jan 29, 5:52 pm, KitzyKitt wrote: > Are your GridView and Spinner element all withiin the same element, > such as a LinearLayout? > > If so, try posting your layout file here. > > -Kitzy > > On Jan 27, 4:45 

[android-beginners] Unable to get default service manager! ---Need Urgent Help!!!

2010-02-05 Thread rocky84 rocky84
Hi, can anybody please help me out in the below error? i am not getting the service list (however sometimes i got the list of services) $ adb shell $ service list service list service: Unable to get default service manager! $ thanks in advance rocky -- You received this message because you are