Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How to update a widget from data passed from activity
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Sunil Mishra  
View profile  
 More options May 26 2012, 3:05 am
From: Sunil Mishra <suniljmis...@gmail.com>
Date: Sat, 26 May 2012 00:05:46 -0700 (PDT)
Local: Sat, May 26 2012 3:05 am
Subject: How to update a widget from data passed from activity

Hi,

I have written a sample widget with text view. I added onClickListener
Event on the widget, that opens my activity. Now how to update the widget,
when the activity is finished?

I want to pass data from activity to widget.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
TreKing  
View profile   Translate to Translated (View Original)
 More options May 26 2012, 3:29 am
From: TreKing <treking...@gmail.com>
Date: Sat, 26 May 2012 02:29:53 -0500
Local: Sat, May 26 2012 3:29 am
Subject: Re: [android-developers] How to update a widget from data passed from activity

On Sat, May 26, 2012 at 2:05 AM, Sunil Mishra <suniljmis...@gmail.com>wrote:

> I want to pass data from activity to widget.

You don't "pass data" to a widget. It's a shell. It just shows something.
You do your logic in your Activity or Service, then update the look of the
widget to reflect the state of the data.

The concept shown here applies:
http://developer.android.com/guide/topics/appwidgets/index.html#Updat...

--------------------------------------------------------------------------- ----------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sunil Mishra  
View profile  
 More options May 26 2012, 4:49 am
From: Sunil Mishra <suniljmis...@gmail.com>
Date: Sat, 26 May 2012 01:49:35 -0700 (PDT)
Local: Sat, May 26 2012 4:49 am
Subject: Re: How to update a widget from data passed from activity
Hi,

I want the following feature.

When I click on the widget, an activity having a edittextview is
displayed, now user type in that and clicks on save, the content which
he typed needs to be displayed on the widget.
I am able to see the contents, but it is not displayed instantly. It
is updated after some time.

On May 26, 12:29 pm, TreKing <treking...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
TreKing  
View profile   Translate to Translated (View Original)
 More options May 26 2012, 5:11 am
From: TreKing <treking...@gmail.com>
Date: Sat, 26 May 2012 04:11:05 -0500
Local: Sat, May 26 2012 5:11 am
Subject: Re: [android-developers] Re: How to update a widget from data passed from activity

On Sat, May 26, 2012 at 3:49 AM, Sunil Mishra <suniljmis...@gmail.com>wrote:

> I am able to see the contents, but it is not displayed instantly. It is
> updated after some time.

What is "some time"? What are you doing now? What have you tried?

--------------------------------------------------------------------------- ----------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sunil Mishra  
View profile  
 More options May 26 2012, 5:17 am
From: Sunil Mishra <suniljmis...@gmail.com>
Date: Sat, 26 May 2012 02:17:54 -0700 (PDT)
Local: Sat, May 26 2012 5:17 am
Subject: Re: How to update a widget from data passed from activity
I just want, that once i close the activity, the data i entered in
edittext should appear on the widget. I dont know how much time it
actually takes, but it does not show the message immediately

On May 26, 2:11 pm, TreKing <treking...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
TreKing  
View profile   Translate to Translated (View Original)
 More options May 26 2012, 10:16 am
From: TreKing <treking...@gmail.com>
Date: Sat, 26 May 2012 09:16:58 -0500
Local: Sat, May 26 2012 10:16 am
Subject: Re: [android-developers] Re: How to update a widget from data passed from activity

On Sat, May 26, 2012 at 4:17 AM, Sunil Mishra <suniljmis...@gmail.com>wrote:

> I just want, that once i close the activity, the data i entered in
> edittext should appear on the widget. I dont know how much time it
> actually takes, but it does not show the message immediately

You didn't answer a single one of my questions. I'm not sure how you want
me to help you if you're not going to provide information to do so.

Good luck with your problem.

--------------------------------------------------------------------------- ----------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kostya Vasilyev  
View profile  
 More options May 26 2012, 2:15 pm
From: Kostya Vasilyev <kmans...@gmail.com>
Date: Sat, 26 May 2012 22:15:22 +0400
Local: Sat, May 26 2012 2:15 pm
Subject: Re: [android-developers] Re: How to update a widget from data passed from activity
You can use AppWidgetManager and its methods outside of a widget's onUpdate.

So either broadcast an action to your widget provider telling it to
update, or implement the updating somewhere else.

-- K

26.05.2012 13:17, Sunil Mishra написал:

> I just want, that once i close the activity, the data i entered in
> edittext should appear on the widget. I dont know how much time it
> actually takes, but it does not show the message immediately

> On May 26, 2:11 pm, TreKing<treking...@gmail.com>  wrote:
>> On Sat, May 26, 2012 at 3:49 AM, Sunil Mishra<suniljmis...@gmail.com>wrote:

>>> I am able to see the contents, but it is not displayed instantly. It is
>>> updated after some time.
>> What is "some time"? What are you doing now? What have you tried?

>> --------------------------------------------------------------------------- ----------------------
>> TreKing<http://sites.google.com/site/rezmobileapps/treking>  - Chicago
>> transit tracking app for Android-powered devices

--
Kostya Vasilyev

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »