Comments (8)
This is looking like it's going to be non-trivial. We'll probably have to extend AndroidHttpClient and override newInstance()
from datadroid.
And of course AndroidHttpClient is final, grrrr. Are we against implementing HttpClient ourselves using AndroidHttpClient as a base?
from datadroid.
I'm currently completely rewriting my NetworkConnection class to switch automatically between AndroidHttpClient and HttpURLConnection based on the Android version (cf http://android-developers.blogspot.fr/2011/09/androids-http-clients.html), as well as implementing another version for 1.6 as AndroidHttpClient is not available for these versions.
So I'll see if I can add the verify ssl option at the same time
from datadroid.
great! I didn't want to make any huge changes like that as a contributor but that's perfect. I was also going to suggest using a Builder sort of class but looks like you're one step ahead of me again ;)
from datadroid.
You might reduce the complexity by using your own HttpClient impl on all < api 10, AndroidHttpClient is just for convenience, if we're doing the hard work ourselves there's no need for it. No?
from datadroid.
That was pretty much what I was thinking for API < 10 :)
from datadroid.
Not sure what the release schedule looks like for NetworkConnection v2 but pull request 9 should work for now.
from datadroid.
The version 2 of datadroid now allows to disable SSL validation.
from datadroid.
Related Issues (20)
- BadParcelableException when reading a Parcelable from a Request inside an Operation HOT 2
- Trying to use datadroid and sliding menu HOT 3
- Count number of Records in a model HOT 3
- Endless ListView HOT 5
- Array of values to parameters
- Httpurlconnection request with PUT method with cookies gives session invalid error. HOT 12
- UI isn't compatible with small screen
- Phone (CRUD) Sync issue
- Delivering result of network call to another activity. HOT 2
- how to apply migration to existing application HOT 1
- EOFException on some requests HOT 4
- SSL method in Android 2.2 HOT 2
- Sending Json Object as parameter in post method HOT 1
- Why have you decided to skip the approach of ContentProvider ? HOT 1
- Datadroid with Volley required! HOT 1
- Root for galaxy 5 HOT 1
- Send file use DataDroid
- Bug: no recycling of HttpClient HOT 3
- PoC Bug: Does not override applyBatch HOT 1
- PoC Feature: Demonstrate permissions HOT 1
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 datadroid.