[android-developers] Re: in-app biliing purchase flow with promo code return empty payload, why?

2016-03-02 Thread Henrik Lindqvist
I've tried to get an answer to the same problem: http://stackoverflow.com/questions/35381104/promo-codes-breaks-remote-server-verification On Wednesday, February 10, 2016 at 9:39:04 PM UTC+1, Frédéric Ravetier wrote: > > Hi, > > I code in ap billing in my application. Everything works fine

[android-developers] Re: Android 4.4 WebView cannot load content:// urls in html page

2014-02-19 Thread Henrik Lindqvist
This is a app breaking change. Android's content sharing is built around content:// uri's, this make that impossible. Every one please star: https://code.google.com/p/android/issues/detail?id=63033 On Friday, January 10, 2014 8:30:05 PM UTC+1, ankur wrote: We found some behavior changes on

[android-developers] Developer console (store page) analytics

2013-09-28 Thread Henrik Lindqvist
In the Google I/O 2013 video presenting coming features for the Developer Console, Riccardo Govoni talks about Analytics for Google Play Store page view etc.: https://www.youtube.com/watch?feature=player_detailpagev=SDaf7f9yl6E#t=1259 When will this feature be launched? Do my app have to

[android-developers] Google Play Store hidden ratings

2013-03-27 Thread Henrik Lindqvist
My app only got 3 written review and 2 ratings. Why can't i see who gave the rating only, i see who made the written review!? Wasn't the whole point of forcing users to user Google+ to make anonymous reviews/ratings impossible! Does the pre-Google+ ratings score for as much as the post-Google+

[android-developers] Re: Shape drawing - issue with corners

2011-01-25 Thread Henrik Lindqvist
The docs say you should do the following if you only want some corners rounded: corners android:radius=15dp android:bottomRightRadius=0dip android:bottomLeftRadius=0dip / Never got that it work tho. On Jan 25, 2:30 pm, Kostya Vasilyev kmans...@gmail.com wrote: Lior, Apparently, something

[android-developers] startActivity(ForResult) at Activity start (on/Create/Start/Resume) not working

2011-01-18 Thread Henrik Lindqvist
I'am trying to start a child Activity with startActivity(ForResult) when the main Activity starts. It doesn't work. If the child Activity used Theme.Dialog it doesn't show up at all. With a normal Theme it's displayed, but when I close the top child activity, a RuntimeException is thrown:

[android-developers] When NOT to update AppWidget from a Service

2011-01-17 Thread Henrik Lindqvist
My AppWidgets are updated by a Service at user-defined intervals or when certain intents occur. To save battery, I only update the AppWidgets when the screen is on (SCREEN_ON). Is there any other way to stop updating AppWidgets unnecessarily? Only when the home screen is visible? Only when a

[android-developers] Re: When NOT to update AppWidget from a Service

2011-01-17 Thread Henrik Lindqvist
that number) widgets when there is only one on the screen. http://kmansoft.wordpress.com/2010/06/22/per-widget-options-stale-wid... Thanks for the tip. I'am already doing this. Some causes of this are fixed in 2.2, but I'm keeping that code just in case. -- Kostya 2011/1/17 Henrik Lindqvist

[android-developers] Re: Widgets size

2011-01-17 Thread Henrik Lindqvist
This is how I calculate the AppWidget size: protected Point getAppWidgetPixelSize (AppWidgetProviderInfo appWidgetInfo, Point point) { int cx = (appWidgetInfo.minWidth + 2) / 74; int cy = (appWidgetInfo.minHeight + 2) / 74; float density =

[android-developers] Re: ImageView, no scaling and gravity

2011-01-16 Thread Henrik Lindqvist
is larger than the text. On Jan 16, 11:12 am, Henrik Lindqvist henrik.lindqv...@gmail.com wrote: I have a runtime generated Bitmap, for a RemoteView, that I wan't displayed within a ImageView without scaling, so I use scaleType=center. Now, if the bitmap is smaller than the ImageView I wan't

[android-developers] Re: ImageView, no scaling and gravity

2011-01-16 Thread Henrik Lindqvist
On Jan 16, 5:04 pm, Mark Murphy mmur...@commonsware.com wrote: On Sun, Jan 16, 2011 at 11:02 AM, Henrik Lindqvist henrik.lindqv...@gmail.com wrote: I've already tried that. It works if the bitmap is smaller than the ImageView, it aligns to the right edge correctly. But, if the bitmap

[android-developers] Re: ImageView, no scaling and gravity

2011-01-16 Thread Henrik Lindqvist
be a problem. Or setting custom typefaces through xml. Sigh. -- Kostya Vasilyev --http://kmansoft.wordpress.com 16.01.2011 19:06 пользователь Mark Murphy mmur...@commonsware.com написал: On Sun, Jan 16, 2011 at 11:02 AM, Henrik Lindqvist henrik.lindqv...@gmail.com wrote: I've already tried

[android-developers] Re: ImageView, no scaling and gravity

2011-01-16 Thread Henrik Lindqvist
the clipped edge faded for a nice ellipsize effect. :) On Jan 16, 7:38 pm, Mark Murphy mmur...@commonsware.com wrote: On Sun, Jan 16, 2011 at 11:48 AM, Henrik Lindqvist henrik.lindqv...@gmail.com wrote: Of course. That's a rule for any container/child relationship in Android. If a child view

[android-developers] ImageView, no scaling and gravity

2011-01-15 Thread Henrik Lindqvist
I have a runtime generated Bitmap, for a RemoteView, that I wan't displayed within a ImageView without scaling, so I use scaleType=center. Now, if the bitmap is smaller than the ImageView I wan't it to gravitate to the right. Or, if the bitmap is to large, crop the left side. ImageView seems to

[android-developers] Re: Variable size App Widget

2011-01-15 Thread Henrik Lindqvist
The receiver needs to have a diffrent android:name, provider class. Just create one for each size. On Jan 16, 4:30 am, John Gaby jg...@gabysoft.com wrote: Is there a way to allow the user to choose the size of the App Widget when he places it on his Home screen?  I tried creating 2 receiver

[android-developers] Re: TextView setCompoundDrawables inconsistent size

2011-01-09 Thread Henrik Lindqvist
, Romain Guy romain...@android.com wrote: You should use setCompoundDrawablesWithIntrinsicBounds() On Sat, Jan 8, 2011 at 6:40 PM, Henrik Lindqvist henrik.lindqv...@gmail.com wrote: I'am trying to use TextView's setCompoundDrawables feature because i wan't a button with a label above it. I

[android-developers] TextView setCompoundDrawables inconsistent size

2011-01-08 Thread Henrik Lindqvist
I'am trying to use TextView's setCompoundDrawables feature because i wan't a button with a label above it. I set android:drawableBottom to my button drawable, which is a layer-list with a button background, an icon and a toggle indicator. First app launch every thing looks nice, close app, launch

[android-developers] Re: ProgressBar with moving image. Drawable resource using translate.

2011-01-05 Thread Henrik Lindqvist
Think I've got it, even without the 9-patch hack. Using scale to translate/move a separate bitmap with gravity to prevent scaling the needle itself. Sure at low progress it will be clipped, as the 9-patch would be squashed. But that's easy to compensated for. On Jan 5, 3:57 am, Henrik Lindqvist

[android-developers] ProgressBar with moving image. Drawable resource using translate.

2011-01-04 Thread Henrik Lindqvist
I'am trying to make a ProgressBar with a moving needle. Since it's in a app-widget I can't make any custom code. It all needs to be done with Drawables. Creating a rotating ProgressBar is easy, just use rotate. But to move a needle image I've tried translate, it gives an error invalid drawable

[android-developers] Re: ProgressBar with moving image. Drawable resource using translate.

2011-01-04 Thread Henrik Lindqvist
the needle is outside of the stretch area. That may not give you quite accurate results for low progress values, but it will asymptotically approach accuracy by the time you complete the bar. On Tue, Jan 4, 2011 at 9:30 PM, Henrik Lindqvist henrik.lindqv...@gmail.com wrote: I'am trying to make

[android-developers] One local service multiple binding activities

2010-11-20 Thread Henrik Lindqvist
I have a local Service to which multiple activites needs to bind. In the first launched Activity, bindService returns true and onServiceConnected is called. But in any additionally launched activites bindService returns false, and I can't get a reference to my Service. How can multiple activities

[android-developers] Re: One local service multiple binding activities

2010-11-20 Thread Henrik Lindqvist
, onServiceConnected will never be called. This is a bug that should be fixed in the future. Not documented because we didn't realize it was broken. :) Seems like an old, ignored bug in TabActivity. Sigh! On Nov 20, 6:53 pm, Henrik Lindqvist henrik.lindqv...@gmail.com wrote: I have a local Service to which

[android-developers] Re: One local service multiple binding activities

2010-11-20 Thread Henrik Lindqvist
Solution: http://stackoverflow.com/questions/2914921/android-context-bindservice-always-returns-false-and-serviceconnection-object-is Use: getApplicationContext().bindService(...) Issue: http://code.google.com/p/android/issues/detail?id=2483 On Nov 20, 8:20 pm, Henrik Lindqvist henrik.lindqv

[android-developers] AlarmManager starting service, API Level?

2010-11-10 Thread Henrik Lindqvist
I've read comment that the AlarmManager in a earlier API version couldn't start services. Prior to which API Level was that? I'am currently testing in the emulator with API Level 4 and it start a service just fine. -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: AlarmManager starting service, API Level?

2010-11-10 Thread Henrik Lindqvist
, 2010 at 7:00 PM, Henrik Lindqvist henrik.lindqv...@gmail.com wrote: I've read comment that the AlarmManager in a earlier API version couldn't start services. Prior to which API Level was that? I don't know where you read that. PendingIntents have been able to start services since

[android-developers] Re: AlarmManager starting service, API Level?

2010-11-10 Thread Henrik Lindqvist
Thank. I'll sleep well tonight knowing raptors are extinct. On Nov 11, 1:30 am, Mark Murphy mmur...@commonsware.com wrote: On Wed, Nov 10, 2010 at 7:27 PM, Henrik Lindqvist henrik.lindqv...@gmail.com wrote: Thanks. I'am using the AlarmManager to send PendingIntent.getService

[android-developers] Stop AlarmManager sending past repeating alarm.

2010-11-10 Thread Henrik Lindqvist
When the device awakens from sleep state the AlarmManager sends all missed alarms. Can I prevent this from happening, grouping past alarm to a single intent instead? There is an intent extra android.intent.extra.ALARM_COUNT which seems to suggest it's possible? -- You received this message

[android-developers] service intent-filter

2010-11-09 Thread Henrik Lindqvist
I've got a IntentService started by an alarm. I also want it to start on other intents, like ACTION_TIME_CHANGED. Do I have to create an BroadcastReceiver that start the service when it receivers the TIME_SET intent, can't the service be started by the intent in the first place. I tried to add

[android-developers] Re: service intent-filter

2010-11-09 Thread Henrik Lindqvist
, Mark Murphy mmur...@commonsware.com wrote: On Tue, Nov 9, 2010 at 7:51 PM, Henrik Lindqvist henrik.lindqv...@gmail.com wrote: I've got a IntentService started by an alarm. I also want it to start on other intents, like ACTION_TIME_CHANGED. Do I have to create an BroadcastReceiver