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

[android-beginners] Re: Problems importing Notepad Tutorial projects with Fedora Eclipse 3.4.2, ADT plugin 0.9.1

2009-09-15 Thread John P.
I'm confused because if you've successfully done step 2 where you presumably clicked on the radio button to Create project from existing source, you should get an enabled textfield where you can specify the location of the said existing source. If it is indeed true that such textfield does not

[android-beginners] Re: What's good to start with?

2009-09-14 Thread John P.
Wow, great job taking the initiative to develop on Android! I'm not sure of your Java level, but if you have a hard time following through the SDK documentation (http://developer.android.com/guide/ index.html), particularly the Tutorial section, try to get more familiarized with programming in

[android-beginners] Re: preventing Activity from destroying

2009-09-09 Thread John P.
It is true that when the Back button is pressed, onDestroy() is called. But hitting the Home button invokes the activity's onStop() for me. Now, it is true that if Android determines it needs memory, it may then invoke onDestroy() on the stopped activity. It sounds like if you want your

[android-beginners] Re: !!!!!!!!!!!!!!!!How to update dialog content?

2009-09-05 Thread John P.
To display different dialogs, you have couple options. 1. Continue to use dialogs managed by the activity, but pass different ids in showDialog(int), and in your onCreateDialog(int id), check the parameter id and return the appropriate dialog. In your current code, you're passing 0 in both bt1

[android-beginners] Re: !!!!!!!!!!!!!!!!How to update dialog content?

2009-09-05 Thread John P.
My bad about the dismiss(). I read over your code again and it's in the dialog's onClick() event, which is right. On Sep 5, 9:50 am, John P. johnny.d.p...@gmail.com wrote: To display different dialogs, you have couple options. 1.  Continue to use dialogs managed by the activity, but pass

[android-beginners] Re: How can I save a ranking info of game ?

2009-09-05 Thread John P.
The question is a bit broad. Sure, you can use a SQL server to store your rankings. You can also use flatfiles if your data is small. If you're asking how to implement SQL server and network communication, I'd first get your data working locally on a SQL server first, then achieve a simple

[android-beginners] Re: problems getting started

2009-09-04 Thread John P.
that it is EXTREMELY slow even on my new double Pentium PC. It takes nearly 2 minutes to launch and display the application in the emulated terminal. Not very useful for development !! The better way to view the screen is by displaying main.xml. On Sep 4, 12:12 am, John P. johnny.d.p...@gmail.com wrote

[android-beginners] Re: problems getting started

2009-09-03 Thread John P.
Regarding the cases when the R class does not get generated/updated in time, try the following (in no particular order): - Manually delete the R.java class, so the next time it will generate a completely new one. - Right click on the project - Android Tools - Fix Project Properties - Clean the

[android-beginners] Re: INTERNET

2009-08-20 Thread John P.
I don't think you want to use sockets if the receiving end isn't setup to listen for them (in your case of www.google.com). If you want to communicate with http protocol, use a Http class. It may be possible to build your own HTTP reader using sockets, but there's already one available from

[android-beginners] Re: Cached GPS info?

2009-08-11 Thread John P.
Hi, The GPS band and data bands are separate, so you can get GPS information for free even if you don't have any carrier data plans. Even if you don't have wifi, you can still pickup GPS information. Note that accessing websites such as Google Maps requires data plan or wifi connection.

[android-beginners] Re: Android Developer's Guide

2009-08-11 Thread John P.
Sure, download the SDK and it's at $SDK/docs/guide/. On Aug 11, 5:53 pm, Thomas tot...@gmail.com wrote: So I just started out and I am still reading through the Developer's guide. However I will be taking a flight later on and I will not have access to the internet while flying. I was curious

[android-beginners] Re: language specific input

2008-04-09 Thread John P.
It seems that it's not currently support. Take a look at bottom of http://code.google.com/android/devel/resources-i18n.html#i18n On Apr 9, 1:56 pm, Raul Bocter [EMAIL PROTECTED] wrote: nobody knows ? ... Digit, Megha ? regards, Raul On Tue, Mar 25, 2008 at 11:12 PM, Raul Bocter [EMAIL