FAQ Database Discussion Community
android,progressdialog
I'm wondering how do you show ProgressDialog only in that case when process takes long time? In my case program works with internet and if phone is connected via WiFi so there's no need in progressDialogs since it would flash for half a sec. And vise versa when internet is...
android,android-asynctask,progressdialog,baseadapter
This is my list view adapter in which I am sending listview data to server ans sqlite on the button clock asyn task. I want to use a progress dialog but I'm having problem while passing the activity's instance and my code crashes on the progress dialog. public class PlannningListViewAdapter...
android,android-fragments,android-asynctask,progressdialog,android-progressbar
I'm trying to create ProgressDialog during parsing of JSON objects. So I'm using AsyncTask: private class JsonUtility extends AsyncTask<String, Void, String> { //getting activity context like that since outer activity is not enclosing public JsonUtility(Activity activity){ super(); mActivity = activity; } public JsonUtility(){} @Override protected void onPreExecute(){ super.onPreExecute(); dialog =...
android,android-asynctask,progressdialog,android-videoview
I have two AsyncTasks that contain code that save a photo and video to file. I used working AsyncTask code from other classes I created, yet for some reason they are not working here. Here are the 2 problems: I see no progress dialog I still see messages in the...
android,progressdialog,material-design,android-progressbar
I'd like to put an indeterminate Progress Dialog material-compliant in my app. I found two ways to achieve it: 1- Using material-dialogs: https://github.com/afollestad/material-dialogs 2- Using the build-in dialogs of material-design-library: https://github.com/navasmdc/MaterialDesignLibrary#dialog Using any of these solutions I get something pretty much like this: a dialog with a progressbar in it....
java,android,android-activity,android-asynctask,progressdialog
When I run my projent and it's run AsyncTask from the activity that shows all content of the item the APP crash showing the follow error message: 06-17 20:56:52.856 418-428/? E/art﹕ Failed sending reply to debugger: Broken pipe 06-17 20:57:07.391 418-767/com.example.user.project_test E/AndroidRuntime﹕ FATAL EXCEPTION: AsyncTask #3 Process: com.example.user.project_test, PID: 418...
java,android,progressdialog
In my application I'd like to show a ProgressDialog on certain events (during AsyncTasks for example). I never want to show multiple ProgressDialogs simultaneously. What is the best and most efficient way to do this? My current code looks like this: public class ProgressDialogHelper { private static ProgressDialog progressDialog; public...
android,android-asynctask,views,progressdialog,android-runonuithread
I usually work on .Net but I need to develop an Android app. So I am new on Android, sorry for mistakes in advance! :) Here is my story, I am populating a customer list(creating ui elements in code behind) with views in a button click. I am doing that...
android,android-asynctask,httpresponse,progressdialog
The following code when run crashes my app. I am calling it in the MainActivity. When run it tells me: FATAL EXCEPTION: AsyncTask #1 and directs me toward the ProgressDialog and Http Response Line import android.app.Fragment; import android.app.ProgressDialog; import android.os.AsyncTask; import android.os.Bundle; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup;...
android,progressdialog,android-4.0
I'm trying to display a determinate progress dialog with a bar, however, I can't get it to working. Here is how I create it: dialog = ProgressDialog.show(from, "Posting...", "Uploading..."); Then on UI thread (calling within runOnUiThread), I'm calling: dialog.setIndeterminate(false); However, when I inspect after it (both immediately after setting, and...
java,android,android-asynctask,progressdialog
I saw that .get() is the problem, but I try without him and nothing. If possible help me. The ProgressDialog execute after doInBackground() and after run onPostExecute "dismiss" and then ProgressDialog not show. public List<Usuario> getListaUsuario(Activity activity) { String[] aux = new String[3]; aux[0] = URL_WS_USUARIO; String[] resposta = null;...
android,progress-bar,progressdialog
I am making a custom progress bar using one small image/icon which will basically rotate. But in the background there is white patch or background is showing. I have attached the image here.. I have used the below code for this: CustomDialog.java public class CustomDialog extends Dialog{ public Activity c;...
android,xml,android-layout,progress-bar,progressdialog
I am migrating my application on Android 5.0 i.e. Lollipop devices , I have problem regarding progress dialog , It work perfectly on pre lollipop devices , but on lollipop it has white background as shown in image But in pre lollipop devices it is of transparent background Below is...
android,progressdialog
i am creating login functionality, usually user type their credentials and check their credentials to server whether it is authenticated or not. if it is correct, it will redirect to another page else it will show error message. so i am expecting to put one progress dialog loading for communication...
android,android-asynctask,progressdialog
This is my MainActivity... i put one button, in button onclick i call asyncTask package com.example.asnytaskpro; import java.util.concurrent.ExecutionException; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class AsyncMainActivity extends Activity implements OnClickListener { Button button ; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);...
android,dialog,progressdialog
I'm showing ProgressDialog as follows: private void showProgressDialog() { mProgressDialog = new ProgressDialog(this); mProgressDialog.setIndeterminate(true); mProgressDialog.setMessage(getString(R.string.logging_in)); mProgressDialog.show(); } But on some devices (Sony Xperia L ; 4.1.2) I get this exception: java.lang.StackOverflowError at com.android.internal.app.AlertController.installContent(AlertController.java:236) at android.app.AlertDialog.onCreate(AlertDialog.java:336) at...