These questions don't really have anything to do with Android, per se.
 Instead, these are general Java questions, so it sounds like perhaps
you have little application development experience (period)?

If that's the case, the basic story in Android is: each time you want
a new screen, you create a new activity.  Each time you want something
which runs without a screen, a new Service, each time you want
something which provides data, a new Content Provider.

kris

On Wed, May 16, 2012 at 3:47 PM, Claudius Ibn <[email protected]> wrote:
> I started learning Java and Android yesterday, so I`m totally a newbie...
>
> I`m developing an app, it will have some basic functions: authentication,
> post comments, location...
>
> My doubt is how to organize the code, I`m asking now because my code is
> small, but in a few months... I want to make everything very organized! I`ve
> done a basic authentication... I`ve only one activity, here it
> is: http://pastebin.com/Zt9fiq7r and here is my Authentication
> class: http://pastebin.com/kBS7pDJM
>
> I added this part to be sure that session is working:
>>
>> if (user) {
>>         Toast.makeText(this, "Usuário logado.", Toast.LENGTH_LONG).show();
>>         sessionEditor.remove("user").commit();
>> }
>
>
> How can I change the layout when the app open if there`s a logged user? When
> should I create new Activities? What`s the best way to change the layout?
>
> Thanks in advance! :)
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to