[android-developers] NFC tag open market if app not installed

2011-10-17 Thread John Seghers
What I want to be able to do is have an NFC tag that launches my app if it is installed, or launches directly to the Android Marketplace if the app is not installed. I've successfully programmed a tag with a market URL, e.g. market://details?id=com.my.package.name. When the tag is read

[android-developers] ListView scrolling past top and bottom

2010-08-12 Thread John Seghers
We're working with a pre-release device running V2.1_update1 We have a ListView in the middle of a screen with the height set to wrap-content. On all other devices, as long as there is room on the screen, this control does not scroll--or if it does scroll, it only scrolls to the limits of the

[android-developers] Re: Targetted updates

2010-03-30 Thread John Seghers
now.  And yes, if it sees a newer version of an app that is pre-installed on the system image, it will offer the user an update.  This is how updates to the maps app are delivered. On Fri, Mar 26, 2010 at 5:26 PM, John Seghers jsegh...@cequint.com wrote: We're preloading apps that require

[android-developers] Re: conditional compilation

2010-03-30 Thread John Seghers
In the J2ME world of wildly non-conforming implementations, conditional compilation is the norm. Sun even admited it by adding configurations (IIRC) to NetBeans 5. EclipseMe (Now the official Eclipse Mobile Tools for Java project--MTJ) has support for it, as does the Antenna extension to Ant. The

[android-developers] Targetted updates

2010-03-26 Thread John Seghers
We're preloading apps that require specific OEM-level integration. Due to advice in an earlier discussion(http://tinyurl.com/yzpzwgd) we have a model-specific library and our application contains the uses- library element in the Manifest to reference this library. In that earlier discussion

[android-developers] Re: How to write ContentProvider for content not stored in a file nor DB?

2010-01-08 Thread John Seghers
The only time you need to implement openAssetFile() is when you have files that you want the user of ContentProvider to open. For example, if you were writing a picture ContentProvider, you may pass description information in response to a query along with a URL that can be used for

[android-developers] Re: Updating a pre-installed application

2010-01-07 Thread John Seghers
Hi Dianne, Thank you for your help with this. I'm trying to implement the shared library so that hopefully if we ever need to use this, the Market will support that kind of filtering by that time. Also, since we report to our servers an ID unique to carrier/oem/handset, we want to carry this

[android-developers] Re: Updating a pre-installed application

2010-01-07 Thread John Seghers
OK... I figured it out. Needed to add a file to /system/etc/permissions linking mapping the library name to the jar file--then reboot. - John On Jan 7, 1:39 pm, John Seghers jsegh...@cequint.com wrote: Hi Dianne, Thank you for your help with this. I'm trying to implement the shared library

[android-developers] Re: Updating a pre-installed application

2009-12-18 Thread John Seghers
One more question about this. Our application is one that requires OEM integration to provide its full functionality and thus if someone downloaded it from the Market to a phone on which it is not normally pre-installed, it would not function properly for them. Is there a way to place the update

[android-developers] Updating a pre-installed application

2009-12-17 Thread John Seghers
I had assumed that if an application was preloaded it could not be updated via the marketplace. My reasoning being: 1) A preloaded application is part of the OEM's ROM image. 2) The APK for the app would therefore be on the /system partition and thus be read-only 3) Therefore the only way to

[android-developers] Re: Same servicein multiple APKs, only want best one to launch

2009-12-17 Thread John Seghers
Here is one possibility: use ordered BroadcastReceivers with android:priority attributes to determine which service is newest. Each APK has its copy of the Service and a BroadcastReceiver. The intent-filter for the BroadcastReceiver has the android:priority attribute. Upon each release across all

[android-developers] ADT Layout Editor displays Spanish as default

2009-12-10 Thread John Seghers
I have a project with res/values/strings.xml containing English strings and res/values-es/strings.xml containing Spanish strings. Before updating to the latest SDK (2.0.1, r4 tools, 1.6 r2) the layout editor would show the english strings. Now, if Locale is selected as default, the Spanish

[android-developers] Add Contact not working

2009-06-11 Thread John Seghers
I followed the documentation to start the Show or Create Contact activity. Since my app asks the user if they want to add a contact, I don't want the activity asking this as well. Thus I used the EXTRA_FORCE_CREATE flag. If I do not use this flag, the code below works fine. It asks the user if