[android-developers] In-app billing - ITEM_ID limitations

2011-02-02 Thread tomgibara
I've just finished reading the preliminary documentation for in-app billing. If I've understood correctly, as part of the billing request you can supply: * ITEM_ID which is limited to a small number of pre-registered product ids * DEVELOPER_PAYLOAD unconstrained - but with caveats? and these are

[android-developers] App widgets and remote views

2009-04-14 Thread tomgibara
I've just spent the last few hours nosing around to see what's new in this 1.5 pre-release. I decided to implement an app widget to try out the new package. From the provider end it's very straightforward, but I'm not certain about the performance implications. Specifically, I decided to implemen

[android-developers] Re: BitmapShader performance

2009-02-05 Thread tomgibara
t; On Thu, Feb 5, 2009 at 2:08 PM, tomgibara wrote: > > > I'm experimenting with tiling a fullscreen image (480x320px ARGB > > bitmap) with a square image (160x160px ARGB bitmap). My initial > > implementation was naive: > > > public void render(Canvas canvas) { >

[android-developers] BitmapShader performance

2009-02-05 Thread tomgibara
I'm experimenting with tiling a fullscreen image (480x320px ARGB bitmap) with a square image (160x160px ARGB bitmap). My initial implementation was naive: public void render(Canvas canvas) { final int size = tile.getWidth(); final int w = canvas.getWidth(); final int h = c

[android-developers] Re: Java IO is super-slow in Android -- why?

2008-11-28 Thread tomgibara
And I even managed to forget the code: try { final int bs = 8192; final byte[] buffer = new byte[bs]; long startTime = System.currentTimeMillis(); OutputStream writer = openFileOutput("speedtest", MODE_PRIVATE);

[android-developers] Restoration of SMS reading capability.

2008-10-23 Thread tomgibara
Will the capability for applications to observe incoming SMS messages be restored in future releases? (There's a permission, but no public API which is incongruous) I am already aware that the Intents of former SDK releases continue to work but I'm interested in whether there is a commitment to

[android-developers] Re: Android Source Code Now Available

2008-10-22 Thread tomgibara
Al, Android requires three (extrinsic) things: users, carriers and developers. Any particular feature/restriction may be independently regarded as good or bad by the members of these three groups. Seeing particular security related restrictions only within the narrow context of what suits develo

[android-developers] Changing the gravity of titles in Activity themes

2008-10-17 Thread tomgibara
It doesn't appear to be possible to change text alignment (gravity) using android:windowTitleStyle or any of the related properties. Can anyone tell me if this is an intentional limitation, a bug, or a mistake on my part? Thanks, Tom. --~--~-~--~~~---~--~~ You rec

[android-developers] Using the battery state

2008-09-30 Thread tomgibara
The scenario is that I am writing a small app that I want to run in the background only when the device is charging. My problem is that this appears to impossible to achieve. The documentation helpfully informs me that ACTION_BATTERY_CHANGED intents cannot be received through components declared

[android-developers] Settings Application and Preferences

2008-09-25 Thread tomgibara
Could someone who knows (probably a Google engineer) kindly confirm that the Settings application (which has never been available on the emulator) aggregates preference Activities from installed apps?. And if so, do they need an intent filter containing the CATEGORY_PREFERENCE. And if this guess

[android-developers] Using android.security package

2008-09-21 Thread tomgibara
I've noticed that there is an android.security package in the android jar which is not listed in the package index: http://code.google.com/android/reference/packages.html It appears to contain wrappers for native MessageDigest implementations. Is there any chance that these could be added to the

[android-developers] Re: Possible bug in ListPreference

2008-09-20 Thread tomgibara
s defined with an element are automatically coerced into types in a way that causes ListPreference instances to fail. Tom. On Sep 19, 11:57 pm, tomgibara <[EMAIL PROTECTED]> wrote: > This is probably a bug in the Preferences framework, but I'm not > particularly familiar with the

[android-developers] Possible bug in ListPreference

2008-09-19 Thread tomgibara
This is probably a bug in the Preferences framework, but I'm not particularly familiar with the API and the documentation is a little sparse, so I thought I'd check first... Is there a restriction on the strings that can be used in the entryValues array for a ListPreference? I define the followi

[android-developers] Re: Accessing the IMEI in 0.9

2008-08-20 Thread tomgibara
n Guy" <[EMAIL PROTECTED]> wrote: > Use Context.getSystemService(TELEPHONY_SERVICE) to get access to the > TelephonyManager. > > On Wed, Aug 20, 2008 at 3:05 PM, tomgibara <[EMAIL PROTECTED]> wrote: > > > The changes overview for 0.9 states that: > > &g

[android-developers] Re: Passing Bitmaps via Intents (redux)

2008-08-20 Thread tomgibara
ntents. That's how Home can create > shortcuts with custom icons (for instance the photo of your contact.) > However, it is expensive to do so and you should really not pass large > bitmaps through Intents (Home uses 48x48 bitmaps.) > > > > On Wed, Aug 20, 2008 at 2:57

[android-developers] Accessing the IMEI in 0.9

2008-08-20 Thread tomgibara
The changes overview for 0.9 states that: "Several GSM subscriber and device-related system properties are moved to new permission-checked API. You can now access these phone/ subscriber properties through the new PhoneSubInfoManager, using the IPhoneSubInfo interface." PhoneSubInfoManager doesn

[android-developers] Passing Bitmaps via Intents (redux)

2008-08-20 Thread tomgibara
How does the following documentation for MediaPlayer.ACTION_IMAGE_CAPTURE: "Standard Intent action that can be sent to have the media application capture an image and return it. The image is returned as a Bitmap object in the extra field." square with hackbod's informed commentary here: http://

[android-developers] Re: Taking care of proxy Internet access for Dev Challenge?

2008-04-10 Thread tomgibara
It shows how much I have to learn :) Thanks for setting me straight. I think my comments regarding the ADC still stand though. Warning: more ill informed follows. I always had the impression that mobile phones and their like would use gateways (yes proxies I guess) that would be determined and c

[android-developers] Re: Taking care of proxy Internet access for Dev Challenge?

2008-04-09 Thread tomgibara
I'm becoming confused with all of the guidance being given to entrants of the ADC. One the one hand, the flavour of the posts in the Challenge group is that we are not permitted to instruct the user to do anything to their emulator. This seems to include pushing files to it, installing an supplie

[android-developers] Re: Slow Bitmap operations

2008-04-01 Thread tomgibara
Doing pixel-level processing in within the Dalvik VM will necessarily incur the overhead of copying the pixel data into the VM heap. As others have suggested, this needs be done to gain fast access to the pixel data. But I doubt that this is the bottleneck, it's certainly the interpreted nature o