[android-developers] In-app-billing experience vs PayPal?

2012-03-06 Thread Mark Wyszomierski
Hi, I've got a multiplayer game where users can play up to 5 games at a time for free. I'd like to offer the option to pay $N to play up to 10 games at a time. This seems likes a perfect use-case for paypal, but it sounds like the marketplace terms forbid this. The 30% cut that marketplace would

[android-developers] HttpURLConnection + keep alive timeout? (the way forward starting with gingerbread)

2012-01-05 Thread Mark Wyszomierski
Hi, It looks like the android team will be investing more resources in support / improvement of the HttpURLConnection class, based on this dev post here: http://android-developers.blogspot.com/2011/09/androids-http-clients.html "For Gingerbread and better, HttpURLConnection is the best choice" "N

[android-developers] NullPointerException in WebView [onWindowFocusChanged WebView.java:4177]

2011-10-06 Thread Mark Wyszomierski
Hi, I'm seeing a bug in webview, same as in this thread: https://groups.google.com/group/android-developers/browse_thread/thread/92d6f063682d2ca4/2c56e6e85c51e507 I've found that someone has posted a workaround, wondering if anyone has tried it?: http://www.zubha-labs.com/workaround-for-nu

[android-developers] Re: Get gallery app to scan sd card for new images?

2011-07-11 Thread Mark Wyszomierski
Perfect, thanks. On Jul 11, 3:59 pm, Mark Murphy wrote: > http://stackoverflow.com/questions/2870906/adding-pictures-to-the-gal... > > > > > > > > > > On Mon, Jul 11, 2011 at 3:55 PM, Mark Wyszomierski wrote: > > Hi, > > > If I create a folder

[android-developers] Get gallery app to scan sd card for new images?

2011-07-11 Thread Mark Wyszomierski
Hi, If I create a folder on my sd card, and store images there (test.jpg etc), the built-in gallery app will see them whenever I restart the phone (nexus s, galaxy s). Is there a way to hint the gallery app to scan the sd card for media (a specific folder would be great). Otherwise I have to tell

[android-developers] Can't get WebView timers to stop -> leak

2011-07-06 Thread Mark Wyszomierski
Hi, I have a WebView in my activity which loads some html pages which have timers. I can see the timers continue running after exiting the activity by logging WebViewClient.onLoadResource() statements. I have tried calling resumeTimers() + pauseTimers() in my onResume() + onPause() methods. Also

[android-developers] Re: MyLocationOverlay on a collapsed MapView?

2011-06-21 Thread Mark Wyszomierski
m, TreKing wrote: > On Tue, Jun 21, 2011 at 10:41 AM, Mark Wyszomierski wrote: > > > Are there any terms of service for using MyLocationOverlay along > > with MapView? > > 5 second Google search:http://code.g

[android-developers] MyLocationOverlay on a collapsed MapView?

2011-06-21 Thread Mark Wyszomierski
Hi, Are there any terms of service for using MyLocationOverlay along with MapView? I have a MapActivity where I am showing the user's most up to date location in a TextView, and the MapView is below that. The user has the option to hide the MapView if they don't care to see it, but I continue gett

[android-developers] Re: One of my apps no longer appears in searches, or under "my apps" public page?

2011-06-11 Thread Mark Wyszomierski
going on? > > > On Jun 11, 1:51šam, Kostya Vasilyev wrote: > > > > Mine stopped appearing in searches by name. Will try to make a dummy > > > change > > > as well. > > > > -- > > > Kostya Vasilyev > > > 11.06.2011

[android-developers] Re: One of my apps no longer appears in searches, or under "my apps" public page?

2011-06-10 Thread Mark Wyszomierski
Jun 10, 11:58 pm, Mark Wyszomierski wrote: > Hi, > > I have a few apps in the marketplace. One of them no longer appears in > searches, and if I look under the "other apps from this developer" > page for myself, it doesn't appear there either. I can see the app ok >

[android-developers] Re: Add menu items to other apps?

2011-06-10 Thread Mark Wyszomierski
I doubt it's possible it'd be a huge security issue. On Jun 10, 11:11 pm, treyb wrote: > I am trying to make an app that will run like a service and add a menu > item (Print Button) to other apps like the web browser and such.  How > can I accomplish this if at all possible? -- You received thi

[android-developers] One of my apps no longer appears in searches, or under "my apps" public page?

2011-06-10 Thread Mark Wyszomierski
Hi, I have a few apps in the marketplace. One of them no longer appears in searches, and if I look under the "other apps from this developer" page for myself, it doesn't appear there either. I can see the app ok using its direct url, and it also appears ok in my marketplace control panel. There ar

[android-developers] NFC tags with write protection?

2011-05-04 Thread Mark Wyszomierski
Hi, I've got some NFC tags and have written some data into them using the NXP Tag Writer app available from marketplace. After writing some data in the tag, I'd like to remove write-access to it so people can't overwrite the tag data. Using the Tag Writer app, I get a message stating that write p

[android-developers] Re: '-1' error during HTTPS communication.

2011-04-27 Thread Mark Wyszomierski
I see the -1 behavior when using HttpURLConnection with https. It doesn't happen every other time, but near enough. I couldn't find any answers to this (works as expected with http). I just put a try / catch block and give three tries to the connection: for (int i = 0; i < 3; i++) { try {

[android-developers] Re: Android renders RGB values wrong.

2011-04-26 Thread Mark Wyszomierski
>> Not all devices use 24-bit color buffers. Some are 16-bit Good point. I saw this on the N1, nexus S for sure, can't remember where else I saw it. On Apr 26, 5:08 pm, Kostya Vasilyev wrote: > PNG is lossless, it's basically LZW or something similar applied on a > per-block basis, IIRC. JPG is t

[android-developers] Re: Android renders RGB values wrong.

2011-04-26 Thread Mark Wyszomierski
I've seen render issues like this. I think one example was putting a png with a flat color next to a view with its background color specified with the same hex value. They won't match. It makes it really difficult to make portions of your layout blend together. Example: I'm sure the png I

[android-developers] Re: # downloads seems to get stuck in marketplace admin console?

2011-04-25 Thread Mark Wyszomierski
Ok thanks for confirming Tre, I saw this happen about a year ago but was hoping it had been resolved by now, Thanks On Apr 25, 4:49 pm, TreKing wrote: > On Mon, Apr 25, 2011 at 3:21 PM, Mark Wyszomierski wrote: > > I'm just wondering which numbers to trust here, > > None

[android-developers] # downloads seems to get stuck in marketplace admin console?

2011-04-25 Thread Mark Wyszomierski
Hi, When you log into the admin console for android marketplace, we see two numbers: N total N active installs (M%) These numbers appear to get "stuck" for me quite regularly. The new hyperlink named "stats" shows me active installs per day which seems to really be updated daily. I am al

[android-developers] TabWidget - drop shadow gone in android 2.3?

2011-02-11 Thread Mark Wyszomierski
Hi, The TabWidget widget used to have a drop shadow below the tabs. This seems to be gone in android 2.3. Is that right? Thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@google

[android-developers] NFC default app - thoughts?

2011-02-07 Thread Mark Wyszomierski
Hi, If I declare my application to be able to read NFC tags using the following: and the user chooses my app as the default for further reads, we're essentially wiping out the chance for any other app in the system to handle tag reading? Just wondering how we'll bal

[android-developers] Url matching in manifest matching too much?

2011-01-21 Thread Mark Wyszomierski
Hi, I have an activity for which I'd like to intercept some urls. I have the following in my manifest: However, it seems like any url I click is getting caught by the above pattern: www.example.com // matched www.example.com/foo //

Re: [android-developers] Re: Google analytics crash

2011-01-03 Thread Mark Wyszomierski
I did the same, wrap all analytics calls in a try/catch block, Mark On Mon, Jan 3, 2011 at 3:39 AM, blindfold wrote: > Well, after another user apparently had 6 crashes in 2 minutes from > GoogleAnalyticsTracker.trackEvent() right when launching my app, I've > updated my app to wrap all Google A

[android-developers] Google analytics crash

2010-12-29 Thread Mark Wyszomierski
Hi, I'm using google analytics in my app. I am getting a good number of force closes from users, finally got a stacktrace: Caused by: android.database.sqlite.SQLiteException: file is encrypted or is not a database at android.database.sqlite.SQLiteDatabase.native_setLocale(Native Method) at an

[android-developers] Re: ClassNotFoundException crash reports from Market

2010-12-27 Thread Mark Wyszomierski
Anyone word on this from google? I am distributing a pretty popular app and this error has popped up a few hundred times now in the marketplace crash report. I can't really do anything for these users except ask them to run something like Log Collector but it's a slim chance they'll do that (no ta

[android-developers] Google analytics - dispatch frequency in android app?

2010-12-06 Thread Mark Wyszomierski
Hi, I was looking at using google analytics for android. We can use the basic template below to record "page views": public class MyActivity extends Activity { private GoogleAnalyticsTracker tracker; @Override protected void onCreate(Bundle savedInstanceState) { super.onCre

[android-developers] Multiple clickable elements within a listview row? Good or bad idea?

2010-11-30 Thread Mark Wyszomierski
Hi, I've got a pretty standard list control, it's got about 4 lines of text. Some of the text in each row might start a new activity when clicked, like: Row 1 John Doe [clickable, starts activity] 1234 Main Street [clickable, starts activity] Last Read: The Great Gatsby [clickable, starts

Re: [android-developers] Market - "download unsuccessful"

2010-11-01 Thread Mark Wyszomierski
Yes this continues to be a problem, seeing a good number of updates hanging in marketplace as reported by users. The app in question is a free app, nothing has changed in signing procedures etc. Wonder if there is any official word from google on what's going on? Thanks On Thu, Oct 28, 2010 at 7:

[android-developers] Re: Different hint strings for searchable activities?

2010-10-29 Thread Mark Wyszomierski
Nevermind, the different xml files are ok. My second xml file had a raw string in it which does not work (everything must use string references to strings.xml). On Oct 29, 1:56 pm, Mark Wyszomierski wrote: > Hi, > > I am supporting search in my app, I'd like to display a unique

[android-developers] Different hint strings for searchable activities?

2010-10-29 Thread Mark Wyszomierski
Hi, I am supporting search in my app, I'd like to display a unique hint in the search box depending on what activity is being viewed. To that end, I have a two different searchable.xml files in my xml folder: searchable.xml searchable_activity_foo.xml When I reference searchable.xml, everyth

[android-developers] Re: Market - "download unsuccessful"

2010-10-28 Thread Mark Wyszomierski
I've been seeing a lot of errors with downloads from marketplace recently, don't have any more detailed info than that. I've had to tell users to delete the app, then install fresh. If the user is just trying to update the app, the download seems to get stuck - never starts, just sits there saying

[android-developers] Tab Activity - custom titlebar limitations when using child activities

2010-10-28 Thread Mark Wyszomierski
Hi, I have a TabActivity. Each tab hosts its own activity. I wanted to use a custom titlebar. I don't believe it's possible to access the custom titlebar from the child activities: // main tab activity public class MainTabActivity extends TabActivity { protected void onCreate(Bundle saved

[android-developers] TextView:autoLink="all" + textAppearance bug?

2010-10-01 Thread Mark Wyszomierski
Hi, I have a TextView. I am setting its textAppearance attribute, as well as autoLink="all": With this configuration, items do get linkified, but the text for them is invisible. For example, the input: "Hello, welcome to http://www.google.com!"; will linkify the url correctly, but it wil

[android-developers] Marketplace updates - notified if apk not installed through marketplace?

2010-09-28 Thread Mark Wyszomierski
Hi, I created a signed apk. I uploaded it to marketplace as usual. I also installed a copy of it on a device directly, perhaps as an email attachment. If I upload an updated version of the app to the marketplace, will the device be notified that a new version of the app exists on marketplace? Or

[android-developers] PreferenceActivity - set text color of preference category?

2010-09-27 Thread Mark Wyszomierski
Hi, I have a PreferenceActivity. Is there a way to change the color of each section title?: http://schemas.android.com/apk/res/android";> // <-- http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Setting layout attributes based on android OS version?

2010-09-24 Thread Mark Wyszomierski
ayout in the general /layout folder would be used?: Thanks On Sep 14, 3:21 pm, Kostya Vasilyev wrote: > I wonder what would happen of you used RelativeLayout for the entire list > item. > > -- > Kostya Vasilyev --http://kmansoft.wordpress.com > > 14.09.2010 23:04 польз

Re: [android-developers] Re: Dropping support for 1.5, separate build for those users on marketplace?

2010-09-24 Thread Mark Wyszomierski
>> Market won't let you upload two different apps with the same package name. Ah ok that's what I was thinking. Ok thanks for all the info, Mark On Fri, Sep 24, 2010 at 1:37 PM, Pent wrote: > > They'll both have the same package names. Should I just change the > > 'versionName' in the manifes

Re: [android-developers] Dropping support for 1.5, separate build for those users on marketplace?

2010-09-24 Thread Mark Wyszomierski
PM, TreKing wrote: > On Fri, Sep 24, 2010 at 11:32 AM, Mark Wyszomierski wrote: > >> Any way to do this? >> > > Set the 1.5 version to max and target SDK = 3 and the 1.6+ version to > maxSDK = 8 (or whatever) and target to whatever you prefer, then update to > Market

[android-developers] Dropping support for 1.5, separate build for those users on marketplace?

2010-09-24 Thread Mark Wyszomierski
Hi, Is there a way to leave a version of an app on the marketplace (which is 1.5 compatible) and then put up a new version which is 1.6 and above compatible? The idea being that any 1.5 users going to marketplace can only download the 1.5 version, everyone else sees the 1.6+ version? I'm running

[android-developers] ListView elements with background drawable go transparent on menu display?

2010-09-23 Thread Mark Wyszomierski
Hi, I have a ListView, my rows each have a background drawable set. One strange quirk is that if I have a row selected (it is orange now), then hit the context menu, the orange focus color is lost, the row background is made transparent. When I dismiss the context menu, orange focus is returned to

[android-developers] Re: Activity onResumed not getting called

2010-09-23 Thread Mark Wyszomierski
Yeah I think by default if the app is not resumed for some period of time, android will restart the app instead of resuming it: http://developer.android.com/guide/topics/manifest/activity-element.html look at: "android:alwaysRetainTaskState" On Sep 23, 11:01 am, Albert wrote: > Hi, > > I'm hav

[android-developers] When to add child views to a compound control?

2010-09-20 Thread Mark Wyszomierski
Hi, I'm trying to make a compound control which looks like the following: ... I want to fill a horizontal linear layout with as many image views as possible - but only a single row of them. I'm not sure where to add the image views to the layout at runtime, I am getting incon

[android-developers] StateListDrawable and activity-menu-shown state?

2010-09-18 Thread Mark Wyszomierski
Hi, I have a linear layout that is focusable, I'd like it to use the same background drawable as found in listview items: StateListDrawable sld = (StateListDrawable)context.getResources().getDrawable( android.R.drawable.list_selector_background); linearLayout..setBackgroundDrawabl

Re: [android-developers] Same color specified in xml file and png appear differently?

2010-09-18 Thread Mark Wyszomierski
iew where you currently > specify a color constant? > > -- > Kostya Vasilyev -- http://kmansoft.wordpress.com > > 18.09.2010 19:35 пользователь "Mark Wyszomierski" > написал: > > > Yeah I guess that's why I'm confused, the alpha of my png is 100%. So

Re: [android-developers] Same color specified in xml file and png appear differently?

2010-09-18 Thread Mark Wyszomierski
l make a separate test app to try and demo it, Thanks On Sat, Sep 18, 2010 at 11:21 AM, Mark Murphy wrote: > On Sat, Sep 18, 2010 at 11:17 AM, Mark Wyszomierski > wrote: > > I'm not quite sure what's going on - if I specify the color in my layout > xml > > like so wit

Re: [android-developers] Same color specified in xml file and png appear differently?

2010-09-18 Thread Mark Wyszomierski
is showing it as a different type of grey. Did I miss what you meant by alpha channel difference, Mark? Thanks On Thu, Sep 16, 2010 at 9:59 AM, Mark Murphy wrote: > Might be an alpha channel difference. > > On Thu, Sep 16, 2010 at 9:51 AM, Mark Wyszomierski > wrote: > > Hi, >

[android-developers] Re: Exposing data to third-party apps in a synchronous call?

2010-09-17 Thread Mark Wyszomierski
ou could pass various commands encoded in the > URI, returning results in your own Cursor implementation. > > If you are keen on using intents, though - your code is pretty close, > but you need to use startActivityForResult rather than startActivity, so > that you ca

[android-developers] Exposing data to third-party apps in a synchronous call?

2010-09-17 Thread Mark Wyszomierski
Hi, I've got an application, and I'd like to publish a way for third-party services to get data from it. Ideally I could expose this through intents, as in the following pseudocode: // third party apps class ThirdPartyService extends Service { @Override public void onCreate()

[android-developers] Get a parcel from intent's extras?

2010-09-16 Thread Mark Wyszomierski
Hi, I've implemented parcelable on a class of mine per the doc instructions, works fine: public class MyParcelable implements Parcelable { ... public static final Parcelable.Creator CREATOR = new Parcelable.Creator() { public MyParcelable createFromPar

[android-developers] Same color specified in xml file and png appear differently?

2010-09-16 Thread Mark Wyszomierski
Hi, I have a 9 png which is used as the background of a view, the stretchable region has a color of: #ebebeb I have a view next to it, and I've set its background color like so: when the two views are beside one another, you can clearly tell that the colors are not the same, they're diff

[android-developers] Re: Setting layout attributes based on android OS version?

2010-09-14 Thread Mark Wyszomierski
state which happens when the list is being animated maybe? I'm not sure what other combinations I can try here in attributes on the text views, I was hoping that setting: android:ellipsize="none" android:singleLine="false" would get around whatever state it being hit

[android-developers] Re: Setting layout attributes based on android OS version?

2010-09-14 Thread Mark Wyszomierski
Cool I'll check out those facilities. Pasting the exact layout below. I can't nail down exactly what's causing this. The first render of the listview works ok. The first attempt to scroll generates the exception (pasted below). I tried using a 9 png drawable direct from the android project, same be

[android-developers] Re: Setting layout attributes based on android OS version?

2010-09-14 Thread Mark Wyszomierski
Yes, I can easily set the background drawable in java code at runtime, it would just be easier to maintain if I could specify the quirk in the xml file - just wondering if there's a way to do it, if not, I'll just modify at runtime, Thanks On Sep 14, 10:18 am, Frank Weiss wrote: > You understand

[android-developers] Setting layout attributes based on android OS version?

2010-09-14 Thread Mark Wyszomierski
Hi, Is there a way to specify a background in a layout based on OS version?: android:background_1.5="@color/white" android:background_above_1.5="@drawable/mybackground" I'm running into a problem where using a 9 png drawable for the background causes a stack overflow exception on a listview

[android-developers] Does TabWidget.setDividerDrawable() work?

2010-09-14 Thread Mark Wyszomierski
Hi, Is TabWidget.setDividerDrawable() functional? I'm trying to use it, passing it a 1px-wide 9 png stretchable, but no dividers are drawn between my tabs: tabWidget.setDividerDrawable(R.drawable.myDivider); when used, touches then seem to break, like if I tap the 1st tab, the 3rd then gets se

[android-developers] Re: Any way to animate a 2D Game Smooth without OpenGL ?

2010-09-14 Thread Mark Wyszomierski
I had similar problems trying to get a smooth game loop going, I just couldn't get rid of gcs happening (I think some were occurring outside my app too). I think I had removed everything from the draw loop in frustration except for drawing a rectangle, but would still get the bumps. That was about

[android-developers] Getting TabWidget.setDividerDrawable() to work?

2010-09-13 Thread Mark Wyszomierski
Hi, I've got a TabHost/TabWidget, I'm supplying custom views for each of the tabs, works great. I'm not sure if setting the divider drawable and the left and right strips is working as I'm assuming. Basically I supply a drawable, and no divider is drawn, nor is the left/right strips. Are those met

[android-developers] ListView - still draw dividers between disabled elements?

2010-09-09 Thread Mark Wyszomierski
Hi, In a ListView, disabled elements don't get their divider drawable drawn. Is there a way to change that? I always would like the dividers drawn, regardless if an element is disabled. This post is pretty close to what I'm looking at: http://groups.google.com/group/android-developers/browse_thre

[android-developers] TextColor attribute doesn't get applied to Button from a style def?

2010-09-09 Thread Mark Wyszomierski
Hi, I have a button, and am applying a text style to it: the color defined in the style doesn't get applied to the button though: 18dip #F00 the other style elements do get applied though (lik

[android-developers] Re: Getting variables from tab activity in the child activities

2010-09-08 Thread Mark Wyszomierski
I think you'd have to use static variables (a singleton could be nice), write to the prefs, stuff like that. On Sep 8, 1:31 pm, tatebn wrote: > If I have a tab activity with multiple tabs, each containing a > different activity, is it possible to have a variable in the tab > activity and access i

[android-developers] Pass text style from compound view to child text view?

2010-09-08 Thread Mark Wyszomierski
Hi, How can we pass through a text style to our own compound control? For example, I have the following: com.me.test.MyCompoundView android:layout_width="fill_parent" android:layout_height="wrap_content" android:textAppearance="@style/TextStyleFoo" public class MyCompou

[android-developers] Re: Where is the View.setStyle() method?

2010-09-04 Thread Mark Wyszomierski
is > initialized. > > > > > > On Fri, Sep 3, 2010 at 3:20 PM, Mark Murphy wrote: > > On Fri, Sep 3, 2010 at 6:01 PM, Mark Wyszomierski > > wrote: > > > Ah well, is there any better and new way of setting pixel sizes at > > > least for a view? For example,

[android-developers] Re: Where is the View.setStyle() method?

2010-09-03 Thread Mark Wyszomierski
e for me? I doubt it, but just wondering if there's some way to utilize the dip system, Thanks On Sep 3, 2:51 pm, Mark Murphy wrote: > On Fri, Sep 3, 2010 at 5:42 PM, Mark Wyszomierski wrote: > > Is there a way to set a style for a View at runtime? > > Not that I am aware of

[android-developers] Where is the View.setStyle() method?

2010-09-03 Thread Mark Wyszomierski
Hi, Is there a way to set a style for a View at runtime? I've seen this question a few times on the board here but no answers, so probably not: // later... ImageView iv = (ImageView)findViewById(...); iv.setStyle(R.style.myotherstyle); is it not possible to do something like this? We

[android-developers] Re: Sync Adapter and api level 3 & 4?

2010-07-30 Thread Mark Wyszomierski
pters, they just won't do anything with them. > > Do be sure of course to test your code on an older platform to be sure all > is well, though. > > On Fri, Jul 30, 2010 at 11:17 AM, Mark Wyszomierski wrote: > > > > > > > Hi, > > > I'm looking

[android-developers] Sync Adapter and api level 3 & 4?

2010-07-30 Thread Mark Wyszomierski
Hi, I'm looking at the sample sync adapter here: http://developer.android.com/resources/samples/SampleSyncAdapter/index.html I'd like to still support sdk level 3 and 4 devices. Will including the following lines in my app's manifest be problematic?: are these specific to sdk level 5?

Re: [android-developers] Re: Image viewers on android phones not always the best experience?

2010-07-16 Thread Mark Wyszomierski
I have to check again, but I thought webview won't center and zoom a single image for you. It will just show the full size image, if it's larger than the phone screen, it'll just scroll off. On Thu, Jul 15, 2010 at 4:33 PM, Maps.Huge.Info (Maps API Guru) < cor...@gmail.com> wrote: > You can alway

[android-developers] Image viewers on android phones not always the best experience?

2010-07-15 Thread Mark Wyszomierski
Hi, I'm trying to use an image-display intent to..display an image: Uri uri = ...; Intent intent = new Intent(android.content.Intent.ACTION_VIEW); intent.setDataAndType(uri, "image/" + extension); startActivity(intent); this works well, but some devices have image viewers that ha

[android-developers] Any api for mapview callout/bubble for tapped pins?

2010-06-23 Thread Mark Wyszomierski
Hi, There's no method available to us to display a callout / bubble above an ItemizedOverlay item when, tapped, right? I don't think there is, just wondering if I'm missing this in the docs before I start my own, Thanks -- You received this message because you are subscribed to the Google Group

[android-developers] Re: Making a jar of an android project for use by third party apps?

2010-06-15 Thread Mark Wyszomierski
Awesome, will check it out, thanks Mark. On Jun 15, 3:29 pm, Mark Murphy wrote: > On Tue, Jun 15, 2010 at 6:24 PM, Mark Wyszomierski wrote: > > I've made an activity which uses some image resources. I'd like to > > make it available to other projects by packaging it as

[android-developers] Making a jar of an android project for use by third party apps?

2010-06-15 Thread Mark Wyszomierski
Hi, I've made an activity which uses some image resources. I'd like to make it available to other projects by packaging it as a jar. The project is opensource - the goal of making it a jar would just be convenience for the end developer. I'm not sure that this is possible though - since the jar i

[android-developers] Anyone using the new facebook sdk for android?

2010-06-10 Thread Mark Wyszomierski
Hi, Anyone try using the facebook sdk for android?: http://github.com/facebook/facebook-android-sdk there are a few problems with it, most frustrating is that they're not managing the login dialog correctly - rotating the device will hide the dialog and leak it, sigh. I was going to repackage

Re: [android-developers] Re: App not showing up for Evo users?

2010-06-08 Thread Mark Wyszomierski
Things seem to be getting back to normal, foursquare is now appearing for those users again (it was affecting users on evo, eris, possibly others). I hope everything is ok for others now too, Thanks On Tue, Jun 8, 2010 at 6:13 AM, Mark Wyszomierski wrote: > Thanks, Mark, will try getting

[android-developers] Re: App not showing up for Evo users?

2010-06-08 Thread Mark Wyszomierski
Thanks, Mark, will try getting in touch with them, Mark On Jun 8, 5:47 am, Mark Murphy wrote: > Mark Wyszomierski wrote: > > I'm working on a project (Foursquare). I pushed a new version to > > marketplace last night, but it is not showing up in marketplace > > searche

[android-developers] App not showing up for Evo users?

2010-06-08 Thread Mark Wyszomierski
Hi, I'm working on a project (Foursquare). I pushed a new version to marketplace last night, but it is not showing up in marketplace searches for Evo users. I've read about this happening to other apps, and one major reason seems to be if copy protection is being used (but it is not for the Foursq

[android-developers] Multiple notifications, single icon on notification bar?

2010-06-03 Thread Mark Wyszomierski
Hi, If I do: for (int i = 0; i < 3; i++) { NotificationManager.notify(i, notification); } I'll get three notification icons on the notification bar, and three list items in the pull down. Is there a way to use only one icon on the notification bar, but still keep three entries in th

[android-developers] Do scheduled alarms persist between app upgrades?

2010-06-03 Thread Mark Wyszomierski
Hi, My app schedules an alarm, like: AlarmManager mgr = (AlarmManager)context.getSystemService( Context.ALARM_SERVICE); mgr.setRepeating(...); with the alarm scheduled, what happens if I release a new version of my app, and the user upgrades the app? Will this alarm be removed? Or will

[android-developers] Re: PLEASE HELP!!! may i develop app for Android 1.6 using SDK 2.x?

2010-05-11 Thread Mark Wyszomierski
If I understand your question correctly, then yes. In your manifest, just set the following: the app will still work on 1.5+. Just make sure you don't use any SDK methods that don't exist on earlier platforms without checking the user's local sdk version. On May 11, 9:53 am, HeHe wrote: > t

[android-developers] Finding a google business page?

2010-04-21 Thread Mark Wyszomierski
Hi, I have an app which does some work with local businesses. I'd like to offer the user a button which could bring up a google business page for the business. These pages look like: http://maps.google.com/places/us/san-francisco/guerrero-st/600/-tartine-bakery if I have a name of a busines

[android-developers] setContentView() twice on an activity?

2010-04-14 Thread Mark Wyszomierski
Hi, What is the effect of calling setContentView() in an activity twice? My situation: class A extends Activity { protected TextView mLabel; public void onCreate() { super.onCreate(); setContentView(R.layout.a); mLabel = (TextView)findViewById(R.id.la

[android-developers] Simple bluetooth presence detection?

2010-04-12 Thread Mark Wyszomierski
Hi, Really general, very new to bluetooth. Can we have one android device broadcasting a simple 'hello' bluetooth network (maybe a radius of just a few feet) - then when other android devices come into that area, reply with a 'hello' back? The client devices moving through the 'hello' radius would

[android-developers] Set Spinner select to 'none' ?

2010-04-07 Thread Mark Wyszomierski
Hi, Is there a way to set a Spinner's selection to 'none' ? When my activity launches, it looks like a spinner will automatically select the 0th element in the spinner. I'd like to explicitly make the user choose a selection instead. Thanks -- You received this message because you are subscribe

[android-developers] Setting text style for a Spinner?

2010-03-30 Thread Mark Wyszomierski
Hi, I have a Spinner in a resource file. I'm giving it an ArrayAdapter to show. What's the right way to style the font used by the spinner? I'd like to change the size of the text and its color. I tried: but it's not being honored, Thanks -- You received this message because you are subsc

[android-developers] Re: How to indicate to user that a row is long-clickable?

2010-03-26 Thread Mark Wyszomierski
Long-click is a cool mechanism for exposing more options, it would be neat if there was some UI guideline that the android team could come up with to indicate to users that a row has this capability, Thanks On Mar 23, 5:58 pm, Mark Murphy wrote: > Mark Wyszomierski wrote: > > I have a

[android-developers] How to indicate to user that a row is long-clickable?

2010-03-23 Thread Mark Wyszomierski
Hi, I have a ListView. I let the user perform some action on a long-click (pop up a picker dialog with a few choices) on row items. Is there any typical UI mechanism that should be used to let the user know that they can long-click a row item? Right now I feel like users would have no idea to lon

[android-developers] Re: Is app's first run?

2010-03-18 Thread Mark Wyszomierski
18, 12:47 pm, Mark Murphy wrote: > Mark Wyszomierski wrote: > > Yeah that definition is perfect, having a little trouble implementing > > it though. > > > I'm just trying to use: > > >   File file = getFilesDir(); > > > this points to: > > >

[android-developers] Re: Is app's first run?

2010-03-18 Thread Mark Wyszomierski
.xml. If so, is there a proper way to resolve that path other than kind of hard-coding it into my app? Thank you On Mar 18, 11:50 am, Mark Murphy wrote: > Mark Wyszomierski wrote: > >>> Otherwise, checking for files/databases/preferences is pretty typical > >>> AFAIK. >

[android-developers] Re: Is app's first run?

2010-03-18 Thread Mark Wyszomierski
hanks On Mar 18, 11:41 am, Mark Murphy wrote: > Mark Wyszomierski wrote: > > Is there any way to tell whether an application is being run for the > > first time, other than checking if there are any left over > > preferences / files from a previous run? > > While your app

[android-developers] Is app's first run?

2010-03-18 Thread Mark Wyszomierski
Hi, Is there any way to tell whether an application is being run for the first time, other than checking if there are any left over preferences / files from a previous run? Thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to

[android-developers] Show activity on search button press?

2010-03-16 Thread Mark Wyszomierski
Hi, Is there a way to launch an activity when the device's search key is pressed? I know we can hook into the search feature of android instead. But I'm trying to fix a broken app quickly. Ideally whenever the search key is pressed (if my app is visible) then one of my activities is started. T

[android-developers] Restarting an activity within a tab (TabActivity)

2010-03-13 Thread Mark Wyszomierski
Hi, I have a TabActivity, each tab holds an activity. At some point I'd like to 'refresh' the tabs. I'd basically like to restart each activity in the tabs. I'm not sure how to do this. Calling: getTabHost().clearTabs(); removes the tabs, but the activities still seem to be in alive, in limbo

[android-developers] Re: Supplying a different background drawable for a dialog?

2010-03-11 Thread Mark Wyszomierski
the panel, did you set the alpha value to > FF? 0 gives you full transparency and FF gives you total opacity. > > Hope this helps. > Ivar > > On Mar 11, 8:37 pm, Mark Wyszomierski wrote: > > > > > Hi, > > > I'm trying to supply my own background drawab

[android-developers] Supplying a different background drawable for a dialog?

2010-03-11 Thread Mark Wyszomierski
Hi, I'm trying to supply my own background drawable for a dialog. It works fine on 1.6+, on 1.5 though instead of a transparent dimmed background around the dialog, I just get opaque black. I defined the style like this in my styles.xml file: @drawab

[android-developers] Re: Forward activity resultCode?

2010-03-11 Thread Mark Wyszomierski
ntent you are starting: > > http://developer.android.com/reference/android/content/Intent.html#FL... > > On Thu, Mar 11, 2010 at 12:04 AM, Mark Wyszomierski wrote: > > > > > > > Hi, > > > Is it possible to forward a result like the following?: > > > Acti

[android-developers] Forward activity resultCode?

2010-03-11 Thread Mark Wyszomierski
Hi, Is it possible to forward a result like the following?: ActivityA startActivityForResult(intentB, 22); ActivityB startActivityForResult(intentC, 22); finish(); ActivityC setResult(99); finish(); is it possible to get A's onActivityResult() to fire here and catch the value 99

[android-developers] Re: Reading back one of my own parcelables?

2010-03-08 Thread Mark Wyszomierski
It looks like it works, Thanks, Mark On Mar 8, 4:36 pm, Mark Wyszomierski wrote: > Hi, > > I implemented Parcelable on two of my classes, and one class contains > instances of the other. I'm not sure how to read them back in. Here's > an example: > >    public c

[android-developers] Reading back one of my own parcelables?

2010-03-08 Thread Mark Wyszomierski
Hi, I implemented Parcelable on two of my classes, and one class contains instances of the other. I'm not sure how to read them back in. Here's an example: public class Farm implements Parcelable { ArrayList mHorses; // Horse implements parcelable too. @Override public void

[android-developers] Making a clickable LinearLayout change color on click?

2010-03-08 Thread Mark Wyszomierski
Hi, I have a linear layout, and I wanted to set its background to be a rounded rect. I defined the background like so: http://schemas.android.com/apk/res/android";> that works ok, but I also wanted to make the background turn orange when clicked (like as in a listview). In the past, I'

[android-developers] Wrap title of activity with dialog theme?

2010-03-06 Thread Mark Wyszomierski
Hi all, I have an activity with the dialog theme applied to it. I am setting the dialog title, but the string is quite long, and instead of wrapping, it just gets truncated. Is there a way to wrap the title instead? Thanks -- You received this message because you are subscribed to the Google Gr

[android-developers] notifyDataSetChanged() on an adapter composed of child adapters?

2010-03-04 Thread Mark Wyszomierski
Hi, I have an adapter class composed of several child adapters. Looks like this: public class TestAdapter extends BaseAdapter { ArrayLIst mChildAdapters; public void addAdapterChild(Adapter adapter) { mChildAdapters.add(adapter); } } it works ok, running into a problem th

[android-developers] Re: Getting getViewTypeCount() to fire?

2010-03-02 Thread Mark Wyszomierski
In that example, nothing, but if I have an adapter which can accept an unknown amount of types, I would need something like that, right? Thanks On Mar 2, 11:42 am, Mark Murphy wrote: > Mark Wyszomierski wrote: > >   @Override > >   public int getViewTypeCount() { > &

  1   2   3   4   >