[android-beginners] Re: need to learn java

2008-04-06 Thread Dan U.

I personally think it's one of the easier languages to learn, but then
again I've been working with Java for nearly 8 years. One reason I say
it's simple is that it's fairly easy to read. This does make code
quite a bit more verbose though.

Just make sure you start out simple. Make sure you write the
obligatory Hello World application, then move on to more advanced
things. There are people on the groups here that jumped right into
developing against Android without knowing Java at all. That's not a
great idea.

On Apr 6, 10:13 pm, Vames <[EMAIL PROTECTED]> wrote:
> thanks everyone, i will check those out. another question, i am fairly
> new to programming in general so is it too hard to learn java?
>
> On Apr 6, 7:39 pm, "tim jones" <[EMAIL PROTECTED]> wrote:
>
> > Free Java tutorial
>
> >http://java.sun.com/docs/books/tutorial/information/download.html
>
> > On Sun, Apr 6, 2008 at 5:45 PM, Dan U. <[EMAIL PROTECTED]> wrote:
>
> > > I recommend the core java books. They are reasonably priced and
> > > written well.
>
> > > On Apr 6, 3:19 pm, Vames <[EMAIL PROTECTED]> wrote:
>
> > > > Can anyone tell me how i can learn how to develop in java? where to
> > > > go, what tutorial to use etc.
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: need to learn java

2008-04-06 Thread Vames

thanks everyone, i will check those out. another question, i am fairly
new to programming in general so is it too hard to learn java?

On Apr 6, 7:39 pm, "tim jones" <[EMAIL PROTECTED]> wrote:
> Free Java tutorial
>
> http://java.sun.com/docs/books/tutorial/information/download.html
>
> On Sun, Apr 6, 2008 at 5:45 PM, Dan U. <[EMAIL PROTECTED]> wrote:
>
> > I recommend the core java books. They are reasonably priced and
> > written well.
>
> > On Apr 6, 3:19 pm, Vames <[EMAIL PROTECTED]> wrote:
>
> > > Can anyone tell me how i can learn how to develop in java? where to
> > > go, what tutorial to use etc.
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] want to receive intent of phone ringing!! help!!

2008-04-06 Thread franw

hi,
i want my program to start if the phone rings, so i want to receive
that action but cannot find what you need in the manifest to get this
intent to start - please help!


http://schemas.android.com/apk/res/android";
package="com.google.android.IC">








--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: need to learn java

2008-04-06 Thread tim jones

Free Java tutorial

http://java.sun.com/docs/books/tutorial/information/download.html


On Sun, Apr 6, 2008 at 5:45 PM, Dan U. <[EMAIL PROTECTED]> wrote:
>
> I recommend the core java books. They are reasonably priced and
> written well.
>
> On Apr 6, 3:19 pm, Vames <[EMAIL PROTECTED]> wrote:
>
> > Can anyone tell me how i can learn how to develop in java? where to
> > go, what tutorial to use etc.
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Most basic UI crash

2008-04-06 Thread Jason Tai

Aha!

It works!

Thanks a lot.

Jason Tai

On Apr 7, 2:49 am, "Dan U." <[EMAIL PROTECTED]> wrote:
> Your layout file is in m3 
> format.http://code.google.com/android/migrating/m3-to-m5/m5-api-changes.html
>
> On Apr 6, 6:05 am, Jason Tai <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > Keep getting
> >    "Unable to start
> > activity...ComponentInfo{...}java.lang.NullPointerException"
> > error.
>
> > Tried couple of basic examples from web, same problem:
>
> > Actual Code:
>
> > public void onCreate(Bundle icicle)
> > {
> >         super.onCreate(icicle);
>
> >         setContentView(R.layout.enter_device_name);
>
> >         final Button button = (Button) findViewById(R.id.okButt);
>
> >         //
> > ***­
> >         // If I remove the bottom statement, I can see the UI display; a
> > textedit and a abutton.
> >         // The line below causes the crash.
> >         //
> > ***­
> >         button.setOnClickListener(
> >                 new Button.OnClickListener()
> >                 {
> >                         public void onClick(View v)
> >                         {
> >                         }
> >                 }
> >         );
>
> > }
>
> > XML:
> > 
> > http://schemas.android.com/apk/res/
> > android" android:layout_width="fill_parent"
> > android:layout_height="fill_parent"
> > android:background="#FFFEE9"   android:padding="10px">
>
> >      >               android:layout_width="fill_parent"
> >               android:layout_height="wrap_content"
> >               android:text="Type your name"/>
>
> >      >               android:layout_width="fill_parent"
> >               android:layout_height="wrap_content"
> >               android:layout_below="@id/nameLab"/>
>
> >      >             android:layout_width="wrap_content"
> >             android:layout_height="wrap_content"
> >             android:layout_alignParentRight="true"
> >             android:layout_marginLeft="10px"
> >             android:text="OK"
> >             android:layout_below="@id/yourName"/>
>
> > 
>
> > SDK: m5. Emulator using HVGA-P.
>
> > Also tried to use a dialog box. Also crashes when I call
> > setOnClickListener.
>
> > BTW, the 'okButt' button always display on top of the 'yourName' edit
> > box, isn't it suppose to be
> > 'layout_below'? Other XML that I copied from some example exibit the
> > same behavior. Any clue?
>
> > Cheers...
>
> > Jason Tai
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: need to learn java

2008-04-06 Thread Dan U.

I recommend the core java books. They are reasonably priced and
written well.

On Apr 6, 3:19 pm, Vames <[EMAIL PROTECTED]> wrote:
> Can anyone tell me how i can learn how to develop in java? where to
> go, what tutorial to use etc.
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: need to learn java

2008-04-06 Thread Esteem

http://www.amazon.com/Java-Foundations-Introduction-Program-Structures/dp/0321429729

On Apr 6, 3:19 pm, Vames <[EMAIL PROTECTED]> wrote:
> Can anyone tell me how i can learn how to develop in java? where to
> go, what tutorial to use etc.
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] need to learn java

2008-04-06 Thread Vames

Can anyone tell me how i can learn how to develop in java? where to
go, what tutorial to use etc.
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: getSelectedItemPosition() not working

2008-04-06 Thread Romain Guy

It's probably because you are in touch mode. After you touch the
screen, the selection disappears.

On Sun, Apr 6, 2008 at 3:01 PM, WildLuka <[EMAIL PROTECTED]> wrote:
>
>  hi,
>
>  i'm calling getSelectedItemPosition() from ListActivity and I get -1
>  after selecting any item in the list.
>
>  this behaviour is totally unexpected.
>
>  your help will be appreciated !
>
>  Thanks in advance
>  >
>



-- 
Romain Guy
www.curious-creature.org

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] getSelectedItemPosition() not working

2008-04-06 Thread WildLuka

hi,

i'm calling getSelectedItemPosition() from ListActivity and I get -1
after selecting any item in the list.

this behaviour is totally unexpected.

your help will be appreciated !

Thanks in advance
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Trouble Launching Application

2008-04-06 Thread Dan

Hi, every time that I attempt to launch the most basic "Hello,
Android!" application, the emulator never goes past the loading screen
with the red line. The Troubleshooting FAQs suggest that Eclipse is
having trouble interfacing with the emulator and I tried the steps
suggested, no luck. Any suggestions? Thanks in advanced.
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Bring View to Front

2008-04-06 Thread [EMAIL PROTECTED]

Hi Alejandra,

You can use bringToFront() method of the View class in order to pop
the view up.
If you need to overlap the views, you can use the AbsoluteLayout which
lets you define x,y coordinates of the Views directly.

-sarp

On Apr 6, 3:35 am, "Alejandra H." <[EMAIL PROTECTED]> wrote:
> Hello :)
>
> Is there any way to bring a view to the front of the main view? I want
> it to overlap the other views. Right now, it's pushing my textview
> next to it and it's wrapping the text inside of it.
>
> Thanks
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: m5 not working

2008-04-06 Thread Dan U.

There's quite a few people using m5 successfully, myself included. I
don't know what else to tell you. If you want to email me your test
app, I'll run it in my environment, but I don't think that will help
much.

On Apr 6, 12:35 pm, wamoc <[EMAIL PROTECTED]> wrote:
> Ok, on the windows machine I didn't try anything with CVS, just to get
> m5 to work.  I downloaded eclipse and put the program files in C:/
> program files/eclipse.  I downloaded m5 and put the folder in C:/.  In
> eclipse I installed the plugins with the directions on the android
> site. I then restarted eclipse and went to properties and told it the
> location of the m5 version of the sdk.  I created a new android
> project (to test things) and R.java was created no problems.  I then
> modified a file (main.xml) and when eclipse rebuilt the project,
> R.java disappeared. I tried cleaning the project, going to android
> tools and fixing project properties, basically anything that people
> recommended to get m5 to work on a project. Nothing would fix it.
> This is the exact same problem that my Ubuntu machine is having, it
> can create an initial R.java, but when it needs updating, it will no
> longer create it. I have tried the same steps on both of cleaning and
> whatnot to try to fix it. I am out of ideas on what to do. I know it
> is not just my computer/os, because 2 computers with different
> operating systems both having the same problems seems odd. It seems to
> me that the m5 release is pretty broken.
>
> On Apr 6, 12:42 pm, "Dan U." <[EMAIL PROTECTED]> wrote:
>
> > Wow. That sucks.
>
> > My first inclination is that CVS is related. When you tried this on
> > Windows, were you opening the project from a copy you got out of CVS?
>
> > If it's not CVS, could you explain the exact steps you took to install
> > everything on the Windows machine?
>
> > On Apr 6, 10:08 am, wamoc <[EMAIL PROTECTED]> wrote:
>
> > > Ok, I installed eclipse, the plugins and the sdk on my windows
> > > machine, and the same problem is happening. Everything with this
> > > computer is a completely clean install for android and eclipse things.
> > > Any idea why this is happening?
> > > The first machine tried on was a laptop running Ubuntu Gutsy, eclipse
> > > 3.2 (did try upgrading to 3.3) originally running m3 but updated to
> > > run m5
> > > Second machine tried on was a pc running Windows XP Pro, eclipse 3.3
> > > running m5 (completely clean install, nothing for eclipse or android
> > > was ever on this comp).
>
> > > On Apr 6, 12:27 am, wamoc <[EMAIL PROTECTED]> wrote:
>
> > > > Ok, I tried installing Eclipse Europa, and that didn't fix it.
> > > > Tomorrow I will try to do this on my windows machine (shudder) and
> > > > hope it works.
>
> > > > On Apr 5, 10:19 pm, "Dan U." <[EMAIL PROTECTED]> wrote:
>
> > > > > I think your development environment must be messed up. If I do a
> > > > > clean, R.java goes away, then regenerates immediately. Your eclipse
> > > > > version is ok according to the docs, but maybe you should try getting
> > > > > 3.3. It seems Ubuntu has been giving people problems, so it might be
> > > > > related.
>
> > > > > On Apr 5, 8:31 pm, wamoc <[EMAIL PROTECTED]> wrote:
>
> > > > > > Ok, I tried copying everything over to a new project and it made an
> > > > > > initial R.java.  When I did a clean of the project, the R.java
> > > > > > disappeared again. Why can't m5 seem to do anything with R.java 
> > > > > > except
> > > > > > create an initial one?
>
> > > > > > On Apr 5, 5:17 pm, "Dan U." <[EMAIL PROTECTED]> wrote:
>
> > > > > > > I recall some other people having this problem and importing to a 
> > > > > > > new
> > > > > > > project was a solution. Like you said, having it in cvs makes 
> > > > > > > copying
> > > > > > > to a new project painful.
>
> > > > > > > Probably some config file somewhere doesn't get updated. I haven't
> > > > > > > seen a list of all the changes to various files between m3 and 
> > > > > > > m5. If
> > > > > > > you can find one, you would know what files to look at. You could 
> > > > > > > also
> > > > > > > consider creating two default projects, one in m3 and one in m5, 
> > > > > > > then
> > > > > > > running a diff on them.
>
> > > > > > > On Apr 5, 2:26 pm, wamoc <[EMAIL PROTECTED]> wrote:
>
> > > > > > > > Ok, I have figured out one thing, It wont generate the R.java 
> > > > > > > > for
> > > > > > > > existing projects, but it will for new ones. The project I am 
> > > > > > > > working
> > > > > > > > on is in a cvs repository, so I can't just try copying the 
> > > > > > > > source over
> > > > > > > > to a new project.
>
> > > > > > > > On Apr 5, 3:14 pm, wamoc <[EMAIL PROTECTED]> wrote:
>
> > > > > > > > > I just tried that and it still wont generate R.java. I double 
> > > > > > > > > checked
> > > > > > > > > the paths in Eclipse to make sure they were looking to the 
> > > > > > > > > right
> > > > > > > > > areas, and they are. Later today I will try this on a 
> > > > > > > > > 

[android-beginners] Re: Problems running the emulator (error: com.google.android.phone is not responding)

2008-04-06 Thread Digit
a 20-30 minutes first boot is not normal. M5 on a 1 GHz Mobile Pentium III
takes 7 minutes and a half on first boot. (that's the lowest running CPU I
could find).

the next SDK release should contain an improved emulator binary that runs
slightly faster. However I'm totally unsure that this will be the case for
everyone at this point. there are many problems we have a very hard time
reproducing on our own hardware.

On Sun, Apr 6, 2008 at 8:46 PM, Dan U. <[EMAIL PROTECTED]> wrote:

>
> I don't think there's much you can do. You will have to allow for a
> long boot time or upgrade your hardware. I've heard complaints about
> boot times being 20-30 minutes, but that may have been just the first
> boot.
>
> On Apr 6, 6:41 am, Jakob Bjerre Jensen <[EMAIL PROTECTED]>
> wrote:
> > Hello Digit,
> >
> > Thanks for your answer, and you are right: I ran on a CPU with 1 GHz
> > and 500 MB RAM.
> > However I fail to find any system requirements related to CPU and RAM
> > in the documentation
> > "System and Software Requirements". I only complied to the Windows XP
> > requirement. Perhaps
> > it would be an idea to state hardware requirements as well?
> >
> > Anything I can do to run the emulator on a 1 GHz CPU with 500 MB RAM?
> > Allow longer first-boot time?
> >
> > Best regards,
> > Jakob Bjerre Jensen
> >
> > On Apr 6, 1:52 am, Digit <[EMAIL PROTECTED]> wrote:
> >
> > > for the record, Eclipse and the plugin are totally un-necessary for
> > > developing Android applications. they just provide a better
> environment but
> > > you should be able to use all the tools available in $SDK/tools from
> the
> > > command-line to package run and debug your Android applications. I do
> that
> > > routinely when benchmarking emulator binaries on different PCs.
> >
> > > now, the very first time you launch the emulator on a "clean PC", the
> boot
> > > sequence will be longer because the system will build various caches.
> any
> > > boot after than should be faster.
> >
> > > the "Application not responding" dialog you see is just a symptom of
> having
> > > a very long boot sequence (at the moment, the Application Manager is
> not too
> > > sharp and considers that the Home application is not responding
> because the
> > > CPU was taken by other processes during the long boot sequence).
> >
> > > now, why the boot sequence is long on your machine can be from two
> things:
> >
> > > - you're running on a "low-end" CPU (by today's standards of course,
> i.e.
> > > anything < 2 real GHz or with < 1MB L1 cache would qualify)
> >
> > > - there are probably some bad dependency / race conditions in our boot
> > > sequence that make the system_server crash in a loop during the boot
> on some
> > > machines. it's unfortunately something we could not reproduce.
> >
> > > On Sun, Apr 6, 2008 at 1:10 AM, Jakob Bjerre Jensen <
> >
> > > [EMAIL PROTECTED]> wrote:
> >
> > > > Hello,
> >
> > > > I have problems running the emulator on a completely "clean" PC only
> with
> > > > the following installed:
> >
> > > > 1. extract android-sdk_m5-rc15_windows.zip into a folder.
> > > > 2. navigate to the tools folder and execute "emulator".
> >
> > > > I.e. no Elipse Plug-in etc. installed. First the emulator screen
> appears
> > > > as normal, then however it
> > > > "hangs" for five minutes or so, finally the following error occurs:
> >
> > > > Application Not Responding.
> > > > The application com.google.android.phone is not responding.
> >
> > > > I have done quite a lot of coding on a Windows Vista without any
> > > > problems. The problem
> > > > occurs on a Windows XP Home Edition (if that makes any difference).
> >
> > > > Are there other tasks necessary to do (e.g. installing Eclipse +
> ADT) in
> > > > order to run the emulator?
> >
> > > > Best regards,
> > > > Jakob Bjerre Jensen- Hide quoted text -
> >
> > > - Show quoted text -
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: m5 not working

2008-04-06 Thread wamoc

Ok, on the windows machine I didn't try anything with CVS, just to get
m5 to work.  I downloaded eclipse and put the program files in C:/
program files/eclipse.  I downloaded m5 and put the folder in C:/.  In
eclipse I installed the plugins with the directions on the android
site. I then restarted eclipse and went to properties and told it the
location of the m5 version of the sdk.  I created a new android
project (to test things) and R.java was created no problems.  I then
modified a file (main.xml) and when eclipse rebuilt the project,
R.java disappeared. I tried cleaning the project, going to android
tools and fixing project properties, basically anything that people
recommended to get m5 to work on a project. Nothing would fix it.
This is the exact same problem that my Ubuntu machine is having, it
can create an initial R.java, but when it needs updating, it will no
longer create it. I have tried the same steps on both of cleaning and
whatnot to try to fix it. I am out of ideas on what to do. I know it
is not just my computer/os, because 2 computers with different
operating systems both having the same problems seems odd. It seems to
me that the m5 release is pretty broken.

On Apr 6, 12:42 pm, "Dan U." <[EMAIL PROTECTED]> wrote:
> Wow. That sucks.
>
> My first inclination is that CVS is related. When you tried this on
> Windows, were you opening the project from a copy you got out of CVS?
>
> If it's not CVS, could you explain the exact steps you took to install
> everything on the Windows machine?
>
> On Apr 6, 10:08 am, wamoc <[EMAIL PROTECTED]> wrote:
>
> > Ok, I installed eclipse, the plugins and the sdk on my windows
> > machine, and the same problem is happening. Everything with this
> > computer is a completely clean install for android and eclipse things.
> > Any idea why this is happening?
> > The first machine tried on was a laptop running Ubuntu Gutsy, eclipse
> > 3.2 (did try upgrading to 3.3) originally running m3 but updated to
> > run m5
> > Second machine tried on was a pc running Windows XP Pro, eclipse 3.3
> > running m5 (completely clean install, nothing for eclipse or android
> > was ever on this comp).
>
> > On Apr 6, 12:27 am, wamoc <[EMAIL PROTECTED]> wrote:
>
> > > Ok, I tried installing Eclipse Europa, and that didn't fix it.
> > > Tomorrow I will try to do this on my windows machine (shudder) and
> > > hope it works.
>
> > > On Apr 5, 10:19 pm, "Dan U." <[EMAIL PROTECTED]> wrote:
>
> > > > I think your development environment must be messed up. If I do a
> > > > clean, R.java goes away, then regenerates immediately. Your eclipse
> > > > version is ok according to the docs, but maybe you should try getting
> > > > 3.3. It seems Ubuntu has been giving people problems, so it might be
> > > > related.
>
> > > > On Apr 5, 8:31 pm, wamoc <[EMAIL PROTECTED]> wrote:
>
> > > > > Ok, I tried copying everything over to a new project and it made an
> > > > > initial R.java.  When I did a clean of the project, the R.java
> > > > > disappeared again. Why can't m5 seem to do anything with R.java except
> > > > > create an initial one?
>
> > > > > On Apr 5, 5:17 pm, "Dan U." <[EMAIL PROTECTED]> wrote:
>
> > > > > > I recall some other people having this problem and importing to a 
> > > > > > new
> > > > > > project was a solution. Like you said, having it in cvs makes 
> > > > > > copying
> > > > > > to a new project painful.
>
> > > > > > Probably some config file somewhere doesn't get updated. I haven't
> > > > > > seen a list of all the changes to various files between m3 and m5. 
> > > > > > If
> > > > > > you can find one, you would know what files to look at. You could 
> > > > > > also
> > > > > > consider creating two default projects, one in m3 and one in m5, 
> > > > > > then
> > > > > > running a diff on them.
>
> > > > > > On Apr 5, 2:26 pm, wamoc <[EMAIL PROTECTED]> wrote:
>
> > > > > > > Ok, I have figured out one thing, It wont generate the R.java for
> > > > > > > existing projects, but it will for new ones. The project I am 
> > > > > > > working
> > > > > > > on is in a cvs repository, so I can't just try copying the source 
> > > > > > > over
> > > > > > > to a new project.
>
> > > > > > > On Apr 5, 3:14 pm, wamoc <[EMAIL PROTECTED]> wrote:
>
> > > > > > > > I just tried that and it still wont generate R.java. I double 
> > > > > > > > checked
> > > > > > > > the paths in Eclipse to make sure they were looking to the right
> > > > > > > > areas, and they are. Later today I will try this on a different
> > > > > > > > computer and hope that that works. If any body else has any 
> > > > > > > > ideas, I
> > > > > > > > would greatly appreciate hearing them because I do most of my 
> > > > > > > > work on
> > > > > > > > this computer.
>
> > > > > > > > On Apr 4, 1:42 pm, "Xavier Ducrohet" <[EMAIL PROTECTED]> wrote:
>
> > > > > > > > > Hi,
>
> > > > > > > > > Look athttp://code.google.com/android/intro/upgrading.html
> > > > > > > > > See item 5 "Update your project properti

[android-beginners] Re: Bring View to Front

2008-04-06 Thread [EMAIL PROTECTED]

Hi Alejandra,

You can use bringToFront() method of the View class in order to pop
the view up.
If you need to overlap the views, you can use the AbsoluteLayout which
lets you define x,y coordinates of the Views directly.

-sarp

On Apr 6, 3:35 am, "Alejandra H." <[EMAIL PROTECTED]> wrote:
> Hello :)
>
> Is there any way to bring a view to the front of the main view? I want
> it to overlap the other views. Right now, it's pushing my textview
> next to it and it's wrapping the text inside of it.
>
> Thanks
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: readonly singleline TextView and text which doesn't fit there completely

2008-04-06 Thread Romain Guy

This feature is part of the next SDK. Using an attribute called
"ellipsize" you will be able to automatically add an ellipsis "..." at
the beginning, end or in the middle of the text, as needed.

On Sun, Apr 6, 2008 at 8:12 AM, Selmi <[EMAIL PROTECTED]> wrote:
>
>  is it possible to find out which portion of text is visible, so i can
>  alter it if it doesn't fit completely?
>
>  or even better, is it possible to set textview somehow to such
>  behaviour, that in case when text doesn't fit there completely it will
>  show only beginning of text and append "..." to the end?
>  >
>



-- 
Romain Guy
www.curious-creature.org

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: readonly singleline TextView and text which doesn't fit there completely

2008-04-06 Thread Dan U.

A few days ago someone was doing some things with formatting text in a
textview and it was suggested he look at SpannableString and
SpannableStringBuilder. I've looked at the docs, but those classes are
still quite confusing to me, but maybe they would do something useful
for you.

On Apr 6, 8:12 am, Selmi <[EMAIL PROTECTED]> wrote:
> is it possible to find out which portion of text is visible, so i can
> alter it if it doesn't fit completely?
>
> or even better, is it possible to set textview somehow to such
> behaviour, that in case when text doesn't fit there completely it will
> show only beginning of text and append "..." to the end?
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Who has the specific document about XML layout files ?

2008-04-06 Thread Dan U.

This might sound like a smart-ass comment, but have you tried reading
the api docs? Nearly everything related to layouts and related xml is
explained. Just look for the class you want to know about (FrameLayout
for instance): http://code.google.com/android/reference/index.html

On Apr 6, 4:45 am, wolf <[EMAIL PROTECTED]> wrote:
> The andbook(version release.002) also does not provide these
> information.
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Most basic UI crash

2008-04-06 Thread Dan U.

Your layout file is in m3 format. 
http://code.google.com/android/migrating/m3-to-m5/m5-api-changes.html

On Apr 6, 6:05 am, Jason Tai <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Keep getting
>"Unable to start
> activity...ComponentInfo{...}java.lang.NullPointerException"
> error.
>
> Tried couple of basic examples from web, same problem:
>
> Actual Code:
>
> public void onCreate(Bundle icicle)
> {
> super.onCreate(icicle);
>
> setContentView(R.layout.enter_device_name);
>
> final Button button = (Button) findViewById(R.id.okButt);
>
> //
> ***
> // If I remove the bottom statement, I can see the UI display; a
> textedit and a abutton.
> // The line below causes the crash.
> //
> ***
> button.setOnClickListener(
> new Button.OnClickListener()
> {
> public void onClick(View v)
> {
> }
> }
> );
>
> }
>
> XML:
> 
> http://schemas.android.com/apk/res/
> android" android:layout_width="fill_parent"
> android:layout_height="fill_parent"
> android:background="#FFFEE9"   android:padding="10px">
>
>android:layout_width="fill_parent"
>   android:layout_height="wrap_content"
>   android:text="Type your name"/>
>
>android:layout_width="fill_parent"
>   android:layout_height="wrap_content"
>   android:layout_below="@id/nameLab"/>
>
>  android:layout_width="wrap_content"
> android:layout_height="wrap_content"
> android:layout_alignParentRight="true"
> android:layout_marginLeft="10px"
> android:text="OK"
> android:layout_below="@id/yourName"/>
>
> 
>
> SDK: m5. Emulator using HVGA-P.
>
> Also tried to use a dialog box. Also crashes when I call
> setOnClickListener.
>
> BTW, the 'okButt' button always display on top of the 'yourName' edit
> box, isn't it suppose to be
> 'layout_below'? Other XML that I copied from some example exibit the
> same behavior. Any clue?
>
> Cheers...
>
> Jason Tai
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Problems running the emulator (error: com.google.android.phone is not responding)

2008-04-06 Thread Dan U.

I don't think there's much you can do. You will have to allow for a
long boot time or upgrade your hardware. I've heard complaints about
boot times being 20-30 minutes, but that may have been just the first
boot.

On Apr 6, 6:41 am, Jakob Bjerre Jensen <[EMAIL PROTECTED]>
wrote:
> Hello Digit,
>
> Thanks for your answer, and you are right: I ran on a CPU with 1 GHz
> and 500 MB RAM.
> However I fail to find any system requirements related to CPU and RAM
> in the documentation
> "System and Software Requirements". I only complied to the Windows XP
> requirement. Perhaps
> it would be an idea to state hardware requirements as well?
>
> Anything I can do to run the emulator on a 1 GHz CPU with 500 MB RAM?
> Allow longer first-boot time?
>
> Best regards,
> Jakob Bjerre Jensen
>
> On Apr 6, 1:52 am, Digit <[EMAIL PROTECTED]> wrote:
>
> > for the record, Eclipse and the plugin are totally un-necessary for
> > developing Android applications. they just provide a better environment but
> > you should be able to use all the tools available in $SDK/tools from the
> > command-line to package run and debug your Android applications. I do that
> > routinely when benchmarking emulator binaries on different PCs.
>
> > now, the very first time you launch the emulator on a "clean PC", the boot
> > sequence will be longer because the system will build various caches. any
> > boot after than should be faster.
>
> > the "Application not responding" dialog you see is just a symptom of having
> > a very long boot sequence (at the moment, the Application Manager is not too
> > sharp and considers that the Home application is not responding because the
> > CPU was taken by other processes during the long boot sequence).
>
> > now, why the boot sequence is long on your machine can be from two things:
>
> > - you're running on a "low-end" CPU (by today's standards of course, i.e.
> > anything < 2 real GHz or with < 1MB L1 cache would qualify)
>
> > - there are probably some bad dependency / race conditions in our boot
> > sequence that make the system_server crash in a loop during the boot on some
> > machines. it's unfortunately something we could not reproduce.
>
> > On Sun, Apr 6, 2008 at 1:10 AM, Jakob Bjerre Jensen <
>
> > [EMAIL PROTECTED]> wrote:
>
> > > Hello,
>
> > > I have problems running the emulator on a completely "clean" PC only with
> > > the following installed:
>
> > > 1. extract android-sdk_m5-rc15_windows.zip into a folder.
> > > 2. navigate to the tools folder and execute "emulator".
>
> > > I.e. no Elipse Plug-in etc. installed. First the emulator screen appears
> > > as normal, then however it
> > > "hangs" for five minutes or so, finally the following error occurs:
>
> > > Application Not Responding.
> > > The application com.google.android.phone is not responding.
>
> > > I have done quite a lot of coding on a Windows Vista without any
> > > problems. The problem
> > > occurs on a Windows XP Home Edition (if that makes any difference).
>
> > > Are there other tasks necessary to do (e.g. installing Eclipse + ADT) in
> > > order to run the emulator?
>
> > > Best regards,
> > > Jakob Bjerre Jensen- Hide quoted text -
>
> > - Show quoted text -
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: best way to setup 3 buttons

2008-04-06 Thread Dan U.

Yes, that's expected behavior for fill_parent. It "fills" what's left
in the parent which means it pushes other things out of view. I think
you could accomplish what you want by specifying a layout_weight on
button 2.

On Apr 6, 8:46 am, Rahul <[EMAIL PROTECTED]> wrote:
> ok i am having trouble with my current layout. I want to set this up
> so that there are 3 buttons on one line.
> The first button on the left should be a set width, and the second
> button should fill the remaining space, and the third button should be
> a set width.
>
> basically this-
> button 1button 2button 3
> XXX===XXX
> 
> full width of android window
>
> right now I am using a LinearLayout but the problem is once we set
> button 2 to fill_parent, button 3 never shows up
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: m5 not working

2008-04-06 Thread Dan U.

Wow. That sucks.

My first inclination is that CVS is related. When you tried this on
Windows, were you opening the project from a copy you got out of CVS?

If it's not CVS, could you explain the exact steps you took to install
everything on the Windows machine?

On Apr 6, 10:08 am, wamoc <[EMAIL PROTECTED]> wrote:
> Ok, I installed eclipse, the plugins and the sdk on my windows
> machine, and the same problem is happening. Everything with this
> computer is a completely clean install for android and eclipse things.
> Any idea why this is happening?
> The first machine tried on was a laptop running Ubuntu Gutsy, eclipse
> 3.2 (did try upgrading to 3.3) originally running m3 but updated to
> run m5
> Second machine tried on was a pc running Windows XP Pro, eclipse 3.3
> running m5 (completely clean install, nothing for eclipse or android
> was ever on this comp).
>
> On Apr 6, 12:27 am, wamoc <[EMAIL PROTECTED]> wrote:
>
> > Ok, I tried installing Eclipse Europa, and that didn't fix it.
> > Tomorrow I will try to do this on my windows machine (shudder) and
> > hope it works.
>
> > On Apr 5, 10:19 pm, "Dan U." <[EMAIL PROTECTED]> wrote:
>
> > > I think your development environment must be messed up. If I do a
> > > clean, R.java goes away, then regenerates immediately. Your eclipse
> > > version is ok according to the docs, but maybe you should try getting
> > > 3.3. It seems Ubuntu has been giving people problems, so it might be
> > > related.
>
> > > On Apr 5, 8:31 pm, wamoc <[EMAIL PROTECTED]> wrote:
>
> > > > Ok, I tried copying everything over to a new project and it made an
> > > > initial R.java.  When I did a clean of the project, the R.java
> > > > disappeared again. Why can't m5 seem to do anything with R.java except
> > > > create an initial one?
>
> > > > On Apr 5, 5:17 pm, "Dan U." <[EMAIL PROTECTED]> wrote:
>
> > > > > I recall some other people having this problem and importing to a new
> > > > > project was a solution. Like you said, having it in cvs makes copying
> > > > > to a new project painful.
>
> > > > > Probably some config file somewhere doesn't get updated. I haven't
> > > > > seen a list of all the changes to various files between m3 and m5. If
> > > > > you can find one, you would know what files to look at. You could also
> > > > > consider creating two default projects, one in m3 and one in m5, then
> > > > > running a diff on them.
>
> > > > > On Apr 5, 2:26 pm, wamoc <[EMAIL PROTECTED]> wrote:
>
> > > > > > Ok, I have figured out one thing, It wont generate the R.java for
> > > > > > existing projects, but it will for new ones. The project I am 
> > > > > > working
> > > > > > on is in a cvs repository, so I can't just try copying the source 
> > > > > > over
> > > > > > to a new project.
>
> > > > > > On Apr 5, 3:14 pm, wamoc <[EMAIL PROTECTED]> wrote:
>
> > > > > > > I just tried that and it still wont generate R.java. I double 
> > > > > > > checked
> > > > > > > the paths in Eclipse to make sure they were looking to the right
> > > > > > > areas, and they are. Later today I will try this on a different
> > > > > > > computer and hope that that works. If any body else has any 
> > > > > > > ideas, I
> > > > > > > would greatly appreciate hearing them because I do most of my 
> > > > > > > work on
> > > > > > > this computer.
>
> > > > > > > On Apr 4, 1:42 pm, "Xavier Ducrohet" <[EMAIL PROTECTED]> wrote:
>
> > > > > > > > Hi,
>
> > > > > > > > Look athttp://code.google.com/android/intro/upgrading.html
> > > > > > > > See item 5 "Update your project properties". Make sure you did 
> > > > > > > > that.
>
> > > > > > > > Xav
>
> > > > > > > > On Fri, Apr 4, 2008 at 12:07 PM, wamoc <[EMAIL PROTECTED]> 
> > > > > > > > wrote:
>
> > > > > > > > >  I am running Ubuntu Gutsy and eclipse 3.2 It isn't a problem 
> > > > > > > > > with my
> > > > > > > > >  xml files (I did update the files for new syntax with no 
> > > > > > > > > effect). Do
> > > > > > > > >  you have any idea why m5 wont build the R.java file? I have 
> > > > > > > > > tried
> > > > > > > > >  cleaning the project to get it to build, but nothing works 
> > > > > > > > > to get
> > > > > > > > >  R.java except for going back to m3. A project that I am 
> > > > > > > > > working on we
> > > > > > > > >  need some of the features in m5, but can't get it to work.
>
> > > > > > > > >  On Apr 4, 12:03 pm, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
> > > > > > > > >  > Do your xml files follow the new syntax rules for m5. You 
> > > > > > > > > might want to
> > > > > > > > >  > paste your resource files and your resource folder names 
> > > > > > > > > here.
> > > > > > > > >  > I would also need your operating system version and 
> > > > > > > > > eclipse version.
>
> > > > > > > > >  > Thanks,
> > > > > > > > >  > Megha
>
> > > > > > > > > > On Fri, Apr 4, 2008 at 10:30 AM, wamoc <[EMAIL PROTECTED]> 
> > > > > > > > > > wrote:
>
> > > > > > > > >  > > Yes I did try that. I actually completely uninstalled 
> > > > > > >

[android-beginners] Re: Make a button reset a program

2008-04-06 Thread Dan U.

I've heard there is supposed to be some functionality coming in a
future sdk to close an application. So I guess maybe in code you would
make a close call (or whatever they call the method), then a
startActivity call. If you wanted to do the same thing in the current
sdk, you'd probably have to unwind the activity stack by using
finish() calls in all your onActivityResult methods.

On Apr 6, 11:33 am, Rahul <[EMAIL PROTECTED]> wrote:
> How would i go about making a button restart a program entirely?
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Make a button reset a program

2008-04-06 Thread Rahul

How would i go about making a button restart a program entirely?
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: m5 not working

2008-04-06 Thread wamoc

Ok, I installed eclipse, the plugins and the sdk on my windows
machine, and the same problem is happening. Everything with this
computer is a completely clean install for android and eclipse things.
Any idea why this is happening?
The first machine tried on was a laptop running Ubuntu Gutsy, eclipse
3.2 (did try upgrading to 3.3) originally running m3 but updated to
run m5
Second machine tried on was a pc running Windows XP Pro, eclipse 3.3
running m5 (completely clean install, nothing for eclipse or android
was ever on this comp).

On Apr 6, 12:27 am, wamoc <[EMAIL PROTECTED]> wrote:
> Ok, I tried installing Eclipse Europa, and that didn't fix it.
> Tomorrow I will try to do this on my windows machine (shudder) and
> hope it works.
>
> On Apr 5, 10:19 pm, "Dan U." <[EMAIL PROTECTED]> wrote:
>
> > I think your development environment must be messed up. If I do a
> > clean, R.java goes away, then regenerates immediately. Your eclipse
> > version is ok according to the docs, but maybe you should try getting
> > 3.3. It seems Ubuntu has been giving people problems, so it might be
> > related.
>
> > On Apr 5, 8:31 pm, wamoc <[EMAIL PROTECTED]> wrote:
>
> > > Ok, I tried copying everything over to a new project and it made an
> > > initial R.java.  When I did a clean of the project, the R.java
> > > disappeared again. Why can't m5 seem to do anything with R.java except
> > > create an initial one?
>
> > > On Apr 5, 5:17 pm, "Dan U." <[EMAIL PROTECTED]> wrote:
>
> > > > I recall some other people having this problem and importing to a new
> > > > project was a solution. Like you said, having it in cvs makes copying
> > > > to a new project painful.
>
> > > > Probably some config file somewhere doesn't get updated. I haven't
> > > > seen a list of all the changes to various files between m3 and m5. If
> > > > you can find one, you would know what files to look at. You could also
> > > > consider creating two default projects, one in m3 and one in m5, then
> > > > running a diff on them.
>
> > > > On Apr 5, 2:26 pm, wamoc <[EMAIL PROTECTED]> wrote:
>
> > > > > Ok, I have figured out one thing, It wont generate the R.java for
> > > > > existing projects, but it will for new ones. The project I am working
> > > > > on is in a cvs repository, so I can't just try copying the source over
> > > > > to a new project.
>
> > > > > On Apr 5, 3:14 pm, wamoc <[EMAIL PROTECTED]> wrote:
>
> > > > > > I just tried that and it still wont generate R.java. I double 
> > > > > > checked
> > > > > > the paths in Eclipse to make sure they were looking to the right
> > > > > > areas, and they are. Later today I will try this on a different
> > > > > > computer and hope that that works. If any body else has any ideas, I
> > > > > > would greatly appreciate hearing them because I do most of my work 
> > > > > > on
> > > > > > this computer.
>
> > > > > > On Apr 4, 1:42 pm, "Xavier Ducrohet" <[EMAIL PROTECTED]> wrote:
>
> > > > > > > Hi,
>
> > > > > > > Look athttp://code.google.com/android/intro/upgrading.html
> > > > > > > See item 5 "Update your project properties". Make sure you did 
> > > > > > > that.
>
> > > > > > > Xav
>
> > > > > > > On Fri, Apr 4, 2008 at 12:07 PM, wamoc <[EMAIL PROTECTED]> wrote:
>
> > > > > > > >  I am running Ubuntu Gutsy and eclipse 3.2 It isn't a problem 
> > > > > > > > with my
> > > > > > > >  xml files (I did update the files for new syntax with no 
> > > > > > > > effect). Do
> > > > > > > >  you have any idea why m5 wont build the R.java file? I have 
> > > > > > > > tried
> > > > > > > >  cleaning the project to get it to build, but nothing works to 
> > > > > > > > get
> > > > > > > >  R.java except for going back to m3. A project that I am 
> > > > > > > > working on we
> > > > > > > >  need some of the features in m5, but can't get it to work.
>
> > > > > > > >  On Apr 4, 12:03 pm, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
> > > > > > > >  > Do your xml files follow the new syntax rules for m5. You 
> > > > > > > > might want to
> > > > > > > >  > paste your resource files and your resource folder names 
> > > > > > > > here.
> > > > > > > >  > I would also need your operating system version and eclipse 
> > > > > > > > version.
>
> > > > > > > >  > Thanks,
> > > > > > > >  > Megha
>
> > > > > > > > > On Fri, Apr 4, 2008 at 10:30 AM, wamoc <[EMAIL PROTECTED]> 
> > > > > > > > > wrote:
>
> > > > > > > >  > > Yes I did try that. I actually completely uninstalled 
> > > > > > > > eclipse and
> > > > > > > >  > > installed only the new ADT plugin and tried that way. I 
> > > > > > > > was still
> > > > > > > >  > > unsuccessful with that.
>
> > > > > > > >  > > On Apr 3, 5:45 pm, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
> > > > > > > >  > > >  Hi,
>
> > > > > > > >  > > >  Did you uninstall the previous version of the eclipse 
> > > > > > > > ADT plugin and
> > > > > > > >  > > > install the latest one?
>
> > > > > > > >  > > >  -Megha
>
> > > > > > > >  > > > On Thu, Apr 3, 2008 at 2:38 PM, wamoc <[EM

[android-beginners] Howto? Boxes with text movable by touch

2008-04-06 Thread Tom Arnold
Hello list,

i want to code something like a scroller (C64 style) with text in boxes that
can be moved by flipping it with a finger.The boxes should have different
sizes. How would i do that and what is the best example to start from?

Thanks!

- Tom -

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] best way to setup 3 buttons

2008-04-06 Thread Rahul

ok i am having trouble with my current layout. I want to set this up
so that there are 3 buttons on one line.
The first button on the left should be a set width, and the second
button should fill the remaining space, and the third button should be
a set width.

basically this-
button 1button 2button 3
XXX===XXX

full width of android window

right now I am using a LinearLayout but the problem is once we set
button 2 to fill_parent, button 3 never shows up
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] readonly singleline TextView and text which doesn't fit there completely

2008-04-06 Thread Selmi

is it possible to find out which portion of text is visible, so i can
alter it if it doesn't fit completely?

or even better, is it possible to set textview somehow to such
behaviour, that in case when text doesn't fit there completely it will
show only beginning of text and append "..." to the end?
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Problems running the emulator (error: com.google.android.phone is not responding)

2008-04-06 Thread Jakob Bjerre Jensen

Hello Digit,

Thanks for your answer, and you are right: I ran on a CPU with 1 GHz
and 500 MB RAM.
However I fail to find any system requirements related to CPU and RAM
in the documentation
"System and Software Requirements". I only complied to the Windows XP
requirement. Perhaps
it would be an idea to state hardware requirements as well?

Anything I can do to run the emulator on a 1 GHz CPU with 500 MB RAM?
Allow longer first-boot time?

Best regards,
Jakob Bjerre Jensen

On Apr 6, 1:52 am, Digit <[EMAIL PROTECTED]> wrote:
> for the record, Eclipse and the plugin are totally un-necessary for
> developing Android applications. they just provide a better environment but
> you should be able to use all the tools available in $SDK/tools from the
> command-line to package run and debug your Android applications. I do that
> routinely when benchmarking emulator binaries on different PCs.
>
> now, the very first time you launch the emulator on a "clean PC", the boot
> sequence will be longer because the system will build various caches. any
> boot after than should be faster.
>
> the "Application not responding" dialog you see is just a symptom of having
> a very long boot sequence (at the moment, the Application Manager is not too
> sharp and considers that the Home application is not responding because the
> CPU was taken by other processes during the long boot sequence).
>
> now, why the boot sequence is long on your machine can be from two things:
>
> - you're running on a "low-end" CPU (by today's standards of course, i.e.
> anything < 2 real GHz or with < 1MB L1 cache would qualify)
>
> - there are probably some bad dependency / race conditions in our boot
> sequence that make the system_server crash in a loop during the boot on some
> machines. it's unfortunately something we could not reproduce.
>
> On Sun, Apr 6, 2008 at 1:10 AM, Jakob Bjerre Jensen <
>
>
>
> [EMAIL PROTECTED]> wrote:
>
> > Hello,
>
> > I have problems running the emulator on a completely "clean" PC only with
> > the following installed:
>
> > 1. extract android-sdk_m5-rc15_windows.zip into a folder.
> > 2. navigate to the tools folder and execute "emulator".
>
> > I.e. no Elipse Plug-in etc. installed. First the emulator screen appears
> > as normal, then however it
> > "hangs" for five minutes or so, finally the following error occurs:
>
> > Application Not Responding.
> > The application com.google.android.phone is not responding.
>
> > I have done quite a lot of coding on a Windows Vista without any
> > problems. The problem
> > occurs on a Windows XP Home Edition (if that makes any difference).
>
> > Are there other tasks necessary to do (e.g. installing Eclipse + ADT) in
> > order to run the emulator?
>
> > Best regards,
> > Jakob Bjerre Jensen- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Most basic UI crash

2008-04-06 Thread Jason Tai

Hi,

Keep getting
   "Unable to start
activity...ComponentInfo{...}java.lang.NullPointerException"
error.

Tried couple of basic examples from web, same problem:

Actual Code:

public void onCreate(Bundle icicle)
{
super.onCreate(icicle);

setContentView(R.layout.enter_device_name);

final Button button = (Button) findViewById(R.id.okButt);

//
***
// If I remove the bottom statement, I can see the UI display; a
textedit and a abutton.
// The line below causes the crash.
//
***
button.setOnClickListener(
new Button.OnClickListener()
{
public void onClick(View v)
{
}
}
);
}

XML:

http://schemas.android.com/apk/res/
android" android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#FFFEE9"   android:padding="10px">









SDK: m5. Emulator using HVGA-P.

Also tried to use a dialog box. Also crashes when I call
setOnClickListener.

BTW, the 'okButt' button always display on top of the 'yourName' edit
box, isn't it suppose to be
'layout_below'? Other XML that I copied from some example exibit the
same behavior. Any clue?

Cheers...

Jason Tai
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Who has the specific document about XML layout files ?

2008-04-06 Thread wolf

The andbook(version release.002) also does not provide these
information.
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Who has the specific document about XML layout files ?

2008-04-06 Thread wolf

Though there are some tools help me design the layout, sometimes I
want to know the specific meanning of the XML file. For instance ,
what are FrameLayout and RelativeLayout ? The whole attributes of
android like android:visibility, android:layout_width, and so on...
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Embed audio file !

2008-04-06 Thread Dan U.

Try removing the prepare() call. I'm using m5 and having that call in
your example caused it to break on me.

On Apr 6, 1:24 am, "LE THANH TUNG" <[EMAIL PROTECTED]> wrote:
> Still having the problem.
>
> On Fri, Apr 4, 2008 at 10:34 PM, LE THANH TUNG <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > I use m3, is this the problem ?
>
> > On Fri, Apr 4, 2008 at 10:28 PM, LE THANH TUNG <[EMAIL PROTECTED]>
> > wrote:
>
> > > Hi !
>
> > > I follow exactly the instruction from
> > >http://code.google.com/android/toolbox/apis/media.htmlto embed media
> > > file. I created raw in res then add android.wmv and use the following code
> > > to embed it. I don't know why it show R.raw cannot be resolved. How to
> > > resolve ?
>
> > > ...
> > > showAudio(this);
> > > ...
>
> > >void showAudio(Context context)
> > > {
> > > InputStream is = 
> > > this.getResources().openRawResource(R.raw.android);
>
> > > MediaPlayer mp = MediaPlayer.create(context, R.raw.android);
> > > mp.prepare();
> > > mp.start();
> > > }
>
> > > Thanks for help !
>
> > > --
> > > Many thanks and regards
> > > LÊ THANH TÙNG
> > > Da Nang, Vietnam
>
> > --
> > Many thanks and regards
> > LÊ THANH TÙNG
> > Da Nang, Vietnam
>
> --
> Many thanks and regards
> LÊ THANH TÙNG
> Da Nang, Vietnam
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Embed audio file !

2008-04-06 Thread LE THANH TUNG
Still having the problem.

On Fri, Apr 4, 2008 at 10:34 PM, LE THANH TUNG <[EMAIL PROTECTED]>
wrote:

> I use m3, is this the problem ?
>
>
> On Fri, Apr 4, 2008 at 10:28 PM, LE THANH TUNG <[EMAIL PROTECTED]>
> wrote:
>
> > Hi !
> >
> > I follow exactly the instruction from
> > http://code.google.com/android/toolbox/apis/media.html to embed media
> > file. I created raw in res then add android.wmv and use the following code
> > to embed it. I don't know why it show R.raw cannot be resolved. How to
> > resolve ?
> >
> > ...
> > showAudio(this);
> > ...
> >
> >void showAudio(Context context)
> > {
> > InputStream is = this.getResources().openRawResource(R.raw.android);
> >
> > MediaPlayer mp = MediaPlayer.create(context, R.raw.android);
> > mp.prepare();
> > mp.start();
> > }
> >
> > Thanks for help !
> >
> > --
> > Many thanks and regards
> > LÊ THANH TÙNG
> > Da Nang, Vietnam
>
>
>
>
> --
> Many thanks and regards
> LÊ THANH TÙNG
> Da Nang, Vietnam
>



-- 
Many thanks and regards
LÊ THANH TÙNG
Da Nang, Vietnam

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Bring View to Front

2008-04-06 Thread Alejandra H.

Hello :)

Is there any way to bring a view to the front of the main view? I want
it to overlap the other views. Right now, it's pushing my textview
next to it and it's wrapping the text inside of it.

Thanks



--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---