Android 2.x SDK --- Button --- onClick Event Handler
Loading...
9,698
Loading...
Uploader Comments (robertMacHale)
see all
All Comments (17)
-
As a user of 10+ other languages, I'm not sure I like the way they did this.... But thanks for showing us how it works :)
-
I have to agree. MSVC did this same mechanism in 1991, i.e. lookup the control. This is a productivity drain.
-
@TheMrColak yeah that's a great idea. .net is on so many phones these days... ha!
-
Thanks for postng this tutorial! I have a comfortable understanding of Java and the drag and drop GUI builder for Eclipse is great ... only thing I couldn't grasp was how to bind a control / widget with Java methods / variables - This tute helps a great deal! Thanks once again :) U get my sub :)
-
I don't have any entries in my LogCat, you have others besides your "OnClick", do I have to enable logging somewhere?
Loading...
What a joke are Java and Android SDK. :-|
You spent 5 minutes just to add an onclick handler?!
In .NET you doubleclick the goddamn button and that's it, nothing to type, nothing to search by resource ID, just doubleclick!
Switch to .NET step into a XXI century!
TheMrColak 10 months ago 3
@TheMrColak :: Apples & Oranges...the UI Builder in Visual Studio 2010 is awesome. Are you judging the Android platform based on the Eclipse text editor and UI Builder? Keep looking deeper, there is a brighter future in the Android Mobile pathway than you may have noticed. (:o) RM
robertMacHale 10 months ago 2
Check to see if the event binding for onClick is setup via OnClickListener. The LogCat is available through a standard import statement. Thanks. RM
robertMacHale 1 year ago
The content of R.java is auto-generated. So, there is no need to place content here. When an image is imported, or a button added, then Eclipse takes care of this file. RM
robertMacHale 1 year ago