Intents and Activities

by Lovedumplingx » Wed, 11 Mar 2009 03:59:38 GMT


Sponsored Links
 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 Intents were more like events.  If that's
the case cool...but I'm really struggling on where Intents fit into
the whole concept.
--~--~---------~--~----~------------~-------~--~----~



Intents and Activities

by Lovedumplingx » Wed, 11 Mar 2009 12:20:23 GMT


 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 I had read that Intents were more like events.  If that's
the case cool...but I'm really struggling on where Intents fit into
the whole concept.

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Intents and Activities

by Lovedumplingx » Wed, 11 Mar 2009 12:20:27 GMT


 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 Intents were more like events.  If that's
the case cool...but I'm really struggling on where Intents fit into
the whole concept.

--~--~---------~--~----~------------~-------~--~----~



Intents and Activities

by Muthu Ramadoss » Wed, 11 Mar 2009 16:04:43 GMT


 Here's my 2 sec tutorial:

Android Component 1:
Activity - the screen.
View - the widgets inside the screen.

Android Component 2:
Service - logic running in background.

Android Component 3:
Content Provider - data storage.

Android Component 4:
Broadcast Receiver - code waiting to be run, triggered by matching intent.

Intent - the trigger to start the above components.


 http://developer.android.com/reference/android/content/Intent.html 


take care,
Muthu Ramadoss.

 http://linkedin.com/in/tellibitz  +91-9840348914
 http://androidrocks.in  - Android Consulting.







--~--~---------~--~----~------------~-------~--~----~



Intents and Activities

by Tseng » Wed, 11 Mar 2009 21:34:25 GMT


 Yea, Intents are kind of events. You can use them to call or
communicate with other Activities or Applications.

And you can add extra data (Intent.putExtra(...)) to send data to
other activities



--~--~---------~--~----~------------~-------~--~----~



Intents and Activities

by Lovedumplingx » Wed, 11 Mar 2009 23:43:53 GMT


 Thanks.  That helps put things in perspective.  I need intents to
start the components and within the components there can be various
other work done etc.




--~--~---------~--~----~------------~-------~--~----~



Intents and Activities

by Muthu Ramadoss » Thu, 12 Mar 2009 19:02:29 GMT


 >> Thanks.  That helps put things in perspective.  I need intents to start
the components and within the components there can be various other work
done etc.


Thats it!

Glad it helped.

take care,
Muthu Ramadoss.

 http://linkedin.com/in/tellibitz  +91-9840348914
 http://androidrocks.in  - Android Consulting.









--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Phone gets reset automatically.

Hi,

I am browsing a lot on my android phone.Some times I see it gets
restarted automatically  in idle state. I saw the log and appears
android.intent.action.REBOOT is causing the reset. But it seems only
system can send this intent and I not able to figure out why system
sending this intent. Could some one please help me to find out in
which all possibilities system sends reboot intent.

Thanks,
Amit

-- 

2. How to get TimedOutException in DatagramSocket receive method ?

Hi all,

I have a problem in receiving datagram packet . I have two threads ;
one for receiving and other for sending. First, am calling receive
thread and that thread will be waiting for a packet, until i call the
sending thread.
   If my sending failed, then receiver thread, continously waits. I am
not getting any timedoutexception. how to solve this ?

any idea ? :)

-- 

3. How to get TimedOutException in DatagramSocket receive method ?

4. Mod: Untuk Semua

5. Still unable to receive binary SMS

6. OOT : Met Lunch semua

7. Cdma WTS Droid