|
|
[android-beginners] Re: Change an app: msg#01269
AndroidBeginners
|
Subject: |
[android-beginners] Re: Change an app |
Did you try File->New->Class :) ?
Balwinder Kaur
Open Source Development Center
·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 7/31/09 2:19 PM, "tinyang" <tinyang@xxxxxxxxxxxxx> wrote:
Ah! Great, more is becoming clear to this newb. :) I apologize if this is
more of an Eclipse question, but what are the mechanics of adding more than
one .java file (assuming this is the same as a java class) to the same
android project in Eclipse? I've never done that before.
-----Original Message-----
From: android-beginners@xxxxxxxxxxxxxxxx
[mailto:android-beginners@xxxxxxxxxxxxxxxx] On Behalf Of Balwinder Kaur
(T-Mobile)
Sent: Friday, July 31, 2009 1:50 PM
To: Android Beginners
Subject: [android-beginners] Re: Change an app
No it means you create a new java class for each Activity subclassing the
Activity Class.
Balwinder Kaur
Open Source Development Center
·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 Jul 31, 11:08 am, "tinyang" <tiny...@xxxxxxxxxxxxx> wrote:
> Thank you for all replies so far.
>
> Does this mean I can put all of my activities for the application in
> the same .java file and just use a different xml file for each activity
screen?
>
> -----Original Message-----
> From: android-beginners@xxxxxxxxxxxxxxxx
>
> [mailto:android-beginners@xxxxxxxxxxxxxxxx] On Behalf Of Balwinder
> Kaur
> (T-Mobile)
> Sent: Friday, July 31, 2009 9:35 AM
> To: Android Beginners
> Subject: [android-beginners] Re: Change an app
>
> It should be just fine to create a separate Activity for each screen
> and use Intents to invoke each Activity.
>
> From the official
> documentationhttp://developer.android.com/guide/topics/fundamentals.ht
> ml
> :
>
> An activity presents a visual user interface for one focused endeavor
> the user can undertake. For example, an activity might present a list
> of menu items users can choose from or it might display photographs
> along with their captions. A text messaging application might have one
> activity that shows a list of contacts to send messages to, a second
> activity to write the message to the chosen contact, and other
> activities to review old messages or change settings. Though they work
> together to form a cohesive user interface, each activity is
> independent of the others. Each one is implemented as a subclass of the
Activity base class.
>
> Balwinder Kaur
> Open Source Development Center
> ·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 Jul 30, 9:03 pm, Michael Leung <michaelchi...@xxxxxxxxx> wrote:
> > I am a new to Android as well, but as far as I know, changing the
> > view is lighter than an activity.
>
> > On Fri, Jul 31, 2009 at 12:41 PM, tinyang <tiny...@xxxxxxxxxxxxx> wrote:
> > > Well, I was hoping to make the only existing activity one of many
> > > activities the user could choose from the main menu screen
> > > eventually. That is why I was thinking to add a main menu screen
> > > from which I could use buttond to add sccess to the other activity
> > > choices for the app. I'm open to suggestions though.
>
> > > ------------------------------
> > > *From:* android-beginners@xxxxxxxxxxxxxxxx [mailto:
> > > android-beginners@xxxxxxxxxxxxxxxx] *On Behalf Of *Michael Leung
> > > *Sent:* Thursday, July 30, 2009 9:29 PM
> > > *To:* android-beginners@xxxxxxxxxxxxxxxx
> > > *Subject:* [android-beginners] Re: Change an app
>
> > > should you change the view? instead of changing to another
> > > activity
>
> > > On Fri, Jul 31, 2009 at 11:51 AM, tinyang <tiny...@xxxxxxxxxxxxx>
> wrote:
>
> > >> I have an app I wrote for Android. It has only one activity
> > >> (one java
> > >> file) which is the only screen. I would like to add a main menu
> > >> screen which has a button that can take the user to the already
> existing activity.
> > >> What is the best way to do that? Thanks.
>
> > >> --
> > >> J
> > >> P Please don't print this e-mail unless you really need to.
>
> > >> <http://www.crossloop.com/Teenah>
>
> > >> --
> > >> Regards,
> > >> Michael Leung
> > >>http://www.itblogs.info
> > >>http://www.michaelleung.info
>
> > >> No virus found in this incoming message.
> > >> Checked by AVG -http://www.avg.com
> > >> Version: 8.0.169 / Virus Database: 270.13.24/2255 - Release Date:
> > >> 7/30/2009 6:09 PM
>
> > --
> > Regards,
> > Michael Leunghttp://www.itblogs.infohttp://www.michaelleung.info
>
> No virus found in this incoming message.
> Checked by AVG -http://www.avg.com
> Version: 8.0.169 / Virus Database: 270.13.24/2255 - Release Date:
> 7/30/2009
> 6:09 PM
>
>
No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.169 / Virus Database: 270.13.24/2255 - Release Date: 7/30/2009
6:09 PM
--~--~---------~--~----~------------~-------~--~----~
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@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
android-beginners-unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|