Back to project page karin.
The source code is released under:
MIT License
If you think the Android project karin listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package cc.wanko.karin.app.textbuilder; /* w ww . j a va 2 s . c om*/ import android.content.Context; import android.content.Intent; import android.net.Uri; import twitter4j.MediaEntity; /** * Created by eagletmt on 14/05/06. */ public class MediaSegment extends Segment { private final MediaEntity entity; public MediaSegment(MediaEntity entity) { super(entity.getStart(), entity.getEnd(), entity.getMediaURLHttps()); this.entity = entity; } @Override public void onClick(Context context) { Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(entity.getMediaURLHttps())); context.startActivity(intent); } }