[android-beginners] intents

2010-07-15 Thread Raul Martinez
i have a question can someone explain the syntax and fields of an Intent, i have this code but the area highlighted in red is underlined in red and says this: No enclosing instance of the type Category is accessible in scope what am i doing wrong? Intent intent = new

Re: [android-beginners] intents

2010-07-15 Thread Mark Murphy
On Thu, Jul 15, 2010 at 5:41 PM, Raul Martinez raul5...@gmail.com wrote: i have a question can someone explain the syntax and fields of an Intent, i have this code but the area highlighted in red is underlined in red and says this: No enclosing instance of the type Category is accessible in

Re: [android-beginners] intents

2010-07-15 Thread Raul Martinez
do i have to modify the android manifest file as well to add the activity? On Thu, Jul 15, 2010 at 4:55 PM, Mark Murphy mmur...@commonsware.comwrote: On Thu, Jul 15, 2010 at 5:41 PM, Raul Martinez raul5...@gmail.com wrote: i have a question can someone explain the syntax and fields of an

Re: [android-beginners] intents

2010-07-15 Thread Mark Murphy
On Thu, Jul 15, 2010 at 6:05 PM, Raul Martinez raul5...@gmail.com wrote: do i have to modify the android manifest file as well to add the activity? Your Category activity needs to be in the manifest file. Your current activity presumably already is there. -- Mark Murphy (a Commons Guy)

Re: [android-beginners] intents

2010-07-15 Thread Raul Martinez
Ok thanks but what do I use instead of MAIN On Jul 15, 2010 5:42 PM, Mark Murphy mmur...@commonsware.com wrote: On Thu, Jul 15, 2010 at 6:05 PM, Raul Martinez raul5...@gmail.com wrote: do i have to modify the... Your Category activity needs to be in the manifest file. Your current activity

Re: [android-beginners] intents

2010-07-15 Thread Mark Murphy
On Thu, Jul 15, 2010 at 6:57 PM, Raul Martinez raul5...@gmail.com wrote: Ok thanks but what do I use instead of MAIN You do not need an intent-filter if you are starting the activity via the class (Category.class) in your Intent. -- Mark Murphy (a Commons Guy) http://commonsware.com |

Re: [android-beginners] intents

2010-07-15 Thread Raul Martinez
mark for some reason i keep getting a force close, any idea why, maybe i dont get the concepts of activitys and class i have this as my first activity package com.office.mate; import com.office.mate.R; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import

Re: [android-beginners] intents

2010-07-15 Thread Mark Murphy
On Thu, Jul 15, 2010 at 8:31 PM, Raul Martinez raul5...@gmail.com wrote: mark for some reason i keep getting a force close, any idea why, maybe i dont get the concepts of activitys and class i have this as my first activity :: snip :: public class home extends Activity {     /** Called when

Re: [android-beginners] intents

2010-07-15 Thread Raul Martinez
sorry i thought that was something else, i'll read it right now, thanks for the help, really appreciate it On Thu, Jul 15, 2010 at 7:42 PM, Mark Murphy mmur...@commonsware.comwrote: On Thu, Jul 15, 2010 at 8:31 PM, Raul Martinez raul5...@gmail.com wrote: mark for some reason i keep getting a

[android-beginners] Intents and Activities

2009-03-10 Thread Lovedumplingx
Don't know if this went through last time so I'll post again So I'm still working to get the paradigm down. Activities are related to screens and everything you want a user to see needs to be part of an activity. But what's with the Intent? Are all intents tied to an activity? I thought

[android-beginners] Intents and Activities

2009-03-10 Thread Lovedumplingx
Accidentally posted this in the wrong area So I'm still working to get the paradigm down. Activities are related to screens and everything you want a user to see needs to be part of an activity. But what's with the Intent? Are all intents tied to an activity? I thought I had read that