- user_id -
user/:uid - feed_id -
feed/:feed_uri - category_id -
:user_id/category/:category(special category:global.all,global.uncategorized) - tag_id -
:user_id/tag/:tag(special tag:global.saved)
http://cloud.feedly.com/:version/:api
| package com.example.toniotest.utils; | |
| import android.os.AsyncTask; | |
| /** | |
| * Created by gnuton on 5/22/13. | |
| */ | |
| public class BoilerPipeTask extends AsyncTask<String, Void, String> { | |
| private static final String TAG = "BOILER PIPE TASK"; |
| TextView tv = (TextView)findViewById(R.id.mytextview); | |
| Spanned myStringSpanned = Html.fromHtml(myString, null, null); | |
| tv.setText(myStringSpanned, TextView.BufferType.SPANNABLE); | |
| Supporte TAGS on Android 2.1 | |
| <a href="..."> | |
| <b> | |
| <big> | |
| <blockquote> | |
| <br> |
| t = 'R\\u00f3is\\u00edn' | |
| print(t.decode('unicode_escape')) | |
| output => Róisín |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <set xmlns:android="http://schemas.android.com/apk/res/android"> | |
| <rotate | |
| xmlns:android="http://schemas.android.com/apk/res/android" | |
| android:fromDegrees="0" | |
| android:toDegrees="360" | |
| android:pivotX="50%" | |
| android:pivotY="50%" | |
| android:duration="2000" |
| private TextView htmlTextView; | |
| private SpannableStringBuilder htmlSpannable; | |
| @Override | |
| public void onCreate(Bundle savedInstanceState) { | |
| // ... | |
| // first parse the html | |
| // replace getHtmlCode() with whatever generates/fetches your html |
| if ( BuildConfig.DEBUG ) { | |
| Log.d(TAG, "getBitmap " + key); | |
| } |
| /** | |
| * | |
| * Created by gnuton on 6/18/13. | |
| */ | |
| public class ImageAdapter extends PagerAdapter { | |
| Context mContext; | |
| public List<Drawable> mImages = new ArrayList<Drawable>(); | |
| private List<ImageView> mImageViews = new ArrayList<ImageView>(); |
| /*Display display = ((WindowManager) getSystemService(WINDOW_SERVICE)).getDefaultDisplay(); | |
| int rotation = display.getRotation(); | |
| Log.d(TAG, "Orientation " + rotation); | |
| If in portrait mode | |
| if (rotation == Surface.ROTATION_180 || rotation == Surface.ROTATION_0 )*/ |
| public class FragmentUtils { | |
| private static Map mMap = new HashMap<String, Fragment>(); | |
| public static Fragment getFragment(FragmentManager fm, String className, String tag){ | |
| if (tag == null) | |
| tag = className; | |
| Fragment f = (Fragment) mMap.get(tag); | |
| if (f != null) | |
| return f; |