For simple questions like this, please use Stack Overflow instead of
spamming multiple Android groups.
Thanks!
Ian


On Thu, Aug 16, 2012 at 11:29 AM, Talha Qamar <[email protected]>wrote:

> Hi,A mp3/ogg file is uploaded at server.I just wanna play that mp3/ogg
> file in my app.I have used the following code to do this.By clicking the
> textview on previous activity its name is passed as string and can be
> retrieved in this activity.But after clicking the activity is closed.Please
> help me with some simple code examples.
>
>                 TextView tv = (TextView) findViewById(R.id.textView1);
> tv.setText(getIntent().getExtras().getString("txt"));
> check = tv.getText();
>  if(check.equals("Pakistan"))
>  {
>                                        MediaPlayer song;
>                                        String url;
> url ="https://docs.google.com/open?id=0B1pqesu2pQQ3OGdLYjJKTDJiSVE";;
>  song = MediaPlayer.create(abc.this, Uri.parse(url));
>  song.start();
> }
>
> --
> You received this message because you are subscribed to the Google Groups
> "android-ndk" 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-ndk?hl=en.
>



-- 
Ian Ni-Lewis
Developer Advocate
Android Developer Relations

-- 
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