[android-developers] puchaseToken of Subscriptions in Google In-app Billing V3

2014-03-05 Thread btai...@gmail.com
The release of App which I involves in is now close at hand. I have recently added subscriptions to App. Unfortunately, I don't have time to test recurring subscription due to the release date. I have a couple of questions about puchaseToken parameter issued by Google after purchasing

[android-developers] Re: Android WebView resolving URL occasionally results in multiple hits with different user agents

2014-03-05 Thread IcedNet
Have you logged the strUserAgent to observe the value? when you say wrapper it lends itself to wondering if the device inserts its own bit of info... Other than that, I can only say the WebView is and has always been flaky, so nothing surprises me. On Tuesday, March 4, 2014 10:38:15 AM UTC-5,

[android-developers] Re: Putting Ads in a keyboard

2014-03-05 Thread JackN
Are you an advertiser or developer? first, you need to decide. On Monday, March 3, 2014 11:15:02 PM UTC-8, Brill Pappin wrote: So writing keyboards, I work on one of those few apps that actually could use things like notification bar ads, however, due to Googles new rules, I am left with

[android-developers] why checkCallingPermission() always returns -1 ?

2014-03-05 Thread smoogli
Hi, I created a service whose handleMessage() is triggered by a remote activity. works fine... then, wanted to add a check that the remote activity has the required permission so added a call for *checkCallingPermission(android.permission.INTERNET)*; and added *uses-permission

Re: [android-developers] Re: Putting Ads in a keyboard

2014-03-05 Thread Steve Gabrilowitz
You might want to check out http://www.app-bucks.com/ for a Google compliant replacement for the old notification bar ads. I'm using them and while I'm not pleased with the eCPM figures I guess that something is better than nothing. As a sort of plus my sales for the pro version (no ads) has

Re: [android-developers] why checkCallingPermission() always returns -1 ?

2014-03-05 Thread Nikolay Elenkov
On Thu, Mar 6, 2014 at 7:13 AM, smoogli roy.ben.ha...@gmail.com wrote: Hi, I created a service whose handleMessage() is triggered by a remote activity. works fine... then, wanted to add a check that the remote activity has the required permission so added a call for

Re: [android-developers] why checkCallingPermission() always returns -1 ?

2014-03-05 Thread smoogli
Hi Nicolay, thanks for the reply. true, there is a point in what you say about the processes. so there are two separate APK's. I can see they are running in two different processes. still, the message seems to come from the service itself: although the message is called from the remote client

Re: [android-developers] why checkCallingPermission() always returns -1 ?

2014-03-05 Thread Nikolay Elenkov
On Thu, Mar 6, 2014 at 2:08 PM, smoogli roy.ben.ha...@gmail.com wrote: (I can only assume there is some configuration that needs to be set, or something that I am missing here) You need a bound service for this to work and you will only get the UID of the activity on binder calls.

Re: [android-developers] why checkCallingPermission() always returns -1 ?

2014-03-05 Thread smoogli
I think it was already done. from what I see, it already uses what is explained in http://developer.android.com/guide/components/bound-services.html please see sources below (can ignore the prints and debugging stuff...) thanks! package com.example.remoteservice; import android.app.Service;

Re: [android-developers] why checkCallingPermission() always returns -1 ?

2014-03-05 Thread Nikolay Elenkov
On Thu, Mar 6, 2014 at 3:19 PM, smoogli roy.ben.ha...@gmail.com wrote: I think it was already done. from what I see, it already uses what is explained in http://developer.android.com/guide/components/bound-services.html Ah, you are using Messenger. IIRC, The Handler's onHandleMessage() is not

Re: [android-developers] why checkCallingPermission() always returns -1 ?

2014-03-05 Thread smoogli
Hi Nicolay, I think this was already done. please see shortened sources below. also, the Service has this line in its manifest: service android:name=.RemoteService android:process=:remote maybe you can spot something? thanks! package com.example.remoteservice; public class RemoteService