Apr 27 | 7:55 PM |
Mark M. | has entered the room |
Mark M. | turned on guest access |
Apr 27 | 8:20 PM |
Sanjeev | has entered the room |
Mark M. |
howdy, Sanjeev!
|
Sanjeev |
hi Mark
|
Sanjeev |
how are you
|
Sanjeev |
this is my first time in the office hgours
|
Mark M. |
it's been a somewhat stressful day, but I'm OK now -- and you?
|
Sanjeev |
its been a long day at work
|
Sanjeev |
i just got home
|
Apr 27 | 8:25 PM |
Mark M. |
do you have any questions regarding Android?
|
Sanjeev |
I have a question, i believe its more of a java part of the android
|
Mark M. |
go ahead
|
Sanjeev |
give me 5 mins that way i put the question the right way
|
Mark M. |
no problem
|
Sanjeev |
on pg 37 on the busy coders guide, how can i get more than one text to display
|
Apr 27 | 8:30 PM |
Mark M. |
Well, page 37 shows a full-screen Button
|
Sanjeev |
by that i mean if i wanted, altitude, direction (compass) etc
|
Mark M. |
if you want more than one widget on the screen, you will need some sort of container class.
|
Mark M. |
such as a LinearLayout or RelativeLayout
|
Mark M. |
those are covered in Chapter 6 of that book
|
Sanjeev |
even if i wanted to display just text, not widget
|
Sanjeev |
i wanted to display,
|
Mark M. |
well, text normally is displayed via a TextView, which is a widget
|
Sanjeev |
alt: ---- m
|
Mark M. |
a Button can only have a single caption
|
Sanjeev |
time:----m
|
Mark M. |
you are welcome to make that caption as long as you want
|
Sanjeev |
oreientation:---m
|
Mark M. |
but your users will be expecting something better formatted than a single long captoin
|
Mark M. |
er, caption
|
Apr 27 | 8:35 PM |
Sanjeev |
i agree with you.
|
Sanjeev |
but if i wanted to just display more than one parameter (like alt, time, direction)
|
Sanjeev |
what would be the best way to achieve that
|
Mark M. |
probably a LinearLayout or RelativeLayout, holding a set of TextView widgets
|
Sanjeev |
ok
|
Sanjeev |
ok
|
Sanjeev |
i will try that and get back to you with the result
|
Mark M. |
sounds good
|
Sanjeev |
probably not in this session, but in next office hours
|
Mark M. |
that too sounds good
|
Apr 27 | 8:40 PM |
Sanjeev |
another question regarding eclipse, i am not able to open the device manager
|
Mark M. |
I do not use Eclipse, so I may not be able to help much
|
Sanjeev |
i don't know if this is a appropriate question in this caht
|
Sanjeev |
chat
|
Mark M. |
What do you mean by "not able to open"?
|
Sanjeev |
i just did an update last night, and since then i am not able to open the AVD manager
|
Sanjeev |
when i click on the icon, nothing happens
|
Mark M. |
try
running the "android" command (without the quotes) from your Command
Prompt or Terminal window, and see if the AVD Manager launches
|
Mark M. |
you may need to be in your SDK's tools/ directory, if that is not in your PATH
|
Sanjeev |
oh wow, it does
|
Sanjeev |
thank you
|
Mark M. |
well, that will help somewhat
|
Mark M. |
however, Eclipse may or may not be able to work with the debugger on an emulator launched outside of Eclipse
|
Mark M. |
it does mean that your Android installation is OK
|
Apr 27 | 8:45 PM |
Mark M. |
and that your problem is specific to Eclipse
|
Mark M. |
I do not know how to fix your menu choice, though
|
Sanjeev |
thank you
|
Apr 27 | 8:55 PM |
Mark M. |
the office hours are almost over -- do you have any other questions?
|
Sanjeev |
no i am good for the day
|
Sanjeev |
thank you once again
|
Mark M. |
no problem
|
Sanjeev | has left the room |
Mark M. |
have a pleasant evening!
|
Mark M. | turned off guest access |