Tagged Questions
1
vote
2answers
29 views
Android - Show progress dialogue while waiting for imageview from a URL
I am loading an image view from a URL and want a progress dialogue to show while waiting for the image to load, when I run the app, the porgress dialogue appears for like half a second then disappears ...
0
votes
1answer
17 views
getSupportFragmentManager() cause java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
I was trying to figure out why:
getSupportFragmentManager().beginTransaction().commit();
fails, with
java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
in a ...
0
votes
1answer
39 views
need to return value from AsyncTask [duplicate]
I am calling soap webservice and need to display what is returned. but I couldnt do it because AsyncTask is complex and I dont know how to use it properly. would you please tell me how to return data ...
-1
votes
0answers
13 views
Avoid Multiple AsyncTask from appwidget + activity
I have an AsyncTask that execute heavy download and calculation in the background. The user can execute it from the main activity. When he does, i have a progress bar running in the action bar and the ...
0
votes
1answer
31 views
Using AsyncTask callback to contruct objects backing ListView
I am trying to figure out a way to get specific values that are needed for the objects displayed in a ListView. In the example below, I am building a list of users. I use an existing array to supply ...
1
vote
1answer
23 views
AsyncTask. Problems with receiving from Java Server
I want to use AsyncTask for receiving ArrayList's(in this case) from Java server. To be sure, that I received something from server I'm trying to display it with Toast.
The Code is following:
...
0
votes
1answer
26 views
Null pointer exception when getting image from url to put in imageview
I'm getting my image through an URL and trying to set that to my imageView. But I'm getting a Null Pointer Exception. It is not even entering my asynchtask.
Is there something I'm doing wrong or not ...
0
votes
0answers
16 views
Access localhost REST API via android emulator app
Im new in android and im trying to access a WFC webservice running on my local machine
(http://localhost:4276/GesManDataService.svc/getAllEquipments)
from an android app in the ADT emulator.
Im ...
1
vote
4answers
36 views
pass parameter to AsyncTask<String, Void, Void>
I am build android app which is supposed to open barcode scanner screen and scan the barcode, then send the barcode string to a webservice. I have done barcode reading part, sending static strings to ...
0
votes
0answers
5 views
at android.view.ViewRootImpl.<init>(ViewRootImpl.java:354)
i have problem, at android.view.ViewRootImpl.(ViewRootImpl.java:354)
how to fix it's ?
public class NewProductActivity extends Activity {
// Progress Dialog
private ProgressDialog pDialog;
...
1
vote
2answers
35 views
Uploading Image and displaying outcome on UI: AsyncTask or Service?
My Android application has to:
upload an image to the server
make 3 ( quick ) calls to a REST web service using the uploaded image image
get output from webservice
display output on ui.
I'm ...
0
votes
1answer
24 views
AsyncTask Socket Error
I have an AsyncTask which connects to a network resource and tries to read data from the resource.
This resource can send data at anytime, so i need the socket to be in the background.
When i get a ...
-1
votes
1answer
26 views
Setting image from url to ImageView with AsynchTask
I have an image on my website, that I want to set on my ImageView. Do to that I needed to use an asynch task. I'm doing it like below. But
new getThumbnail().execute(stringThumbnail); is throwing me ...
1
vote
2answers
38 views
Android asyntask Custom Adapter load images at wrong position
The images loaded by this custom adapter placed at wrong positions i.e correct movie banner is not placed at correct list view item. and keeps on changing for a while.
here is my custom adapter with ...
0
votes
3answers
136 views
First AsycTask try gives me an arror
I am attempting to have my action bar complete a search to an api and parse the json results.
I put together my asycTask like this:
private class ReadJSONResult extends AsyncTask
<String, ...