| | |
| | | import org.apache.http.Header; |
| | | import org.json.JSONObject; |
| | | |
| | | import com.google.gson.FieldNamingPolicy; |
| | | import com.google.gson.Gson; |
| | | import com.google.gson.GsonBuilder; |
| | | import com.google.gson.reflect.TypeToken; |
| | | import com.handmark.pulltorefresh.library.PullToRefreshBase; |
| | | import com.handmark.pulltorefresh.library.PullToRefreshBase.Mode; |
| | |
| | | import com.lcjian.library.util.cache.DiskLruCache; |
| | | import com.lcjian.library.util.common.StorageUtils; |
| | | import com.mugua.mgvideo.R; |
| | | import com.yeshi.base.utils.JsonUtil; |
| | | import com.nostra13.universalimageloader.cache.disc.naming.Md5FileNameGenerator; |
| | | import com.umeng.analytics.MobclickAgent; |
| | | import com.mugua.mgvideo.MGVideoAPI; |
| | | import com.mugua.mgvideo.ui.category.ChannelAdapter; |
| | | import com.mugua.mgvideo.ui.category.ChannelAdapterHot; |
| | |
| | | * @throws Exception |
| | | */ |
| | | protected void getdatas(String jsonObject) throws Exception { |
| | | Gson gson = new GsonBuilder().setFieldNamingPolicy( |
| | | FieldNamingPolicy.UPPER_CAMEL_CASE).create(); |
| | | List<VideoType> categories = gson.fromJson(jsonObject, |
| | | |
| | | List<VideoType> categories = JsonUtil.videoGson.fromJson(jsonObject, |
| | | new TypeToken<List<VideoType>>() { |
| | | }.getType()); |
| | | List<VideoType> mainTypes = new ArrayList<VideoType>(); |