如何获取动态设置的imageview资源名称?
这是图像适配器代码:
public class ImageAdapter extends BaseAdapter {
private Context mContext;
public ImageAdapter(Context c) {
mContext = c;
}
public int getCount() {
return mThumbIds.length;
}
public Object getItem(int position) {
return null;
}
public long getItemId(int position) {
return 0;
}
// create a new ImageView for each item referenced by the Adapter
public View getView(int position, View convertView, ViewGroup parent) {
View v;
if (convertView == null) { // if it's not recycled, initialize some
// attributes
LayoutInflater …
Run Code Online (Sandbox Code Playgroud) 我有一个Facebook页面,我想要页面的提要.我使用graph api来获取访问令牌,但我不知道如何将这个短期访问令牌转换为长期访问令牌
https://graph.facebook.com/oauth/access_token?
client_id=APP_ID& client_secret=APP_SECRET& grant_type=fb_exchange_token& fb_exchange_token=EXISTING_ACCESS_TOKEN
Run Code Online (Sandbox Code Playgroud)
如果上面的链接用于获取长期访问令牌,那么我可以从哪里获得App_Secret
帮助我,如果我采取错误的方法.