Back to project page android-3.0-howtos.
The source code is released under:
Copyright 2012-present Facebook, Inc. You are hereby granted a non-exclusive, worldwide, royalty-free license to use, copy, modify, and distribute this software in source code or binary form for use ...
If you think the Android project android-3.0-howtos 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 com.facebook.samples.applinkinghowto; //w ww . j ava 2 s . c om import android.content.Context; import android.graphics.drawable.Drawable; public class Recipe { private String title; private String caption; private String description; private String link; private String imageLink; private int resId; public Recipe(int resId, String title, String caption, String description, String link, String imageLink) { this.resId = resId; this.title = title; this.caption = caption; this.description = description; this.link = link; this.imageLink = imageLink; } public Drawable getDrawable(Context c) { return c.getResources().getDrawable(resId); } public String toString() { return getTitle(); } public String getTitle() { return title; } public String getCaption() { return caption; } public String getDescription() { return description; } public String getLink() { return link; } public String getImageLink() { return imageLink; } }