[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 public?

pskink

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[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?
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[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

--~--~-~--~~~---~--~~ You received this
message because you are sub...

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[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 group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[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 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

 --~--~-~--~~~---~--~~ You received this
 message because you are sub...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[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 calls the parent's constructor.  Both my class and constructors are
public.

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.

In my particular case I do not want it to be static.

Thanks,
Justin

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Sun, Sep 20, 2009 at 9:29 AM, John P. johnny.d.p...@gmail.com wrote:


 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 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
 
  


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[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): Caused by:
 java.lang.NoSuchMethodException: RunningTaskGallery
 (Context,AttributeSet)
 
 The constructor that takes a Context and an AttributeSet does indeed
 exist and it calls the parent's constructor.  Both my class and
 constructors are public.
 
 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.
 
 In my particular case I do not want it to be static.
 
 Thanks,
 Justin
 
 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --
 
 
 On Sun, Sep 20, 2009 at 9:29 AM, John P. johnny.d.p...@gmail.com
 wrote:
 
 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 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
 
  
 





--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[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 application that prints a hello world
 While trying to run I get the following error.

 Also a new file  named Strings.out.xml is formed. Kindly let me what
 would be the problem.

 23:47:52,968 INFO  [main] Main  -
 javax.xml.transform.TransformerFactory=null
 23:47:52,971 INFO  [main] Main  - java.endorsed.dirs=C:\Program Files
 \Java\jre6\lib\endorsed
 23:47:52,983 INFO  [main] Main  - launchFile: C:\Mabel_Drive\Projects
 \Android_workspace\.metadata\.plugins
 \org.eclipse.wst.xsl.jaxp.launching\launch\launch.xml
 23:47:53,062 FATAL [main] Main  - No embedded stylesheet instruction
 for file: file:/C:/Mabel_Drive/Projects/Android_workspace/Sudoku/res/
 values/strings.xml
 org.eclipse.wst.xsl.jaxp.debug.invoker.TransformationException: No
 embedded stylesheet instruction for file: file:/C:/Mabel_Drive/
 Projects/Android_workspace/Sudoku/res/values/strings.xml
        at
 org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProcessorInvoker.transform
 (JAXPSAXProcessorInvoker.java:225)
        at
 org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProcessorInvoker.transform
 (JAXPSAXProcessorInvoker.java:186)
        at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.Main.main
 (Main.java:73)
 Caused by:
 org.eclipse.wst.xsl.jaxp.debug.invoker.TransformationException: No
 embedded stylesheet instruction for file: file:/C:/Mabel_Drive/
 Projects/Android_workspace/Sudoku/res/values/strings.xml
        at
 org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProcessorInvoker.transform
 (JAXPSAXProcessorInvoker.java:214)
        ... 2 more

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[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 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 instantiate an inner
 static class, you can just instantiate it.  I'd be very impressed if
 Android's XML layout can handle both cases.  =)

 On Sep 20, 12:43 pm, martin-g ml mg.mli...@gmail.com wrote:

  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): Caused by:
   java.lang.NoSuchMethodException: RunningTaskGallery
   (Context,AttributeSet)

   The constructor that takes a Context and an AttributeSet does indeed
   exist and it calls the parent's constructor.  Both my class and
   constructors are public.

   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.

   In my particular case I do not want it to be static.

   Thanks,
   Justin

   --
   There are only 10 types of people in the world...
   Those who know binary and those who don't.
   --

   On Sun, Sep 20, 2009 at 9:29 AM, John P. johnny.d.p...@gmail.com
   wrote:

           Maybe it should be static, like the NotePad example has in
          
   http://developer.android.com/guide/samples/NotePad/src/com/example/an...

              public static class LinedEditText extends EditText { ...

           On Sep 20, 10:19 am, Justin Anderson janderson@gmail.com
           wrote:
            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
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[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 try to run something like strings.xml, but it
fails and generates a .out file ... which then corrupts your android
project because android doesn't understand all the .out files laying
all of the place. 

On 9/20/09 10:04 AM, Raphael wrote:

  
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 application that prints a "hello world"
While trying to run I get the following error.

Also a new file named "Strings.out.xml" is formed. Kindly let me what
would be the problem.

23:47:52,968 INFO [main] Main -
javax.xml.transform.TransformerFactory=null
23:47:52,971 INFO [main] Main - java.endorsed.dirs=C:\Program Files
\Java\jre6\lib\endorsed
23:47:52,983 INFO [main] Main - launchFile: C:\Mabel_Drive\Projects
\Android_workspace\.metadata\.plugins
\org.eclipse.wst.xsl.jaxp.launching\launch\launch.xml
23:47:53,062 FATAL [main] Main - No embedded stylesheet instruction
for file: file:/C:/Mabel_Drive/Projects/Android_workspace/Sudoku/res/
values/strings.xml
org.eclipse.wst.xsl.jaxp.debug.invoker.TransformationException: No
embedded stylesheet instruction for file: file:/C:/Mabel_Drive/
Projects/Android_workspace/Sudoku/res/values/strings.xml
   at
org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProcessorInvoker.transform
(JAXPSAXProcessorInvoker.java:225)
   at
org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProcessorInvoker.transform
(JAXPSAXProcessorInvoker.java:186)
   at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.Main.main
(Main.java:73)
Caused by:
org.eclipse.wst.xsl.jaxp.debug.invoker.TransformationException: No
embedded stylesheet instruction for file: file:/C:/Mabel_Drive/
Projects/Android_workspace/Sudoku/res/values/strings.xml
   at
org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProcessorInvoker.transform
(JAXPSAXProcessorInvoker.java:214)
   ... 2 more



  
  



  
  
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---

  


-- 





[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 inner class?   I only found an alternative approach
for referencing standalone classes.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[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 instantiate an inner
static class, you can just instantiate it.  I'd be very impressed if
Android's XML layout can handle both cases.  =)

On Sep 20, 12:43 pm, martin-g ml mg.mli...@gmail.com wrote:
 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): Caused by:
  java.lang.NoSuchMethodException: RunningTaskGallery
  (Context,AttributeSet)

  The constructor that takes a Context and an AttributeSet does indeed
  exist and it calls the parent's constructor.  Both my class and
  constructors are public.

  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.

  In my particular case I do not want it to be static.

  Thanks,
  Justin

  --
  There are only 10 types of people in the world...
  Those who know binary and those who don't.
  --

  On Sun, Sep 20, 2009 at 9:29 AM, John P. johnny.d.p...@gmail.com
  wrote:

          Maybe it should be static, like the NotePad example has in
         
  http://developer.android.com/guide/samples/NotePad/src/com/example/an...

             public static class LinedEditText extends EditText { ...

          On Sep 20, 10:19 am, Justin Anderson janderson@gmail.com
          wrote:
           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
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[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 cB(that performs the
calculations).

i need to be able to READ and check if the user has entered a valid
input into the first  field(gF).  such as a double value/float value
within a given range( greater than 1.01 and less than 99.98). this
should not be an integer.  if that number is not within that range,
change the TextView01(string) informing the user what that range
should be(i.e Please enter a value between 1.00 and 99.99).  pause
xx seconds, and restore the original text to TextView01.

if  gF is within the allowed range, button cB would/should be ENABLED,
the user presses it,   the fields(EditText(3 thru 6) would be
calculated and filled in with whatever those values come out to be.

i have not been able to figure out how to READ what the user entered
into field(gF), how to PLACE/ASSIGN those values to fields 3-6(once
the calculations are done), how to get the calculation portion to fire
up, validate a range, OR change a TextView01(string).

i am at a COMPLETE loss.  can/would anyone be able to help me?  thank
all of you for your kind attention.  rc3375.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[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
function when you move from gF to next textbox but up to my knowledge
you need to code the validation criteria in  the lostfocus() function
of gF edittext. Once done its simple. If validation fails than display
error using 'AlertDialog' object and set up a message you want to
display. Search for it or else i'll send you a example code.

correct me if you find anything wrong :)

Regards,
wahib

On 9/20/09, Rc3375 rcobb3...@gmail.com wrote:

 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 cB(that performs the
 calculations).

 i need to be able to READ and check if the user has entered a valid
 input into the first  field(gF).  such as a double value/float value
 within a given range( greater than 1.01 and less than 99.98). this
 should not be an integer.  if that number is not within that range,
 change the TextView01(string) informing the user what that range
 should be(i.e Please enter a value between 1.00 and 99.99).  pause
 xx seconds, and restore the original text to TextView01.

 if  gF is within the allowed range, button cB would/should be ENABLED,
 the user presses it,   the fields(EditText(3 thru 6) would be
 calculated and filled in with whatever those values come out to be.

 i have not been able to figure out how to READ what the user entered
 into field(gF), how to PLACE/ASSIGN those values to fields 3-6(once
 the calculations are done), how to get the calculation portion to fire
 up, validate a range, OR change a TextView01(string).

 i am at a COMPLETE loss.  can/would anyone be able to help me?  thank
 all of you for your kind attention.  rc3375.

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[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.

Thanks...Mimi

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[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 necessarily
represent those of T-Mobile USA, Inc.

On Sep 19, 9:13 pm, Jeffrey Blattman jeffrey.blatt...@gmail.com
wrote:
 i understand that you can create a jar in whatever manner you wish, and
 then import the JAR into your project (in eclipse). another different
 option is to create an android service, then pre-install the service for
 use by your other apps.

 On 9/19/09 5:23 AM, Michael Dorin wrote:

  Hello,
  I am making libraries that I would like to use on different projects.
  So far I am just copying the code in...

  Is there an easy way to make a 'library' project...and I import?

  Thanks,
    Mike

 --
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[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.

Look at your Java stack trace via adb logcat, DDMS, or the DDMS
perspective in Eclipse. It will tell you where you are going wrong.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[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 to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[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 of
referencing them when they are static or not, just whether or not they are
nested.

However, there is still the issue that when I make my inner class static, I
still can't reference it from the XML file...  I tried making it static
after the suggestion was made, and it resulted in a NoSuchMethodException.
For some reason it can't find my constructor that takes both a Context and
an AttributeSet even though it exists and is public.

Thanks,
Justin

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Sun, Sep 20, 2009 at 11:00 AM, John P. johnny.d.p...@gmail.com wrote:


  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 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 instantiate an inner
  static class, you can just instantiate it.  I'd be very impressed if
  Android's XML layout can handle both cases.  =)
 
  On Sep 20, 12:43 pm, martin-g ml mg.mli...@gmail.com wrote:
 
   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): Caused by:
java.lang.NoSuchMethodException: RunningTaskGallery
(Context,AttributeSet)
 
The constructor that takes a Context and an AttributeSet does indeed
exist and it calls the parent's constructor.  Both my class and
constructors are public.
 
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.
 
In my particular case I do not want it to be static.
 
Thanks,
Justin
 
   
 --
There are only 10 types of people in the world...
Those who know binary and those who don't.
   
 --
 
On Sun, Sep 20, 2009 at 9:29 AM, John P. johnny.d.p...@gmail.com
wrote:
 
Maybe it should be static, like the NotePad example has in
   
 http://developer.android.com/guide/samples/NotePad/src/com/example/an...
 
   public static class LinedEditText extends EditText { ...
 
On Sep 20, 10:19 am, Justin Anderson 
 janderson@gmail.com
wrote:
 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
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---