Re: [android-developers] Which pattern is most common for apps that involve communication with servers?

2015-02-19 Thread Kristopher Micinski
Right, that's a good point I did not mention. I'm interested in knowing what percentage of apps use a framework like this rather than facilities purely within the vanilla Android framework. I can do some rough calculations in a while by grabbing a bunch of apps and running some analysis on them,

[android-developers] Which pattern is most common for apps that involve communication with servers?

2015-02-19 Thread Kristopher Micinski
I am trying to get an idea of what most developers use to interact with web services. The two main patterns I see in apps is to either create: - Create an AsyncTask to make restful requests, and then do something with `onPostExecute`, or to - Create a service, and then have some API between

Re: [android-developers] Which pattern is most common for apps that involve communication with servers?

2015-02-19 Thread TreKing
On Thu, Feb 19, 2015 at 2:03 PM, Kristopher Micinski krismicin...@gmail.com wrote: I was wondering if there were any other patterns that app developers used that I hadn't thought about, Use a library like Volley or Retrofit.

Re: [android-developers] Which pattern is most common for apps that involve communication with servers?

2015-02-19 Thread Kostya Vasilyev
A service turned inside out A mediator class that manages a pool of threads, submits / cancels / executes task objects, manages the wake lock (based on having tasks). And a service whose only responsibility is to do startForeground / stopForeground when it's told to. All in the same process.

Re: [android-developers] Re: NullPointerException in java.io.File.fixSlashes?

2015-02-19 Thread Fran Marzoa
Except I am not doing it... On Wed, Feb 18, 2015, 15:26 Sérgio Faria sergio9...@gmail.com wrote: Given the stack above, it seems you're doing new File(null) https://android.googlesource.com/platform/libcore/+/ android-2.3.4_r1/luni/src/main/java/java/io/File.java 2015-02-18 11:45 GMT+00:00

[android-developers] Re: Google Maps API Android - NullPointerException - setBoundsInParent

2015-02-19 Thread ps-geolives
Hello. The bug has been confirmed by Google : https://code.google.com/p/gmaps-api-issues/issues/detail?id=7619 Best regards. Le vendredi 6 février 2015 09:54:50 UTC+1, ps-geolives a écrit : Hello. In our Android mobile application (compatible with Android versions 4.0 and upper), we use

Re: [android-developers] Re: NullPointerException in java.io.File.fixSlashes?

2015-02-19 Thread Sérgio Faria
Well, either the stack trace is wrong or the source is not the one I linked to (android-2.3.4_r1) or you're doing new File((String) null) Let's see: 3 at java.io.File.init(File.java:139) 138. public File(String path) { 139. init(path); 2 at java.io.File.init(File.java:189) 186. private

Re: [android-developers] Re: NullPointerException in java.io.File.fixSlashes?

2015-02-19 Thread Fran Marzoa
My app has about 20,000 boots a day, and every single crash like this one is reported to be occurring exclusively with such 2.3.4 Android version. Every single one, in spite such version represent less than 5% of the devices were my app is installed. No other Android version is affected at all.

Re: [android-developers] INSTALL_FAILED_DUPLICATE_PERMISSION

2015-02-19 Thread Marina Cuello
Hi! I'm not sure how to help, because've only met this problem when there are several users set on a device. If I install my app directly from Eclipse with my debug certificates, then uninstall the app and try to install a production copy, made with the release certificate, I've got the same

[android-developers] VoiceInteractionService - Is there Voice Interaction support in Lollipop (21) SDK?

2015-02-19 Thread smichak
Hi, I have noticed that in Android Lollipop (API Level 21) there's a VoiceInteractionService class (http://developer.android.com/reference/android/service/voice/VoiceInteractionService.html) which apparently allows an app to setup Hotword Detectors which fire a callback when a certain

Re: [android-developers] Which pattern is most common for apps that involve communication with servers?

2015-02-19 Thread Kristopher Micinski
I agree, that sounds like a useful pattern. I *think* that's relatively close to how Volley is implemented (though I haven't read the implementation fully), too. Do you have any pointers to open sourced code that would provide an example of such a behavior? If not, no big deal: I can certainly