Comments (9)
Too complete this issue. I've excluded the main/test/main.java from my build path, because it was missing, then I got a new error in BetterHttpRequest that OAthConsumer object is missing.
from droid-fu.
Hi,
you need the Android JAR as an artifact in your local Maven repository. Unfortunately, Google does not seem to be willing to add the Android JARs to Maven Central, so you have to install it manually (that's pretty easy though).
Instructions here:
http://code.google.com/p/maven-android-plugin/wiki/GettingStarted
PS: everything should be fine after doing that. don't do stuff like deleting tests... that will most certainly break the build.
from droid-fu.
Did you manage to get it working? Here's the step-by-step instructions (the maven-android-sdk-deployer is brand new, hadn't worked with it before myself):
- Update Droid-Fu to the latest version (I just committed a change which affects the build process)
- download the maven-android SDK deployer from http://github.com/mosabua/maven-android-sdk-deployer/archives/master
- OR -
git clone git://github.com/mosabua/maven-android-sdk-deployer.git - go to the folder where you cloned/unzipped the archive
- go to platforms/android-1.5 directory
- do $mvn install -Dandroid.sdk.path=/path/to/your/android/sdk
- go to the folder where you cloned/unzipped droid-fu
- do $mvn install -DcopyTo=/path/to/your/apps/lib/folder
that should do the job.
from droid-fu.
if you still have problems... I just uploaded a recent build to the downloads section --> http://github.com/kaeppler/droid-fu/downloads
but keep in mind that I will only occasionally update that file. syncing with master is your best bet ATM, since this library is still in early development.
from droid-fu.
Hi is this project dead now? I'd like to be able to keep transparent file transparent. If this isn't going to happen or if this project is dead I'd like to know now so I can find a different solution. Thanks
Matt
from droid-fu.
it's not dead, just on hold. I have been busy with other projects lately, but I'll get back to it as part of Qype's next iteration on Qype for Android.
from droid-fu.
Oh cool. Right I have an on thread question. I've followed the process above and created the file droid-fu-1.0-SNAPSHOT.jar in my lib folder. Since that I've changed the code slightly in an attempt to be able to set the scaleType of the image. I've create a public method call setScaleType and run the above command (8) again. In Eclipse I've tried using that method in my code but it doesn't appear in the autocomplete and won't compile.
I also expanded the "Referenced Libraries" folder in the package explorer and expanded down to the WebImageView.class and the method is listed there.
Any ideas what I'm doing wrong or steps i've missed out?!
Thanks
Matt
from droid-fu.
ignore me.... it worked :/
from droid-fu.
FYI: droid-fu is now completely decoupled from signpost. The signed() method has been removed. Please use an HttpClient RequestInterceptor to sign requests from now on, e.g.:
public class OAuthRequestInterceptor implements HttpRequestInterceptor {
public void process(HttpRequest request, HttpContext context) throws HttpException, IOException {
try {
if (request instanceof RequestWrapper) {
RequestWrapper wrapper = (RequestWrapper) request;
HttpUriRequest uriRequest = (HttpUriRequest) wrapper.getOriginal();
// remove any existing Auth header, since this may be invoked as part of a
// request-retry cycle
uriRequest.removeHeaders(OAuth.HTTP_AUTHORIZATION_HEADER);
// sign the original request (Signpost needs the URL, so the wrapper is not enough)
OAuthSystem.getConsumer().sign(uriRequest);
// copy the header over to the wrapper
Header authHeader = uriRequest.getHeaders(OAuth.HTTP_AUTHORIZATION_HEADER)[0];
request.setHeader(authHeader);
// Log.d("BetterHttp/OAuth " + System.currentTimeMillis(), "signing request as "
// + authHeader.getValue());
}
} catch (Exception e) {
throw new HttpException("OAuth request interceptor failed", e);
}
}
}
from droid-fu.
Related Issues (20)
- Wrong WebImageView default density
- Missing method to forecefully purge disk cache HOT 4
- static ImageLoader.clearCache() can throw null exception HOT 1
- Nullpointer in AbstractCache HOT 1
- BetterHttpResponse send method hangs forever HOT 2
- WebImageView race conditions in WebGalleryAdapter HOT 3
- WebImageView can't display link without "Content-Length" in the response header HOT 1
- proguard HOT 2
- NullPointerException when using disk cache and expiration time for url is reached HOT 2
- Could the cache length of BetterHttp be made non-static? HOT 2
- Cache fails when device has no sdcard.
- DroidFuApp's onClose can not work
- Do not have time out mechanism
- Maven: kaeppler-droid-fu-f80edb9 won't compile HOT 1
- only small portion of image is shown while scrolling WebGallery
- isApplicationBroughtToBackground doesn't *always* report the right value
- transparency of gif's - setCompressedImageFormat HOT 4
- isApplicationBroughtToBackground return wrong result when intent to anther application is called
- README link to ignition is broken HOT 1
- How the new Activity get the result from the request launched by the old activity?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from droid-fu.