public class HttpActivity extends AppCompatActivity { private ListView lv; List<Da.ResultBean.ListBean> list; private MyHttpSqlite sqlite; private MyAdapter adapter; private Bitmap bit; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_http); lv = (ListView) findViewById(R.id.lv); list = new ArrayList<Da.ResultBean.ListBean>(); // 实例化工具类 sqlite = new MyHttpSqlite(this); // 异步任务 new AsyncTask<String, Integer, String>() { @Override protected void onPostExecute(String s) { // 设置适配器 adapter = new MyAdapter(); lv.setAdapter(adapter); super.onPostExecute(s); } @Override protected String doInBackground(String... strings) { // 方法 getData(); return null; } }.execute(); // 点击弹出AlertDialog删除
Http请求解析Json与图片(AlertDialog)提示框
最新推荐文章于 2024-05-26 20:50:11 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)