sombochea / android-query Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/android-query
Automatically exported from code.google.com/p/android-query
Both type will store the object to file cache if downloaded.
Original issue reported on code.google.com by [email protected]
on 6 Feb 2012 at 3:58
Maybe a bug I can report to you, not sure about that. I make a call to cb.url(
mData.get(position-1)
).ratio(AQuery.RATIO_PRESERVE).animation(AQuery.FADE_IN).progress(viewHolder.pba
r); to set up my imageview, after gettting a recycled view using a view holder
pattern
(http://developer.android.com/resources/samples/ApiDemos/src/com/example/android
/apis/view/List14.html) and sometimes the progress bar doesn't appear, or
appears when it's not needed, so I think it not well updated in your library or
I miss use it. I have to make this call before and then it's ok :
if( aq.getCachedImage(mData.get(position)) == null ){
viewHolder.pbar.setVisibility(View.VISIBLE);
}
Original issue reported on code.google.com by [email protected]
on 29 Sep 2011 at 1:13
.policy(x).ajax()
x = 3 levels of cache policy
persist, high, low
Original issue reported on code.google.com by [email protected]
on 27 Apr 2012 at 3:37
@AndroidQuery or like aq.id().getImageView().setRoundCorner( 5dip ); both would
show round image for button or icon whatver. Great AQuery!
Original issue reported on code.google.com by [email protected]
on 21 Oct 2011 at 7:19
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 15 May 2012 at 7:16
Hi,
This is not an issue but a feature request.
Is it possible to write a shouldDelay method that take a file or a path instead
of an url in order to load asynchronously an image that has not be cached by
AQUery before ?
For exemple, I'm writing an app where I download myself a .zip containing
images. Then I save them in a folder in the sdcard and I want to display them
in a list/gridview with the benefits of the shouldDelay method.
Thanks again for this awesome lib, I use it a lot in Traktoid :
https://github.com/florianmski/Traktoid
Original issue reported on code.google.com by [email protected]
on 16 May 2012 at 4:47
What steps will reproduce the problem?
1. Init listview items with more than 100 items (thumbnail images)
2. Fast scroll listview from top to bottom
3. Look does not smooth when scroll
What is the expected output? What do you see instead?
More smooth
What version of the product are you using? On what operating system?
newest version from svn
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 27 Sep 2011 at 5:03
I usually like add a progress item to my ListAdapter when loading data, then
remove it during the success callback, but aQuery only supports passing a
drawable to the .progress() method. Can you add support for passing a custom
method name to aq.progress()?
It would go something like this:
...
/* using GreenDroid, e.g. */
private void showProgress() {
ProgressItem indicator = new ProgressItem("Loading...", true);
items.add(indicator);
}
aq.progress("showProgress").ajax(url, JSONObject.class, this, "jsonCb");
...
The jsonCb method would be responsible for removing the ProgressItem and
filling in the new data.
Thanks!
Adam K
Original issue reported on code.google.com by [email protected]
on 5 Mar 2012 at 12:50
It would be great to be able to set the drawable of a TextView using
AQuery.image() and the asynchronous image loading.
Original issue reported on code.google.com by [email protected]
on 11 Apr 2012 at 12:59
Support InputStream ajax type.
Original issue reported on code.google.com by [email protected]
on 24 Oct 2011 at 9:02
Detect a list view fling state and avoid fetching url over network.
Original issue reported on code.google.com by [email protected]
on 29 Sep 2011 at 1:12
Lets you post a raw body of XML/JSON to a server. If you have a better way of
doing this that would be great, but this works nicely for me.
Original issue reported on code.google.com by [email protected]
on 21 Dec 2011 at 11:36
Attachments:
Detect html encoding tag or http response header.
Original issue reported on code.google.com by [email protected]
on 7 Mar 2012 at 4:19
What steps will reproduce the problem?
1. Install Aquery 0.14.22 on a 4G HTC Phone Thunderbolt / Revolution
2. Set a image view to use Aquery and download from the network
What is the expected output? What do you see instead?
The Image should be downloaded but instead we get
org.apache.http.impl.io.AbstractSessionInputBuffer.init(AbstractSessionInputBuff
er.java:79).
What version of the product are you using? On what operating system?
Android Query 0.14.22 on Android 2.2 crashes on these phones. Please not the
Android Query 0.11.4 build is phone and does not have this same crash and that
is what we reverted to.
Please provide any additional information below.
More information about this can be found in the following Stackover flow link
http://stackoverflow.com/questions/5358014/android-httpclient-oom-on-4g-lte-htc-
thunderbolt.
I think this issue must be in the related to the updated http lib as the 0.11.4
doesn't crash on these phones.
Dean
Original issue reported on code.google.com by [email protected]
on 17 Oct 2011 at 11:45
Hi,
I would like to make a donation to support the project but I can not find a
related link.
Is there a way to send a donation?
Original issue reported on code.google.com by leinardi
on 13 May 2012 at 8:13
New issue coming up. progress(View ot resID), but how about ProgressDialog, as
i know u cant create it as a view.
How u thinking, this option will be demanded in aquery?
Original issue reported on code.google.com by [email protected]
on 31 Jan 2012 at 2:10
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
AQuery aq = new AQuery(this);
aq.id(R.id.text).text("TESTing");//works...
String url = "http://function.com/json/url";
aq.ajax(url, JSONObject.class, this, "jsonCallback");
}
public void jsonCallback(String url, JSONObject json, AjaxStatus status){
Log.i("test", "point 1");//gets called...
aq.id(R.id.text).text("TESTing MORE");//fails, doesnt happen
Log.i("test", "point 2");//does not get called...
}
What is the expected output? What do you see instead?
The above code should change R.id.text to "testing", followed by "testing more"
once the json request is complete. It hsould also print "point 1" and "point 2"
to logcat
What version of the product are you using? On what operating system?
0.18.5
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 16 Jan 2012 at 10:18
.load to load html to webview with proper encoding and cahing
Original issue reported on code.google.com by [email protected]
on 4 May 2012 at 3:01
Added the ablitiy to pass in your own socket to httpclient.
Useful if you need to pass a SSLSocketFactory which ignores invalid/selfsigned
sslcerts.
Original issue reported on code.google.com by [email protected]
on 20 Dec 2011 at 5:38
Attachments:
I use a WebView for HTML download in my application.
I'd like to save the HTML(String) to AQuery's cache.
For example:
String html = retrieveHTMLFromWebView(url);
aq.saveData(html, String.class, expire, callback);
and...
File cachedHtmlFile = aq.getCachedFile(url);
Is there a way of doing like this?
aq.saveData(url, html, String.class, expire);
something like this.
Original issue reported on code.google.com by [email protected]
on 17 Apr 2012 at 9:18
What steps will reproduce the problem?
1. Run the application with attached xml layout and java file for the activity.
2. Press the button. It executes once. Wait till it finishes.
3. Press the button for the second time. It throws an exception and force
closes.
What is the expected output? What do you see instead?
Expected output is for the AQuery.ajaxcall to run again with no problem.
Instead it throws.
What version of the product are you using? On what operating system?
I use android-query.0.20.6. Android 2.3.5.
Please provide any additional information below.
I have created a simple demo to replicate the problem. Please see the attached
files.
Original issue reported on code.google.com by [email protected]
on 30 Mar 2012 at 4:52
Attachments:
use aq.ajax to download CHINESE html, it's a Big5 encoding string, not UTF8, i
got garbled string.
Please support a parameter , It's like this : aq.ajax(..... , String
encoding);
encoding can set "UTF-8"、 "Big5"、、、、or others....
In Others case, I got html encoded by "Big5", use this way:
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
isr = new InputStreamReader(conn.getInputStream(), encoding );
Original issue reported on code.google.com by [email protected]
on 22 Oct 2011 at 5:34
JSONArray don't have relation with JSONObject.
so, if I parse below contents
```json
["abc","edf"]
I could see ClassCastException in
https://github.com/androidquery/androidquery/blob/master/src/com/androidquery/ca
llback/AbstractAjaxCallback.java#L374
But this solution can't cover json made only 'String'.
I hope you got a better solution. This is just proposal.
Thank you great idea library!
Original issue reported on code.google.com by `[email protected]` on 27 Sep 2011 at 10:07
Hi Peter,
I think than my issue is simpler... because i only need to send a
cached image using email intend !
Supposing that there is an ImageView that contains an image. This
image is cached and has been already downloaded (and cached) using
AQuery!
The image path is similar to this: "/data/data/gr.develop4u.myprog/
cache/aquery/k0cvvjd2a17w7r9oph4ht3ov" , so I know my image's info!
When the user clicks on the imageview, I open an Intent.ACTION_SEND
passing the existing (local) image to the intent.
There, I get the error: " ERROR/Mms/media(232):
java.io.FileNotFoundException: /data/data/gr.develop4u.myprog/cache/
aquery/k0cvvjd2a17w7r9oph4ht3ov (Permission denied) "
It seems for some reason the new Intent cannot read the cached image.
As a result, the email message contains no attachment or empty
attachment.
Thank you in advance!
Original issue reported on code.google.com by [email protected]
on 1 Oct 2011 at 1:46
Possible attack point:
setOnItemSelectedListener
Original issue reported on code.google.com by [email protected]
on 31 Mar 2012 at 4:52
What steps will reproduce the problem?
1.Use method xmlDom.tag("result","resultCode",null)
What is the expected output? What do you see instead?
NullPointException
Original issue reported on code.google.com by [email protected]
on 15 May 2012 at 7:18
* The ability to cancel loading an image. I'm aware of the static method
clearTasks() call in BitmapAjaxCallback, but there should really be a cancel
method on a specific BitmapAjaxCallback object. Am I just overlooking it? If
not, are you planning on adding it?
Original issue reported on code.google.com by [email protected]
on 17 Mar 2012 at 3:33
wouter88 Wouter Goossens
@AndroidQuery Would it be possible in a future release to specify a download
path to download an image to that directory for example?
Original issue reported on code.google.com by [email protected]
on 16 Apr 2012 at 2:08
Automatically shrink file cache size without user request.
Original issue reported on code.google.com by [email protected]
on 27 Oct 2011 at 6:35
Add gzip header and unzip inputstream.
http://stackoverflow.com/questions/1573391/android-http-communication-should-use
-accept-encoding-gzip
Original issue reported on code.google.com by [email protected]
on 12 Mar 2012 at 10:49
What steps will reproduce the problem?
1. Create ListView with adapter, each list item contains image than loaded
trough URL and progress indicator. Activity has button that modify adapter (in
our case new data is loaded, adapter is modified, new data has new images
aswell)
What is the expected output? What do you see instead?
i expect that progress indicator must be hidden when image is displayed, but
sometimes (most often it happens in firs and last item of adapter) image is
displayed, but progress bar is still visible.
What version of the product are you using? On what operating system?
android-query.0.20.6.jar
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 12 Mar 2012 at 6:20
I need use typeface with my TextView, anything like
aq.id().typeFace("myFont.ttf"); would be great :-)
Original issue reported on code.google.com by julien.quievreux
on 2 May 2012 at 2:20
What steps will reproduce the problem?
1. gridview holding 25 images
2. at most 8 of them are loaded successfully
3. at least 17 images callback receive AjaxStatus.NETWORK_ERROR
What is the expected output? What do you see instead?
It works fine when I use the very old version android-query.0.4.1-beta.jar
What version of the product are you using? On what operating system?
android-query.0.18.4
Original issue reported on code.google.com by [email protected]
on 25 Jan 2012 at 8:45
Other than view and progressbar, add easy progress dialog support for
monitoring with ajax calls as well.
Original issue reported on code.google.com by [email protected]
on 30 Oct 2011 at 8:57
Can i use aq.id(R.id.button).image(url) ? i saw using with imageview but i want
to load image from url on Button background
http://www.facebook.com/permalink.php?story_fbid=249756125059420&id=205050232863
343
Original issue reported on code.google.com by [email protected]
on 16 Sep 2011 at 5:30
Add XML pull or sax parsing ajax type
Original issue reported on code.google.com by [email protected]
on 11 Jan 2012 at 10:24
Support shoulddelay with expandable list
Original issue reported on code.google.com by [email protected]
on 31 Mar 2012 at 5:04
Add longClicked method similar to clicked.
Original issue reported on code.google.com by [email protected]
on 3 Apr 2012 at 12:08
What steps will reproduce the problem?
1. server that returns:
"[{"facebook_id":"XXXXXXXXXX","xmpp_address":"[email protected]"}]"
2. use aQuery to retrieve above with type set JSONObject
3. Logcat will show "transform error" and the callback object that should have
be a json object is null
What is the expected output? What do you see instead?
should return json object
What version of the product are you using? On what operating system?
0.15.7
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 17 Dec 2011 at 9:20
First, loving AQuery!
Feature request:
Add the following to AjaxCallback, or create a new interface to include these
hooks for ajax requests.
onPreExecute
onComplete (currently callback())
onError
onCancel
Particularly interested in pre execute for more complex functionality than
progress dialogs, and ability to pass entire callback methods around.
Thanks!
Original issue reported on code.google.com by [email protected]
on 17 Jan 2012 at 9:35
it's seems you use the internal memory to cache files, are you planning on
permitting the use of the SD card for that?
Original issue reported on code.google.com by [email protected]
on 29 Sep 2011 at 1:11
Hi everyone.
Be short, Functionality such as "Persistent Cookie Storage" are
present in AQuery?
I need use Cookies from first request in all requests of application
(after basic auth).
Some recomendations or short sample?
Original issue reported on code.google.com by [email protected]
on 5 Mar 2012 at 3:10
What steps will reproduce the problem?
aq.id(image).image(url, true, true, 0, AQuery.GONE, null, 0,
AQuery.RATIO_PRESERVE);
What is the expected output? What do you see instead?
I see white blank image instead of nothing.
What version of the product are you using? On what operating system?
Aquery 0.8.14, in 0.17 seems working ok
Original issue reported on code.google.com by [email protected]
on 7 Jan 2012 at 9:50
What steps will reproduce the problem?
1. use url with https (self-signed certificate)
2.
3.
What is the expected output? What do you see instead?
In current situation image doesn't load, as it should have been loaded.
What version of the product are you using? On what operating system?
android-query-0.21.7.jar on android 2.2
Please provide any additional information below.
I am using images in listview (ViewHolder Pattern) and my server is https with
self-signed certificate, none of my images are loading.
Original issue reported on code.google.com by [email protected]
on 26 Apr 2012 at 3:39
What steps will reproduce the problem?
1. import android-query.jar into projects libs folder
2. run project
What is the expected output? What do you see instead?
expected: application starts
what I see: Conversion to Dalvik format failed with error 1
What version of the product are you using? On what operating system?
android-query version: 21.5
operating system: windows 7 64 bit
eclipse indigo service release 2
Android Development Tools 18.0.0.v201203301601-306762
Please provide any additional information below.
Console output:
[2012-04-11 09:10:40 - BonBons] Dx
EXCEPTION FROM SIMULATION:
[2012-04-11 09:10:40 - BonBons] Dx local variable type mismatch: attempt to set
or access a value of type int using a local variable of type
android.view.ViewGroup. This is symptomatic of .class transformation tools that
ignore local variable information.
[2012-04-11 09:10:40 - BonBons] Dx ...at bytecode offset 00000062
locals[0000]: I
locals[0001]: Landroid/view/View;
locals[0002]: Landroid/view/ViewGroup;
locals[0003]: Ljava/lang/String;
locals[0004]: I
stack[top0]: I
...while working on block 0060
...while working on method
shouldDelay:(ILandroid/view/View;Landroid/view/ViewGroup;Ljava/lang/String;)Z
...while processing shouldDelay
(ILandroid/view/View;Landroid/view/ViewGroup;Ljava/lang/String;)Z
...while processing com/androidquery/util/Common.class
[2012-04-11 09:10:42 - BonBons] Dx 1 error; aborting
[2012-04-11 09:10:42 - BonBons] Conversion to Dalvik format failed with error 1
Original issue reported on code.google.com by [email protected]
on 11 Apr 2012 at 7:16
Cookie can be set with header but might want to make it simpler?
Original issue reported on code.google.com by [email protected]
on 31 Oct 2011 at 5:11
Move google handle to auth package and make core lib to be compiled under level
4.
Original issue reported on code.google.com by [email protected]
on 6 Mar 2012 at 2:01
What steps will reproduce the problem?
follow the steps of first ajax example in wiki document
What is the expected output? What do you see instead?
get the google search JSON result
actually it returns null always
Original issue reported on code.google.com by [email protected]
on 31 Dec 2011 at 7:47
I would really appreciate, if it would be possible to use the built-in title
progress bar as a progress bar for ajax calls. As I quickly looked through the
source code, perhaps it might be only a little change in Common.
Since the setProgressBarIndeterminateVisibility is a method of Activity, the
Common.showProgress could add one more test (if the progress variable is
instance of Activity) which would call
setProgressBarIndeterminateVisibility(show);
Original issue reported on code.google.com by [email protected]
on 27 Apr 2012 at 5:18
It would be nice if the caller of aq.ajax could pass in an opaque data object
and get it back in the callback, for example:
public void asyncJson() {
MyData data = new MyData(...);
aq.ajax(url, JSONObject.class, data, this, "jsonCallback");
}
public void jsonCallback(String url, JSONObject reply, Object data, AjaxStatus
status) {
MyData data = (MyData)data;
...
}
this would allow the caller to pass through any request specific information
that is needed to process the reply.
what do you think? thanks!
Original issue reported on code.google.com by [email protected]
on 12 Feb 2012 at 7:02
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.