Re: [android-beginners] The Force Close Error is suddenly back...

2010-07-16 Thread Victoria Busse
I will definitely read and learn about debugging now...Thanks :))) The way you said works... public int getCount() { //return mThumbIds.length; if(vidUris!=null){ return vidUris.length;} return 0; } ...but the videos don't show up, so I still have a problem with retrie

Re: [android-beginners] The Force Close Error is suddenly back...

2010-07-16 Thread Kostya Vasilyev
So far so good, you've successfully hit a breakpoint. Now you need to inspect variables (Google for Eclipse debugging basics). Also set a breakpoint whee data is handed over to the adapter, and see which one gets hit first. BTW, I think adding "if (vidUris != null)" inside getCount() will fix the

Re: [android-beginners] The Force Close Error is suddenly back...

2010-07-16 Thread Victoria Busse
Alright :) okay I see what you mean now, I guess, but for most of these lines I get something like source not found... The JAR of this class file belongs to container Android 2.1 - update 1 which does not allow modifications to source attachments on its entries. On Fri, Jul 16, 2010 at 11:18 PM,

Re: [android-beginners] The Force Close Error is suddenly back...

2010-07-16 Thread Justin Anderson
Are you using Eclipse? If you are using Eclipse, you should be able to step through your code and examine variables and object state and step through your code one line at a time... -- There are only 10 types of people in the wo

Re: [android-beginners] The Force Close Error is suddenly back...

2010-07-16 Thread Victoria Busse
Okay, I set the breakpoint for getCount(); and this is what I got... Moved [Android Application] DalvikVM[localhost:8615] Moved [Android Application] DalvikVM[localhost:8615] Thread [<3> main] (Suspended (entry into method getCount in EditGalleryView$VideoAdapter)) EditGalleryView$VideoAdapter.get

Re: [android-beginners] The Force Close Error is suddenly back...

2010-07-16 Thread Victoria Busse
Thanks :) I'll check it now... On Fri, Jul 16, 2010 at 10:43 PM, TreKing wrote: > On Fri, Jul 16, 2010 at 4:41 PM, TreKing wrote: > >> http://help.eclipse.org/helios/index.jsp >> > > Stupid Frames: > > http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.jdt.doc.user/tasks/task-add_line_

Re: [android-beginners] The Force Close Error is suddenly back...

2010-07-16 Thread TreKing
On Fri, Jul 16, 2010 at 4:41 PM, TreKing wrote: > http://help.eclipse.org/helios/index.jsp > Stupid Frames: http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.jdt.doc.user/tasks/task-add_line_breakpoints.htm --

Re: [android-beginners] The Force Close Error is suddenly back...

2010-07-16 Thread TreKing
On Fri, Jul 16, 2010 at 4:31 PM, Victoria Busse wrote: > I am sorry for the next question but I am really new to all this: how do I > set breakpoints?? Why are you sorry? I could tell you how to set a break point. Or I could tell you that simple Google search lead me to this, where you can fin

Re: [android-beginners] The Force Close Error is suddenly back...

2010-07-16 Thread Victoria Busse
Hey thanks for the fast reply :), I am sorry for the next question but I am really new to all this: how do I set breakpoints?? On Fri, Jul 16, 2010 at 9:58 PM, Kostya Vasilyev wrote: > Victoria, > > The cause of this exception appears in logcat: > > > 07-16 19:40:45.124: ERROR/AndroidRuntime(225

Re: [android-beginners] The Force Close Error is suddenly back...

2010-07-16 Thread Kostya Vasilyev
Victoria, The cause of this exception appears in logcat: 07-16 19:40:45.124: ERROR/AndroidRuntime(225): Caused by: java.lang.NullPointerException 07-16 19:40:45.124: ERROR/AndroidRuntime(225): at com.mobilevideoeditor.moved.EditGalleryView $VideoAdapter.getCount(EditGalleryView.java:73) Loo

[android-beginners] The Force Close Error is suddenly back...

2010-07-16 Thread Victoria
Hi, I am trying to load videos from my emulated sdcard into my implemented GridView, it worked fine before, when I used the GridView example from Google...but now I get a Force close error when I try to open the app. The entire app works (or rather should work) like this a TabView is launched tha