[android-beginners] Re: Unable to reference custom class in xml

2009-09-20 Thread skink
On Sep 19, 8:13 am, MagouyaWare magouyaw...@gmail.com wrote: However, this results in: java.lang.NoSuchMethodException: RunningTaskGallery(Context,AttributeSet).  I double-checked just to make sure, but this constructor does indeed exist. Any ideas? and what about its visibility? is it

[android-beginners] Re: Configuring camera at Android device emulator?

2009-09-20 Thread wahib haq
yes i guess you can. Read this http://www.tomgibara.com/android/camera-source. Regards, wahib On 9/19/09, kiro cih.exe...@gmail.com wrote: Hi! Did i can use my webcam as camera in ADV? also mic as default microphone? is it possible, how can i configurate it?

[android-beginners] Re: Unable to reference custom class in xml

2009-09-20 Thread Justin Anderson
It is a public non-static class. Thanks, Justin On Sep 20, 2009 1:11 AM, skink psk...@gmail.com wrote: On Sep 19, 8:13 am, MagouyaWare magouyaw...@gmail.com wrote: However, this results in: java.l... and what about its visibility? is it public? pskink

[android-beginners] Re: Unable to reference custom class in xml

2009-09-20 Thread skink
On Sep 20, 4:19 pm, Justin Anderson janderson@gmail.com wrote: It is a public non-static class. Thanks, Justin i mean ctor. is it also public? pskink --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-beginners] Re: Unable to reference custom class in xml

2009-09-20 Thread John P.
Maybe it should be static, like the NotePad example has in http://developer.android.com/guide/samples/NotePad/src/com/example/android/notepad/NoteEditor.html: public static class LinedEditText extends EditText { ... On Sep 20, 10:19 am, Justin Anderson janderson@gmail.com wrote: It is

[android-beginners] Re: Unable to reference custom class in xml

2009-09-20 Thread Justin Anderson
Making it static doesn't change anything, except that I get the following again: 09-19 22:04:09.824: ERROR/AndroidRuntime(2716): Caused by: java.lang.NoSuchMethodException: RunningTaskGallery (Context,AttributeSet) The constructor that takes a Context and an AttributeSet does indeed exist and it

[android-beginners] Re: Unable to reference custom class in xml

2009-09-20 Thread martin-g ml
Did you provide the full name of the class ? Something like com.mycompany.RunningTaskGallery ? El dom, 20-09-2009 a las 09:57 -0600, Justin Anderson escribió: Making it static doesn't change anything, except that I get the following again: 09-19 22:04:09.824: ERROR/AndroidRuntime(2716):

[android-beginners] Re: Error : No embedded stylesheet instruction for file

2009-09-20 Thread Raphael
You're not giving enough information to help you: are you using Eclipse? how did you build and run? That doesn't look like you're running an android app on an emulator at all. R/ On Mon, Sep 14, 2009 at 8:52 PM, Mabel mabelj.fin...@gmail.com wrote: Hi, I am trying to build a simple

[android-beginners] Re: Unable to reference custom class in xml

2009-09-20 Thread John P.
But I still think his inner class should be static (as in the document) because to instantiate an inner non-static class, you'd first need the super class object sorry, *outer* class, not 'super' class ... On Sep 20, 12:53 pm, John P. johnny.d.p...@gmail.com wrote: He's taking the inner

[android-beginners] Re: Error : No embedded stylesheet instruction for file

2009-09-20 Thread Jeffrey Blattman
remove all of the *.out.* files in your project. when you run, click on the project (top level) in the package browser (left pane) first, and ensure that you are doing "run as" an android application. eclipse seems to want to "run" whatever you have selected. go knows what it's doing when you

[android-beginners] Re: Unable to reference custom class in xml

2009-09-20 Thread John P.
However, accodring to the Dev Guide documentation it shouldn't matter if it is static or not. In fact, it gives an alternative way to reference it if it is static, but states that you can use either approach. Hm, could you point out where in the doc it gives an alternative approach to static

[android-beginners] Re: Unable to reference custom class in xml

2009-09-20 Thread John P.
He's taking the inner class route, and yes he does provide the full path to the class according to his first post. But I still think his inner class should be static (as in the document) because to instantiate an inner non-static class, you'd first need the super class object; whereas to

[android-beginners] TOTALLY LOST AND CONFUSED

2009-09-20 Thread Rc3375
hi everyone-- got questions about android. the MAIN.XML screen has the following items in this order: 1. TextView01 2. EditText (called gF) 3. EditText (called fF) 4. EditText (called sF) 5. EditText (called ttlF) 6. EditText (called nF) and at the bottom of the screen, a botton called

[android-beginners] Re: TOTALLY LOST AND CONFUSED

2009-09-20 Thread wahib haq
Hi !! Reading and writing to a EditText widget is simple. For reading text use gF.gettext() and if you want to convert to string then use gF.gettext().tostring(). Else for writing to a edittext use sF.settext() function. I am also a newbie so not clear how to automatically call the validate

[android-beginners] RUN App problem

2009-09-20 Thread Mimi
I am getting the following error dialog on the Emulator everytime any of my Apps was about to start: SORRY! The application com.android.demo.notepad1 (process com.android.demo.notepad1) has stopped unexpectedly. Please try again. Any ideas, hints, suggestions...will be most welcomed.

[android-beginners] Re: make my own libraries

2009-09-20 Thread Roman ( T-Mobile USA)
Another method would be to create a native library using the NDK if you need native support. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not

[android-beginners] Re: RUN App problem

2009-09-20 Thread Mark Murphy
I am getting the following error dialog on the Emulator everytime any of my Apps was about to start: SORRY! The application com.android.demo.notepad1 (process com.android.demo.notepad1) has stopped unexpectedly. Please try again. Any ideas, hints, suggestions...will be most welcomed.

[android-beginners] Question about the license of the non-free applications

2009-09-20 Thread Chihau Chau
Android is developed under the Apache v2 License but what about of the non-free applications? -- Chihau Chau --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email

[android-beginners] Re: Unable to reference custom class in xml

2009-09-20 Thread Justin Anderson
Thanks for your reply John P. I think you are right if I want to use an inner class and reference it in XML then it needs to be static. That much makes sense now (not sure exactly what I was thinking at the time)... :) And I was wrong about the Dev Guide. It doesn't mention different ways