Video Rendering in Android

by android777 » Tue, 25 Jan 2011 02:53:15 GMT

Sponsored Links
 I have been writing a video renderer in android and I saw an
interesting post from this.

Other Threads

1. Blocked TextView - URLSpan ...


i tried to make a textview with clickable url links. It's blocked, but
only if I
preset the text e.g. like"".. then the
is clickable (on view startup the text will be overwitten by my
program, so
it's invisible):

<TextView android:id="@+id/urlresult"
    android:text=""  <-- only for testing
private String myUrl = "";
public void onCreate(Bundle icicle) {
       TextView tv = (TextView)findViewById(;

       String myDisplayString = getTextToDisplay();   //
myDisplayString contains no url

       tv.setText( myDisplayString, TextView.BufferType.SPANNABLE );
       SpannableString myString = (SpannableString)tv.getText();

       myString.setSpan(new URLSpan( myUrl ),
                      pos1, pos2, Spannable.SPAN_INCLUSIVE_EXCLUSIVE);

private String getTextToDisplay() {
       ... myUrl = "<a valid url is put here>"; ...
       return displayText;

How can I solve this mysterious behavior without presetting the text
value in the layout file ?


2. How can I detect if the user has started my app again?

I want a countdowntimer to halt on a menu and also when the user goes
from that menu to another activity.
When the user comes back from that activity or when the menu is
closed, the timer should still halt.
However when the user went to the home screen and clicks on the icon
again, I want the timer to restart.
So my question is, is there a way to detect if the user has just
opened your application, or if the user comes back from another
activity or menu?

Thanks in advance,

Willem Ligtenberg

3. Android Source Code

4. About using findViewById

5. audio recording to split (small) files without dropping or overlapping samples

6. Playing encrypted video.

7. need help for MediaRecorder