As i told that I used
EditText content = (EditText) findViewById(R.id.content);
twitter.updateStatus(content.getText().toString() + " #testing");
If i remove
EditText content = (EditText) findViewById(R.id.content);
and directly post.
twitter.updateStatus("Testing my tweets #testing");
then it works and my list of articles is listed.
On Nov 24, 12:55 pm, Kumar Bibek <[email protected]> wrote:
> The textview from which you want to read the text is in the same activity
> where onResume/onActivityResult is there?
>
> BTW, there is no such thing as onResumeActivity. You should be overriding
> the onActivityResult method.
>
> Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com
>
> On Wed, Nov 24, 2010 at 1:16 PM, umakantpatil <[email protected]>wrote:
>
>
>
>
>
>
>
>
>
> > I'm integrating twitter OAuth in my app. He can share article on
> > twitter by posting it.
>
> > So when i click on option share button. I show user a TextView where
> > he can add extra content.
>
> > I got how to do OAuth from this tutorial
>
> >http://vasudevkamath.blogspot.com/2010/09/android-oauth-authenticatio...
>
> > It works fine. But after giving username and password to twitter it
> > redirects me back to my app.
> > After coming to my app. In "onResumeActivity" I want to post status.
> > So I want to read what user wants to post. So i read TextView value
> > (using findViewById) but it gives error.
> > If i post dummy text then it works and It doesn't come to the same
> > page where i showed him textview. I think it restarts my activity.
>
> > So i want something that in resume activity I can read user value
> > which he entered in textview to post. Whats the problem I cant find
> > this.
>
> > --
> > 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]<android-developers%2Bunsubs
> > [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