I am using Picasso to load the image as background for my activity, I have an Async Task I want to use, while the image
Private Class RemoteDataTask AsyncTask is expanded; Zero, zero, zero, and gt; spreads out; ; {@Override Secure Zero on PreExecute () {super.onPreExecute (); MProgressDialog = New Progress Diablog (main activity.); MProgressDialog.setMessage ("Chargement ..."); MProgressDialog.setIndeterminate (wrong); MProgressDialog.show (); } @ Override protected volume doinbackground (zero ... parameter) {Picasso. (Main Activity.). Load ("http://tv2.orangeadd.com/mediacenter-data/ofc__bg_home.jpg"). Ino (background, new com.squareup.picasso.Callback () {@Override public void onSuccess () {mProgressDialog.dismiss ();} @ Override error on public zero () {}}); Return tap; } @Override Protected void onPostExecute (zero result) {}}
This is always showing an error and forcing my application to quit!
thanks guys :)
public zero load image inbound () {MProgressDialog = New Progress DIOLOG (main activity.); MProgressDialog.setMessage ("Chargement ..."); MProgressDialog.setIndeterminate (wrong); Goal target = new goal () {@PropareLoad Override publicly (double argh 0) {mProgressDialog.show (); } @ Override Bitmap Loaded on Public Zero (bitmap AGR0, Loaded FR1) {background.setImageBitmap (arg0); MProgressDialog.dismiss (); } @ Override Bitmapfiled on Public Zero (Dryable RGET) {// TODO Auto-Generated Method Stub mProgressDialog.dismiss (); }}; Picasso Together (main activity.) Load ("http://tv2.orangeadd.com/mediacenter-data/ofc__bg_home.jpg") .into (target); }
No comments:
Post a Comment