[android-developers] Start voice typing from code ?

2012-06-29 Thread jarkman
I'm trying to find a way to get a user directly into voice-typing mode, exactly as you'd get by tapping the microphone symbol on the soft keyboard. The obvious route seemed to be to use InputMethodManager.setInputMethod, but I can't do that for lack of an IBinder token. Is that something that

[android-developers] Re: Start voice typing from code ?

2012-06-29 Thread jarkman
Thanks - I'd tried that, but it's not nearly as nice an experience as voice typing, where the text appears while the user is speaking. On Friday, June 29, 2012 5:11:21 PM UTC+1, Nobu Games wrote: You can start an

[android-developers] Re: Querying Google Play Music database

2012-03-19 Thread jarkman
Aman - I spent some time last week trying to find where the Music app keeps its playlists, and have failed. The whole thing puzzles me a bit. If the Google apps aren't going to use these documented APIs, what use are the APIs to developers ? At the very least, it would be helpful if the API

[android-developers] Is a manual update of Nexus S to 2.3.3 possible ?

2011-02-22 Thread jarkman
I have a Nexus S in the UK. I'd like to get 2.3.3 onto it to work with the new NFC APIs, but I have failed to find a firmware download for it. It sounds as though an OTA update has gone out in the US, but it hasn't happened here. Is there any manual update path ? Or any way to request the OTA

[android-developers] Re: Vanishing apps in the Market with 2.2.2

2011-01-28 Thread jarkman
Yes, our apps are. And, based on our previous experience, we can't un- copy-protect them without making their data unreadable. I suppose we just have to wait for the Market folks to fix their database. Richard On Jan 27, 12:17 am, Peter Sinnott psinn...@gmail.com wrote: Sometimes new firmwares

[android-developers] Re: Cannot find my own Apps in the Market

2011-01-27 Thread jarkman
A couple of our apps are invisible on devices with the 2.2.2 update, and have been for a few days now. I suspect the Market has forgotten to add the fingerprints of the new ROMs to its database, so devices with those ROMs cannot see copy- protected apps. There's a lot of complaint on the Market

[android-developers] Re: Android 2.2.2 Market app losing apps?

2011-01-26 Thread jarkman
While clearing the cache may fix one device, it is not much help to our customers. I see that Google now say that have fixed the underlying problem: http://android-developers.blogspot.com/2010/06/application-visibility-issues.html although (for example) I still can't see Ringo Pro right now on my

[android-developers] Re: Trouble with corrupt contact data

2010-10-07 Thread jarkman
deleted the sync problem went away. R. On Oct 5, 6:57 pm, jarkman jark...@gmail.com wrote: After a fight with some code intended to set contact photos in the contacts DB on 2.2, the contacts are now unable to sync - I get: android.database.sqlite.SQLiteException: unknown error: Unable

[android-developers] Trouble with corrupt contact data

2010-10-05 Thread jarkman
After a fight with some code intended to set contact photos in the contacts DB on 2.2, the contacts are now unable to sync - I get: android.database.sqlite.SQLiteException: unknown error: Unable to convert BLOB to string every time the contact provider attempts a sync, and a popup telling me

[android-developers] Re: Ready to release first app. What now?

2010-10-05 Thread jarkman
2) Building two products (with different package names) is a bit of a dance, but worth it once you have it set up. Take a look here for one solution: http://groups.google.com/group/android-developers/browse_thread/thread/270cbc77091e5bfd/ and here for a simpler-looking one:

[android-developers] Media URI stability

2010-09-16 Thread jarkman
We store references to media (music tracks) by storing media URIs. Things like this: content://media/external/audio/media/3 Of late, we've had a few complaints from users who saw the tracks change periodically. It's as if some other bit of software was running once a day or so and forcing a

[android-developers] Starting TextToSpeech from a service - why is it an IntentReceiver ?

2010-08-20 Thread jarkman
I'm having a play with TextToSpeech, trying to get it to run from a service. But, this innocuous-looking line: mTts = new TextToSpeech(mContext, this); generateds an exception: android.content.ReceiverCallNotAllowedException: IntentReceiver components are not allowed to bind to services

[android-developers] Re: RemoteViews and setEnabled - when is it supported ?

2010-07-24 Thread jarkman
On Jul 23, 6:39 pm, Mark Murphy mmur...@commonsware.com wrote: On Fri, Jul 23, 2010 at 1:35 PM, jarkman jark...@gmail.com wrote: Mark - thanks. I can't find any documentation on when the annotation changed, or even anywhere that looks like it ought to contain that documentation

[android-developers] RemoteViews and setEnabled - when is it supported ?

2010-07-23 Thread jarkman
I have a widget, working happily on 2.2, which includes this line: views.setBoolean(R.id.s_button, setEnabled, true); When I run it on 1.5, I get this: 07-23 17:11:59.643: WARN/AppWidgetHostView(158): android.widget.RemoteViews$ActionException: view: android.widget.ImageButton can't

[android-developers] Re: RemoteViews and setEnabled - when is it supported ?

2010-07-23 Thread jarkman
, 2010 at 12:26 PM, jarkman jark...@gmail.com wrote: I have a widget, working happily on 2.2, which includes this line:           views.setBoolean(R.id.s_button, setEnabled, true); When I run it on 1.5, I get this: 07-23 17:11:59.643: WARN/AppWidgetHostView(158): android.widget.RemoteViews

[android-developers] LED problems on Droid with the 2.1 update

2010-04-08 Thread jarkman
We're getting lots of complaints from our users with Droids that the LED colours associated with notifications aren't working properly. Has anyone else seen this ? Any idea what's up ? Thanks, Richard -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Add calendar item through Intent?

2010-03-19 Thread jarkman
There's no documented way. You will find some folks have found undocumented ways (for example, http://jimblackler.net/blog/?p=151 - read the comments too). In my own experimentation, I managed to make the Calendar app on the device completely non-functional, so I became disillusioned with the

[android-developers] Re: Free Version of App

2010-02-25 Thread jarkman
/browse_thread/thread/270cbc77091e5bfd/857245e6964e5090?lnk=gstq=jarkman#857245e6964e5090 Doing it this way has one convenient feature, which is that you can have a few source and/or layout files which are different for the two versions. It saves the shoehorning required to implement all your behaviour changes

[android-developers] Why does addHeaderView make a ListActivity forgetful of its position ?

2010-02-25 Thread jarkman
We have an app with a ListActivity and an edit view. Tap on an item in the ListActivity, see the edit view of that item, hit the Back key, see the list view. All very ordinary stuff. But, in this app, the ListActivity does not retain its postion during that sequence. After hitting Back, the list

[android-developers] Re: Free Version of App

2010-02-25 Thread jarkman
changes in the manifest. Take a look at Context.createPackageContext(), here: http://groups.google.com/group/android-developers/browse_thread/thread/9d95bdd4a1bf81f0/9926f03b990d31f7?lnk=gstq=jarkman#9926f03b990d31f7 Richard On Feb 25, 5:05 pm, Bob Kerns r...@acm.org wrote: While the downloadable

[android-developers] Re: Multiple versions of app with different package names

2010-02-15 Thread jarkman
I'm just going through a similar exercise in order to build lite and pro versions of the app from a single codebase. I'm using an Ant script derived from this one: http://ulrichscheller.blogspot.com/2009/10/android-deploying-multiple-targets-from.html which converts the project from one target to

[android-developers] Re: adding a quick add event to the Calendar

2010-01-23 Thread jarkman
calendar URI not on android official site but elsewhere and you can find some more info which others have shared and this was useful to me. On Jan 22, 9:15 am, jarkman jark...@gmail.com wrote: Andrew, can you share how you are adding events to the calendar ? I can't find any documented API

[android-developers] Re: adding a quick add event to the Calendar

2010-01-22 Thread jarkman
Andrew, can you share how you are adding events to the calendar ? I can't find any documented API, so I am assuming you are using an undocumented one... :-) Thanks, Richard On Jan 22, 1:49 pm, andrew android andygoldm...@gmail.com wrote: I understand where you are coming from... In my app -

[android-developers] Intent filter for text/calendar ?

2010-01-21 Thread jarkman
I've been trying (and failing) to write an intent filter which will allow my app to handle text/calendar attachments received in the GMail or email apps I don't really know if my failure is because the mail apps are just not looking for apps to handle these attachments, or if I am getting the

[android-developers] Re: Intent filter for text/calendar ?

2010-01-21 Thread jarkman
On Jan 21, 5:11 pm, Mark Murphy mmur...@commonsware.com wrote: I've been trying (and failing) to write an intent filter which will allow my app to handle text/calendar attachments received in the GMail or email apps I don't really know if my failure is because the mail apps are just not

[android-developers] Re: Intent filter for text/calendar ?

2010-01-21 Thread jarkman
On Jan 21, 5:34 pm, Mark Murphy mmur...@commonsware.com wrote: Well, if you hunt through Google Code Search, you'll find a number of sample intent filters that use android:mimeType. See if any of those are treated properly by the mail client. If one does, try mirroring their intent filter.

[android-developers] Detecting the presence of a mute switch

2009-12-17 Thread jarkman
On the CLIQ, there's a physical switch to put the device into a silent state. That means we can't (or at least shouldn't) offer UI to change the ringer mode (via Audiomanager.setRingerMode()), since we don't want to leave the device's state inconsistent with the switch. I can't find any way to

[android-developers] Re: MediaPlayer - Command PLAYER_SET_DATA_SOURCE completed with an error or info PVMFErrNotSupported

2009-12-14 Thread jarkman
/fee0d5edbe36ae0c/b2083a2b2688f001?lnk=gstq=jarkman#b2083a2b2688f001 I think the media player takes some time to shut down and clean up, and if you try to start it again during that time it just dies. We fixed that problem in a roundabout way, by caching ringtone names. Is it possible that the difference

[android-developers] Market access to paid apps on Droid ?

2009-12-14 Thread jarkman
We've had a couple of reports from Droid users that they can see our free trial apps in the Market, but not our paid-for ones. And, as some of them had bought an app on their previous device, they are understandably anxious to get it onto their new device. We know it's not afflicting all Droid

[android-developers] What's the best model for type-to-filter with a screen keyboard ?

2009-11-20 Thread jarkman
We have a list view that uses type-to-filter to good effect on devices with physical keyboards. Right now, users without physical keyboards have no way to use the filter, and obviously we ought to fix that. I'm trying to work out what the 'usual approach' is, so as not to startle the users. But

[android-developers] Re: Contacts FAQ?

2009-11-19 Thread jarkman
GDroid - here's a recipe for supporting two SDK versions in one app: http://groups.google.com/group/android-developers/msg/f3b24f3a0748a622 Richard On Nov 18, 9:43 am, GDroid baron...@gmail.com wrote: I would like to add one more question to this issue: 15) What is the best way to write the

[android-developers] Re: building to support both contacts 1.6 and 2.0 apis

2009-11-19 Thread jarkman
We've built two lumps of API-specific code for 1.6 2.0, and we choose between them at runtime with this trick: http://groups.google.com/group/android-developers/msg/f3b24f3a0748a622 Richard On Nov 17, 8:24 pm, androsag sagu...@gmail.com wrote: As has been discussed on this list, the 2.0

[android-developers] Re: motorola cliq sdk 2.0

2009-11-10 Thread jarkman
Suzanne - I had wondered if that was the reason. But the problem is not exactly that there is data on the device that is inaccessible to third-party apps. The problem is that the accessible and inaccessible data are mixed together in the Contacts app in a way which makes it hard for users to see

[android-developers] Re: motorola cliq sdk 2.0

2009-11-09 Thread jarkman
Dianne - we have a couple of problems on the CLIQ. In both cases, the APIs are technically working correctly, but the resulting user experience is unfortunate, so these may not be exactly what you are asking for. But, in case you are interested: (1) The CLIQ has a lot of contact data (from

[android-developers] Re: Working with the new ContactContracts API

2009-11-09 Thread jarkman
, 2009 at 12:04 PM, jarkman jark...@gmail.com wrote: Oops! I see what you mean. Perhaps that update was a little bold... :-) So I need to search out the right row (with the right contact ID and the photo's MIME type) in the Data table with a query, then update that row ? If there isn't

[android-developers] Re: Working with the new ContactContracts API

2009-11-09 Thread jarkman
Dmitri On Nov 9, 2009 10:40 AM, jarkman jark...@gmail.com wrote: Dmitri - could I ask you another question ? We are setting custom ringtones for contacts: Uri contactUri; // eg: content://com.android.contacts/contacts/12 ContentValues values = new ContentValues(); values.put

[android-developers] Re: Working with the new ContactContracts API

2009-11-06 Thread jarkman
Jake - thanks for that. Your code seems to match my understanding of Dmitri's recipe, and also actually seems to work for me. Which i hope is good news... :-) Richard On Nov 5, 9:20 pm, jak. koda...@gmail.com wrote: Hi Dmitri Jarkman, Hope everyone's having a good day. I'm also working

[android-developers] Re: Working with the new ContactContracts API

2009-11-05 Thread jarkman
: ContentUris.withAppendedId(Data.CONTENT_URI, dataId) I hope this helps. - Dmitri On Thu, Nov 5, 2009 at 9:05 AM, jarkman jark...@gmail.com wrote: Dmitri - I wasn't, but I am now - thanks for the tip. It doesn't fix the problem, though. It seems as though I can set the photo once on a brand

[android-developers] Re: Stable contact identity CONTENT_LOOKUP_URI

2009-11-04 Thread jarkman
of resolution or uses something even more robust than lookup keys, e.g. raw contact IDs. I hope this helps, - Dmitri On Tue, Nov 3, 2009 at 6:40 AM, jarkman jark...@gmail.com wrote: Oh - one more question: Am I right in thinking that the lookup URI is not itself a unique, stable identifier

[android-developers] Re: Trouble setting contact photos with ContactsContract

2009-11-04 Thread jarkman
, ContactsContract.Data.RAW_CONTACT_ID + = + String.valueOf (personId) + AND + ContactsContract.Data.MIMETYPE + = + \ + ContactsContract.CommonDataKinds.Photo.CONTENT_ITEM_TYPE+ \, null); Richard On Nov 3, 11:47 am, jarkman jark...@gmail.com wrote: I'm happily retrieving contact photos

[android-developers] Re: Stable contact identity CONTENT_LOOKUP_URI

2009-11-03 Thread jarkman
both ids.  If your app works with a single contact per user action - you don't need to bother with the long id. I hope this helps, - Dmitri On Mon, Nov 2, 2009 at 9:02 AM, jarkman jark...@gmail.com wrote: In the course of moving to the 2.0 cotnact APIs, I've stumbled across

[android-developers] Trouble setting contact photos with ContactsContract

2009-11-03 Thread jarkman
I'm happily retrieving contact photos with the new ContactsContract APIs and cursor.getBlob, but I'm having great trouble working out how to set a contact photo. I believe I have the right URI (at least, it works for retrieving the photo), but it just won't work for updating or adding one.

[android-developers] Re: Quick Contacts popup

2009-11-03 Thread jarkman
Jeff - is there any way to add our app to the QuickContact app list, so we show up when the user taps the badge ? I'm guessing this will come down to an intent filter, but I can't work out what it ought to be. Thanks, Richard On Oct 30, 6:02 pm, Jeff Sharkey jshar...@android.com wrote: The

[android-developers] Re: Stable contact identity CONTENT_LOOKUP_URI

2009-11-03 Thread jarkman
. I hope this helps, - Dmitri On Mon, Nov 2, 2009 at 9:02 AM, jarkman jark...@gmail.com wrote: In the course of moving to the 2.0 cotnact APIs, I've stumbled across CONTENT_LOOKUP_URI : http://developer.android.com/reference/android/provider/ContactsContr... As long as the contact's

[android-developers] Re: Picking up a PhoneBook entry under Android 2.0 !!!

2009-11-02 Thread jarkman
On Nov 2, 1:57 am, frantz lohier floh...@gmail.com wrote: When running the same code (compiled with SDK 1.6) and a target emulator at 2.0 level, the above code never return the entries I have populated in my the phone book. It's as if the phonebook was always empty. My (hazy) understanding

[android-developers] What is CONTENT_STREQUENT_URI used for ?

2009-11-02 Thread jarkman
I'm looking at CONTENT_STREQUENT_URI, desribed as 'only starred contacts and the most frequently contacted contacts'. When we show a contact group picker, we could include this as a sort of meta-group. It seems like a very useful thing. But I'd like our picking to be familiar to the user, so I

[android-developers] Stable contact identity CONTENT_LOOKUP_URI

2009-11-02 Thread jarkman
In the course of moving to the 2.0 cotnact APIs, I've stumbled across CONTENT_LOOKUP_URI : http://developer.android.com/reference/android/provider/ContactsContract.Contacts.html#CONTENT_LOOKUP_URI As long as the contact's row ID remains the same, this URI is equivalent to CONTENT_URI. If the

[android-developers] Re: Android 2.0 Force close in contacts app

2009-10-28 Thread jarkman
Xavier - one of our apps is very dependent on contact data. Right now, running it in the Emulator with a couple contacts added in the Contacts app, it appears to be completely broken. I suspect it is something to do with a change in the behaviour of group memberships. I'd like to port it to 2.0

[android-developers] 1.6 and 2.0 builds ?

2009-10-28 Thread jarkman
We have an app which is very involved with contact data, and will need to be ported to the new contacts APIs to work properly under 2.0. It looks like the change will affect quite a lot of code, so ideally we would fork the project, make the right changes, and then have 1.6 and 2.0 builds in the

[android-developers] Re: Trouble with Ringtone.getTitle() in 1.6

2009-10-22 Thread jarkman
to finish doing its cleanup work in the background, but it is obviously a slightly unwholesome fix. I'd still love to find out what has changed in 1.6, and if there is meant to be a tidier way to handle these issues. Thanks, Richard On Oct 20, 12:54 pm, jarkman jark...@gmail.com wrote: We're seeing

[android-developers] Trouble with Ringtone.getTitle() in 1.6

2009-10-20 Thread jarkman
We're seeing a problem with Ringtone.getTitle() in 1.6. Sporadically, getTitle() will return Unknown ringtone instead of the proper title. It seems to be timing-dependent, and is most likely to go wrong when we ask for the title of a tone twice in rapid succession. Here's a typical log, showing

[android-developers] Re: Hierarchy Viewer is not working on 1.5 sdk

2009-06-29 Thread jarkman
I've just tried to use Hierarchy Viewer on 1.5r2 for the first time, and I have also seen a problem. I'm using XP, and I consistently get a crash when I hit 'Load View Hierarchy' when connected to a real device ( a UK G1 on TMO ). I do not see the same problem with the emulator - it works fine

[android-developers] Re: Hierarchy Viewer is not working on 1.5 sdk

2009-06-29 Thread jarkman
Romain - thanks for the confirmation. It would save a bit of time puzzlement if it could spit out some kind of message about that, instead of just crashing. Richard On Jun 29, 6:10 pm, Romain Guy romain...@google.com wrote: HierarchyViewerdoes not work with production devices. If adb shell

[android-developers] Re: The app got crashed on SDK 1.5 which is working fine on SDK 1.0

2009-05-11 Thread jarkman
Look at your app with the Hierarchy Viewer, and look at ways to reimplement parts of your UI so that the hierarchy is shallower. So, for example, you might replace two nested LinearLayouts with one RelativeLayout, to get the same result with a shallower tree. You could also take a look at

[android-developers] Recent-apps dialog revives finish()'ed activities

2009-05-08 Thread jarkman
We've got a problem on 1.5 with the task switcher dialog (which, by the way, I love and am very grateful for). We've got a couple of notificationy activities which close, and call finish(), and should never be seen again. But, under some circumstances, these can be seen and switched to via the

[android-developers] Re: Recent-apps dialog revives finish()'ed activities

2009-05-08 Thread jarkman
at finishing time that would tell the framework that this activity was not revivable ? Richard On May 8, 5:53 pm, Dianne Hackborn hack...@android.com wrote: The one you want is android:excludeFromRecents on your Activity that gets launched from the notification. On Fri, May 8, 2009 at 8:00 AM, jarkman

[android-developers] Re: Recent-apps dialog revives finish()'ed activities

2009-05-08 Thread jarkman
, Dianne Hackborn hack...@android.com wrote: No, you can't do that, sorry. On Fri, May 8, 2009 at 10:11 AM, jarkman jark...@gmail.com wrote: Thanks - that's not exactly what I want (although it may be as close as I can get). That will stop the activity ever appearing in the task

[android-developers] Re: Recent-apps dialog revives finish()'ed activities

2009-05-08 Thread jarkman
is actually the 'recent tasks' dialog. It's different from the windows or mac task switcher that shows you currently running apps. On Fri, May 8, 2009 at 11:00 AM, jarkman jark...@gmail.com wrote: OK, thanks. Is it easy to explain why these activities linger on so ? After reading today's

[android-developers] Re: Recent-apps dialog revives finish()'ed activities

2009-05-08 Thread jarkman
. On Fri, May 8, 2009 at 11:50 AM, jarkman jark...@gmail.com wrote: Well, they definitely do something that feels a lot like lingering, in that they go away when the user tells them to (in a manner which was effectively permanent in 1.1), and then they are later revived by the switcher

[android-developers] Re: Recent-apps dialog revives finish()'ed activities

2009-05-08 Thread jarkman
list, from which the user can quickly restart it. On Fri, May 8, 2009 at 12:59 PM, jarkman jark...@gmail.com wrote: OK - so I guess what I am seeing the current task brought to the foreground, where the current task contains only this one activity, even though this activity has already

[android-developers] Re: Storing app-specific synced data with a contact

2009-05-03 Thread jarkman
steganography that can survive JPEG recompression, it would be an astonishing amount of suck. On May 2, 10:12 am, jarkman jark...@gmail.com wrote: The sync process seems to re-encode the jpeg. You'll need to use a robust steganographic method... :-) I had read Contacts.Settings

[android-developers] Re: Light theme doen't work properly in 1.5 SDK

2009-05-02 Thread jarkman
I spent a while having trouble with themes set in onCreate being apparently ignored. In the end, I moved all our theme setting to the manifest, and had no more trouble. Richard On May 2, 2:34 am, havexz bali.param...@gmail.com wrote: I am setting the theme in onCreate() methodof

[android-developers] Re: Storing app-specific synced data with a contact

2009-05-02 Thread jarkman
The sync process seems to re-encode the jpeg. You'll need to use a robust steganographic method... :-) I had read Contacts.Settings as storing settings for sync accounts, not settings for individual contacts. Is that what you're after ? Richard On May 2, 1:00 am, Mike Hearn

[android-developers] Re: URGENT!!!!! Can't update apps in android market!!!

2009-05-01 Thread jarkman
We found the same problem this morning, and worked round it by moving the uses-sdk element to be the first child of the manifest element. Thanks, Richard On Apr 28, 6:26 pm, Raphael r...@android.com wrote: Actually the element order makes a difference. It's a bug in the current Market

[android-developers] Apps built with 1.5 get a black-backgound icon in the Market

2009-05-01 Thread jarkman
We've rebuilt a couple of our apps with the 1.5 SDK (but targeting 1.1). The Market seems to have a bit of trouble with the background of the icons. They appear correctly (with transparent backgrounds) on the desktop, and they appear correctly when the app is downloaded from the Market and

[android-developers] Re: What's the proper way to share data between lite and pro versions of the same app?

2009-04-27 Thread jarkman
I don't know if this is the *proper* way, exactly. We copy the SQL data, with the Pro using the provider in the Lite to read the data across and upgrade it. And, we've built a cheap little scheme using broadcast intents to allow the Pro to request the SharedPreferences from the Lite. Hope that

[android-developers] Re: Layout bugs

2009-04-25 Thread jarkman
they won't change it just because I have a moan about it. But, I'd like to be clear that this is not just an 'excuse for a bit of optimisation' - it's a real (even if unavoidable) step backwards. R. On Apr 24, 7:00 pm, Mark Murphy mmur...@commonsware.com wrote: jarkman wrote: Scratching about

[android-developers] Re: Layout bugs

2009-04-25 Thread jarkman
Jeff - I believe you are posting that from the future, when all the Android devices in the world have 1.5 running on them... :-) R. On Apr 24, 7:11 pm, Jeff Sharkey jshar...@android.com wrote: FastScrollView ListView You can now specify android:fastScrollEnabled=true on the ListView

[android-developers] Re: Layout bugs

2009-04-24 Thread jarkman
I'm not sure it's realistic to describe this as a simple optimisation issue. We've just gone through an exercise to fix these crashes in one of our apps. We've managed it, but only at the expense of uglification of the code. We're working with a custom list on a tab. Looking at the hierarchy

[android-developers] Re: Layout bugs

2009-04-24 Thread jarkman
15 levels deep of layouts is just insanely complex for a cell phone screen. On Fri, Apr 24, 2009 at 5:08 AM, jarkman jark...@gmail.com wrote: I'm not sure it's realistic to describe this as a simple optimisation issue. We've just gone through an exercise to fix these crashes in one

[android-developers] Theme issues with 1.5

2009-04-24 Thread jarkman
We've got a couple of issues with apps drawing differently in the 1.5 preview SDK. Theme_Translucent_NoTitleBar_Fullscreen doesn't result in a full screen, but in one which wraps our content. Also, we get a fat grey border drawn round our views. I've not been able to find any way to change

[android-developers] Re: Layout bugs

2009-04-24 Thread jarkman
looking for ways to use less stack, and to avoid complicated view structures, doesn't feel very 2009. Nor does it feel like a good use of our time. R, On Apr 24, 4:21 pm, Mark Murphy mmur...@commonsware.com wrote: jarkman wrote: Well, it didn't seem insane on 1.1, and it ran happily enough. Let me

[android-developers] Re: WebView in the 1.5 SDK

2009-04-22 Thread jarkman
marks all its subclasses as deprecated too, which doesn't make sense. I fixed this bug in the public tree some months ago, but it appears the fix did not propagate to Googles internal tree. Ignore it. WebView is not deprecated. On Apr 22, 5:01 pm, jarkman jark...@gmail.com wrote: We're

[android-developers] Re: Building different versions of an app -- best practice?

2009-04-21 Thread jarkman
For what it is worth, the 1.5 SDK does move the R.java out into a different directory (myProject/gen/com.needle.noo), which may solve one of your problems. But I don't see how you'd get round having the package name in all the source files (or, at least, in all the activities so on) without

[android-developers] Re: Building different versions of an app -- best practice?

2009-04-20 Thread jarkman
We actually maintain two separate codebases for our pro and light products, and take care to port common changes across from one to the other. They need different package names in the manifest file, in the layout xml when we refer to custom controls, in the package declaration at the top of each

[android-developers] Re: Broken Gallery View? using Gallery.setSelection(int position, boolean animate)

2009-03-27 Thread jarkman
If you're still looking, I have two possible solutions for you, both slightly unpleasant: (1) You can make the gallery do a fling with a chosen velocity, thus: myGallery.onFling(null, null, velocity, 0); By tweaking the velocity, you can set up values to move the selection by one or two in

[android-developers] Re: Is it possible to pick contacts from a single group ?

2009-03-26 Thread jarkman
- values from android.provider.Contacts.Groups.NAME /members); Richard On Mar 25, 6:07 pm, jarkman jark...@gmail.com wrote: Well, I haven't found a way to launch the system picker for a specific group, so I've written a picker using a ListView and an URI of the form: Uri uri

[android-developers] Re: Is it possible to pick contacts from a single group ?

2009-03-25 Thread jarkman
that go. Richard On Mar 23, 3:26 pm, jarkman jark...@gmail.com wrote: I'm using ACTION_PICK to show a contact picker:         startActivityForResult( new Intent(Intent.ACTION_PICK, Uri.parse (content://contacts/people) ) ,RESULT_PICK_CONTACT_REQUEST); I'd really like to be showing only contacts

[android-developers] Is it possible to pick contacts from a single group ?

2009-03-23 Thread jarkman
I'm using ACTION_PICK to show a contact picker: startActivityForResult( new Intent(Intent.ACTION_PICK, Uri.parse (content://contacts/people) ) ,RESULT_PICK_CONTACT_REQUEST); I'd really like to be showing only contacts from the My Contacts group, rather than the list which includes all

[android-developers] Re: How to detect SMS sending?

2009-02-27 Thread jarkman
Take a look here: http://groups.google.com/group/android-developers/browse_thread/thread/9bc7d7ba0229a1d2 and here: http://code.google.com/p/android/issues/detail?id=914 Basically, you can do it by registering a content observer on the SMS message store. But the details are not in the SDK,

[android-developers] Re: Waking the phone safely disabling the keyguard

2009-02-25 Thread jarkman
, inKeyguardRestrictedInputMode - disableKeyguard);                         mKeyguardLock.disableKeyguard();                         unlocked = true;                 } On Feb 24, 10:22 am, jarkman jark...@gmail.com wrote: As far as I can tell, my PowerManager code works properly when the device

[android-developers] Re: Waking the phone safely disabling the keyguard

2009-02-25 Thread jarkman
) { mWakeLock.release(); mWakeLock = null; } } On Feb 25, 9:30 am, jarkman jark...@gmail.com wrote: Steve - you're doing exitKeyguardSecurely, and I think you should be doing disableKeyguard. Chronologically

[android-developers] Re: Waking the phone safely disabling the keyguard

2009-02-25 Thread jarkman
);                                         }                                 }                         });                         Log.d(TAG, inKeyguardRestrictedInputMode - disableKeyguard);                         mKeyguardLock.disableKeyguard();                         unlocked = true;                 } On Feb 24, 10:22 am, jarkman jark...@gmail.com wrote: As far as I can tell, my

[android-developers] Re: Waking the phone safely disabling the keyguard

2009-02-24 Thread jarkman
I have done these two tasks separately, but I find that when I wake the device *and* unlock the keyguard they do not both happen. I'm sure that's just a bug in my code. So, treat this sample with a pinch of salt, and if you can work out what I did wrong please let me know. PowerUp() is simple

[android-developers] Re: Waking the phone safely disabling the keyguard

2009-02-24 Thread jarkman
As far as I can tell, my PowerManager code works properly when the device is on charge, but generally doesn't wake the device up when it is not on charge. I shall keep digging. Perhaps I need to hold the wakelock for longer to stop it snoozing. R On Feb 23, 11:24 pm, SteveV sav74...@gmail.com

[android-developers] Re: Having multiple versions of the same app in the market

2009-02-19 Thread jarkman
I'd love to get a definitive answer to the same question. I was askign something similar yesterday: http://groups.google.com/group/android-developers/browse_thread/thread/283ee27e57b269f2/7895bccd96f352a9#7895bccd96f352a9 Experiment suggests that the Market won't let you upload two different

[android-developers] Building multiple app versions for the Market

2009-02-18 Thread jarkman
We're thinking about building light and paid versions of our app for the Market. But I am not clear what we need to do, or how to do it. (1) Do we definitely need the two versions to have different package names for the two builds ? It seems logical to do it that way, but I have not found a

[android-developers] Re: Building multiple app versions for the Market

2009-02-18 Thread jarkman
not as flexible as make. I got all that to work, and then I decided to make my program open-source so all that was a waste of time :-) On Wed, Feb 18, 2009 at 10:50 AM, jarkman jark...@gmail.com wrote: We're thinking about building light and paid versions of our app for the Market. But I am

[android-developers] Re: discover intents that an app supports

2009-02-02 Thread jarkman
. That is all that the system knows about the intent protocols they support. On Fri, Jan 30, 2009 at 1:07 PM, jarkman jark...@gmail.com wrote: I understand the point about trying to stick to intents which have been documented by their developers. The problem is, even a well-intentioned but busy

[android-developers] Re: discover intents that an app supports

2009-01-30 Thread jarkman
I'd very much like to know the answer to that question. I have spent some time poking about with PackageManager, thinking that the intent filters should be available through it, but I have not found a way. Not only have I failed to find any API to get the intent filters, I have also failed to

[android-developers] Re: discover intents that an app supports

2009-01-30 Thread jarkman
Peter - I agree completely. OpenIntents is a great idea, but it doesn't fix my problem either. The strangeness is not just limited to the lack of a discovery API. There's also a peculiar lack of documentation on what the built-in apps can do, leaving us wasting a lot of time poking about making

[android-developers] Re: discover intents that an app supports

2009-01-30 Thread jarkman
. Finally, yes, we need to do a better job at defining official protocols for the system applications.  This is something that got dropped in the push to get the initial full product out. On Fri, Jan 30, 2009 at 11:48 AM, jarkman jark...@gmail.com wrote: Peter - I agree completely. OpenIntents

[android-developers] Can I monitor incoming MMS ?

2009-01-19 Thread jarkman
I'm a bit perplexed by android.permission.RECEIVE_MMS. I would like to know when SMS and MMS messages arrive on the device. I'm happy with SMS, using an intent filter for the action android.provider.Telephony.SMS_RECEIVED and the permission android.permission.RECEIVE_SMS. But I can't see an

[android-developers] Re: Why is Ringtone.play() sometimes silent when the screen is off ?

2009-01-15 Thread jarkman
to play while the screen is off. Is there a reason you chose the Ringtone class to play your sound? There are other options e.g. Notification Manager, MediaPlayer. On Jan 14, 4:16 pm, jarkman jark...@gmail.com wrote: We have an app which uses Ringtone.play() to play tones. We've found

[android-developers] Why is Ringtone.play() sometimes silent when the screen is off ?

2009-01-14 Thread jarkman
We have an app which uses Ringtone.play() to play tones. We've found that when the screen is off, calls of Ringtone.play() in our Activity do not make any noise (although the activity is definitely running). However, calls of Ringtone.play() from our BroadcastReceiver always make a noise, even

[android-developers] Re: use camera in portrait mode

2009-01-09 Thread jarkman
For what little help it is, I tried failed to do this, and logged it as a bug: http://code.google.com/p/android/issues/detail?id=1193 Richard On Jan 9, 11:20 am, Christian Wiesbauer christian.wiesba...@bdc.at wrote: Hi, is it possible to use the camera of the G1 in portrait mode? Maybe

[android-developers] Debugging into the framework source ?

2009-01-06 Thread jarkman
I'm have a frustrating time debugging our app, and I am beginning to wonder if I'm missing some debugging tricks. For example, right now, I am adding Filterable to a list view on a complicated cursor. It mostly works, but under some circumstances I get a NullPointerException with the stack

[android-developers] Re: How to remove a file in assets at run time?

2008-12-19 Thread jarkman
, there is no separate installer. On Thu, Dec 18, 2008 at 5:41 AM, jarkman jark...@gmail.com wrote: Dianne - that reminds me of another question - is the user going to have any way to get the .apk back off a device after installation ? I'm wondering if we should expect this world to be a bit like old

[android-developers] Re: How to remove a file in assets at run time?

2008-12-18 Thread jarkman
files that maybe should be stored inflated on the sdcard. -- Urs On Tue, Dec 16, 2008 at 11:33 PM, jarkman jark...@gmail.com wrote: Thanks for the confirmation. Still seems like a shame... :-) R. On Dec 16, 5:25 pm, Dianne Hackborn hack...@android.com wrote: The .apk is read

[android-developers] Re: When is (or isn't) instance state restored ?

2008-12-16 Thread jarkman
On Dec 15, 9:32 am, jarkman jark...@gmail.com wrote: I'm a bit confused by the saved instance state mechanism. If I breakpoint in onCreate, run the app, hit the Home button, then relaunch the app, I typically see a null Bundle passed in to onCreate. But, if I (for example) rotate

  1   2   >