[android-developers] Re: Moto XOOM not loading xhdpi drawables

2011-02-25 Thread Mark Nuetzmann
rote: > On Fri, Feb 25, 2011 at 10:19 AM, Mark Nuetzmann > > wrote: > > wow.  ok, that explains it. > > > I cannot believe the flagship device for Moto would not be at least a > > hires device. > > Why? The "flagship" tablet for Apple would be -mdpi i

[android-developers] Re: Moto XOOM not loading xhdpi drawables

2011-02-25 Thread Mark Nuetzmann
wow. ok, that explains it. I cannot believe the flagship device for Moto would not be at least a hires device. thank you. On Feb 25, 8:59 am, Kostya Vasilyev wrote: > This is correct, as the XOOM is not xhdpi. > > It's an -xlarge, -mdpi device. > > -- Kostya > &

[android-developers] Moto XOOM not loading xhdpi drawables

2011-02-25 Thread Mark Nuetzmann
Hi, I have an app that has default drawables in the drawable folder. I have both a drawable-hdpi and a drawable-xhdpi folder set up. When I launch my app on the XOOM the device seems to be picking up the default drawables and NOT the ones in the xhdpi folder. Has anyone come across this? My ma

[android-developers] drawable in xhdpi not getting picked up

2011-02-24 Thread Mark Nuetzmann
I am trying to get an app that currently runs just fine on hdpi and lower devices to work on the new XOOM that has xhdpi. I have a png image in my /drawable folder and a replacement in the /drawble-hdpi-v6 folder. On the XOOM, the version in the /drawable folder is getting picked up. I tried cre

[android-developers] Re: use of fadeScrollbars

2010-07-26 Thread Mark Nuetzmann
s. thanks again Joseph On Jul 25, 2:38 am, Zsolt Vasvari wrote: > I am not sure if that's true.  I need to add android:paddingRight="? > android:attr/scrollbarSize", otherwise the scrollbar overlays the view > for me. > > On Jul 25, 5:07 am, Mark Nuetzmann wrote: >

[android-developers] Build performance of 2.2 vs older sdk implementations

2010-07-24 Thread Mark Nuetzmann
I have been building all my apps against the 1.6 version of the SDK until just recently when I switched to 2.2. I use ant to handle my builds and a normal build time for one of my apps was about 30 seconds. Now that I am building with 2.2 (that is the only change) it is taking over a minute to do

[android-developers] Re: use of fadeScrollbars

2010-07-24 Thread Mark Nuetzmann
eference/android/view/View.html#attr_an... > for more info. > > On Jul 24, 10:07 pm, Mark Nuetzmann wrote: > > > > > I am using android:fadeScrollbars="true" to show the scrollbar only > > while scrolling.  Works great.  The only issue I seem to be having is >

[android-developers] use of fadeScrollbars

2010-07-24 Thread Mark Nuetzmann
I am using android:fadeScrollbars="true" to show the scrollbar only while scrolling. Works great. The only issue I seem to be having is that the view still allocates the space on the right side to display the scrollbar when I do scroll. I really wish this worked like iPhone where the scrollbar a

[android-developers] Re: How do I set the selected state of an item in a gallery (the correct way)

2010-07-24 Thread Mark Nuetzmann
tem is pressed. > > On Jul 24, 6:23 pm, Joseph Earl wrote: > > > > > Try moving your state_selected statement above your state_pressed item > > and see if it works. > > > On Jul 24, 6:07 pm, Mark Nuetzmann wrote: > > > > I have a gallery that displ

[android-developers] How do I set the selected state of an item in a gallery (the correct way)

2010-07-24 Thread Mark Nuetzmann
I have a gallery that displays TextViews where the background of each view is the following: http://schemas.android.com/apk/res/android";> This selector work just fine for the state_pressed and default (idle) states, but the selected item state is never displayed. I REALLY do no

[android-developers] Video plays audio after device sleeps (OS 2.1 only)

2010-06-17 Thread Mark Nuetzmann
To replicate: 1. Play any video with audio. 2. Put the device to sleep using the hard key (varies by device). Audio for the selected video will start playing after a few seconds while the device is asleep. I am calling VideoView.pause() in the onPause() of the activity and VideoView.stopPlayback

[android-developers] VideoView continues to play in 2.1

2010-06-14 Thread Mark Nuetzmann
I am experiencing a problem in 2.2 with the VideoView that has me confused. I have an activity with a VideoView and while viewing the video I hit the RED phone key to force the device to sleep. In the onPause of the activity I call pause() on the VideoView and in the onStop of the activity I call

[android-developers] Re: VideoView continues to play?

2010-06-14 Thread Mark Nuetzmann
I am experiencing something similar that has me confused. I have an activity with a VideoView as well. While viewing the video I hit the HOME key or the RED phone key to force the device to sleep. In the onPause of the activity I call pause() on the VideoView and in the onStop of the activity I

[android-developers] Extending Gallery to not auto-center selected view

2010-05-04 Thread Mark Nuetzmann
I would like to either extend the existing Gallery view or create a new view based on the code for the Gallery view that does not auto- center the selected view. What would be the cleanest/simplest way to go about this? It looks like all the methods of the Gallery view that control the auto-cente

[android-developers] Re: How does the imeOptions of EditText work

2010-02-24 Thread Mark Nuetzmann
Sweet. That was easy, thank you. On Feb 24, 11:35 am, schwiz wrote: > have your activity implement onEditorActionListener then handle it in > the methodonEditorAction. > > On Feb 24, 11:25 am, Mark Nuetzmann wrote: > > > > > So if you set android:imeOptions="

[android-developers] How does the imeOptions of EditText work

2010-02-24 Thread Mark Nuetzmann
So if you set android:imeOptions="actionSearch" how do I intercept the result of the clicking the action/search button on the virtual keypad? How do I assign that result to a button in the layout of my activity or in some way handle the click of this key? My specific situation is I am in the Sear

[android-developers] Re: Background on layout is scrunching contained content

2010-02-06 Thread Mark Nuetzmann
int on the contents of the LinearLayout. Regards, Mark On Feb 6, 12:15 pm, Mark Nuetzmann wrote: > I have a LinearLayout that I set a background to a 9-patch drawable. > It appears that the LinearLayout is somehow forcing its contents to > display within the center space defined by its b

[android-developers] Background on layout is scrunching contained content

2010-02-06 Thread Mark Nuetzmann
I have a LinearLayout that I set a background to a 9-patch drawable. It appears that the LinearLayout is somehow forcing its contents to display within the center space defined by its background. This is really creating problems as the content is being "scrunched" or compressed to a much smaller s

[android-developers] Re: Confused about how focus works

2010-01-21 Thread Mark Nuetzmann
The Android settings activity does exactly what I want... By default the text is WHITE and when the listitem is in a selected state the text changes color to BLACK... How did you do that? On Jan 21, 5:03 pm, Mark Nuetzmann wrote: > I understand how to do that if all I wanted was to change

[android-developers] Re: Confused about how focus works

2010-01-21 Thread Mark Nuetzmann
state drawables to achieve this. > > On Thu, Jan 21, 2010 at 2:47 PM, Mark Nuetzmann > > > > > > wrote: > > no problem.  so, how do I how do I simply change the color of the text > > for a textview when the item is selected? I obvisouly cannot use a > > focus

[android-developers] Re: Confused about how focus works

2010-01-21 Thread Mark Nuetzmann
ask the ListView to repaint the items... On Jan 21, 4:40 pm, Romain Guy wrote: > It's easy: don't use focusableInTouchMode. Especially since ListView > already is focusable in touch mode. > > On Thu, Jan 21, 2010 at 2:31 PM, Mark Nuetzmann > > > > > > wrote

[android-developers] Confused about how focus works

2010-01-21 Thread Mark Nuetzmann
I am completely confused as to how the focusable and focusableInTouchMode are supposed to work. If I set focusableInTouchMode="true" for the items in my ListView the ItemClickListener is never called. Why? I have the selector for the ListView set as a rect shape filled with a solid color. As I

[android-developers] AirplaneMode notifications

2009-08-10 Thread Mark Nuetzmann
Hi, I am trying to determine if the device is in airplanemode when my activity starts. I did not see a setting that exposed this but did see a way to set up a broadcast receiver to be notified. After coding the receiver I never see my code getting loaded or called when I put the device into and

[android-developers] Re: Dynamically changing the language at runtime

2009-02-09 Thread Mark Nuetzmann
I have a settings dialog/activity where I allow the user to change the locale. Within that activity i call Resources res = ctx.getResources(); // Change locale settings on the device DisplayMetrics dm = res.getDisplayMetrics(); andr

[android-developers] Re: WebView responding to touch events

2009-02-07 Thread Mark Nuetzmann
           } >        }); > > Hope this would help, > Sergey > > On Sat, Feb 7, 2009 at 12:07 AM, Mariano Kamp wrote: > > > Mark, maybe you should post some code? > > > On Thu, Feb 5, 2009 at 4:36 PM, Mark Nuetzmann > > wrote: > > >> I have an Activ

[android-developers] Re: WebView responding to touch events

2009-02-05 Thread Mark Nuetzmann
respond to those events? On Feb 5, 9:36 am, Mark Nuetzmann wrote: > I have an Activity that has a WebView that contains some simple html > that allows me to display a Terms & Conditions link that if touched or > clicked calls another activity.  My problem is unless the link in the

[android-developers] WebView responding to touch events

2009-02-05 Thread Mark Nuetzmann
I have an Activity that has a WebView that contains some simple html that allows me to display a Terms & Conditions link that if touched or clicked calls another activity. My problem is unless the link in the WebView has focus (ie, the text is wrapped with that little orange focus) I cannot touch

[android-developers] Re: Recognising when an app is "closed"

2009-02-03 Thread Mark Nuetzmann
mcswd01, You also might take a look at using the onDestroy() event of the first/ main Activity. onDestroy for the main activity will only get called if you hit back from that activity of call finish() for that activity. I think this is what you are looking for. On Jan 17, 10:13 am, mscwd01 wr

[android-developers] second call to WebView.loadUrl() no longer calls WebViewClient.shouldOverrideUrlLoading

2009-02-03 Thread Mark Nuetzmann
When I make a call to WebView.setWebViewClient and then call WebView.loadUrl I am able to get a callback into the shouldOverrideUrlLoading method of the WebViewClient. However, if I make an additional call to WebView.loadUrl, I never again get a callback into shouldOverrideUrlLoading. The WebVie

[android-developers] Selected state of WebView in a ListView does not show selection

2009-02-03 Thread Mark Nuetzmann
Question, is there a way to show that a WebView item contained as a item in a ListView is selected? Right now the WebView does not seem to display its contents transparently like every other control so it takes up the entire view and does not show its state as selected. Also, when the content of

[android-developers] Re: Extending the WebView

2009-02-02 Thread Mark Nuetzmann
er called. Any ideas. I assume it is a problem with the ListView but I am not sure thanks, Mark On Feb 2, 2:28 pm, Mark Nuetzmann wrote: > Yes.  thank you. > > For others, here is the code that I am currently using that appears to > work. > >             WebView web = (We

[android-developers] Re: Extending the WebView

2009-02-02 Thread Mark Nuetzmann
return true; } }); On Feb 2, 1:28 pm, Mark Murphy wrote: > Mark Nuetzmann wrote: > > I want toextendtheWebViewso that I can override the action of > > clicking on a link in thewebview. > > You want to set a WebViewClient on theWebView, where in

[android-developers] Re: Extending the WebView

2009-02-02 Thread Mark Nuetzmann
return true; } }); On Feb 2, 1:28 pm, Mark Murphy wrote: > Mark Nuetzmann wrote: > > I want to extend the WebView so that I can override the action of > > clicking on a link in the webview. > > You want to set a WebViewClient on the WebV

[android-developers] Re: Extending the WebView

2009-02-02 Thread Mark Nuetzmann
Feb 2, 1:28 pm, Mark Murphy wrote: > Mark Nuetzmann wrote: > > I want to extend the WebView so that I can override the action of > > clicking on a link in the webview. > > You want to set a WebViewClient on the WebView, where in the > WebViewClient you put your logic in shouldO

[android-developers] Extending the WebView

2009-02-02 Thread Mark Nuetzmann
I want to extend the WebView so that I can override the action of clicking on a link in the webview. At first glance I do not see how to do this. I tried adding an onclick handler to the WebView and that had absolutely no effect. I am not seeing very much info on extending the WebView control a

[android-developers] Re: Failed to upload myapp.apk on 'HT841GZ03224': Too many open files

2009-02-02 Thread Mark Nuetzmann
advise you to always uninstall your app before reinstalling, > otherwise you'll run out of device memory and would have to do the > "double shutdown" or "battery pull" trick to get it back. > > Cheers > > On Wed, Jan 28, 2009 at 9:22 PM, Mark Nuetzmann &g

[android-developers] WebView.loadData does not always work quite right

2009-01-29 Thread Mark Nuetzmann
I have a simple webview client that gets the content from a url and loads it into the WebView. When the activity starts and the first data is loaded into the WebView it works beautifully. I can click the href of the image returned in the url data and the WebView launches the browser just fine.

[android-developers] Failed to upload myapp.apk on 'HT841GZ03224': Too many open files

2009-01-28 Thread Mark Nuetzmann
I have been debugging my app for weeks now on both the emulator and device. All of a sudden I am getting the following error when I try to debug. Failed to upload myapp.apk on 'HT841GZ03224': Too many open files I figure I could simply uninstall the app and try again but is there a quicker fix?

[android-developers] Re: ellipsize not working with TextView

2009-01-28 Thread Mark Nuetzmann
This is weird... It didn't work all day yesterday, but I just looked at it and it is now both truncating and ellipsizing correctly. I am using the singleLine="true" on the TextView. On Jan 27, 1:53 pm, Mark Nuetzmann wrote: > darn, that didn't work either. > >

[android-developers] Re: ellipsize not working with TextView

2009-01-27 Thread Mark Nuetzmann
darn, that didn't work either. On Jan 27, 1:28 pm, James Yum wrote: > Hi Mark, > > Try android:singleLine="true" instead of android:maxLines="1" > > Cheers, > James > > On Mon, Jan 26, 2009 at 7:48 PM, Mark Nuetzmann > > wrote: > &

[android-developers] Re: ellipsize not working with TextView

2009-01-26 Thread Mark Nuetzmann
just tried that. no change. Still does not display the "...", just truncates the text. On Jan 26, 6:15 pm, Romain Guy wrote: > Try changing the TextView's width from wrap_content to 0dip. > > On Mon, Jan 26, 2009 at 4:13 PM, Mark Nuetzmann > > > > wrot

[android-developers] ellipsize not working with TextView

2009-01-26 Thread Mark Nuetzmann
I am using the following to create a layout that is inflated and used in a ListView. The text in the first TextView gets truncated but I do not get the "..." added as I expected. What do I not have set correctly? Or is this a known problem... http://schemas.android.com/apk/res/android";

[android-developers] Re: Radio button items's text not visible in Dialog

2009-01-21 Thread Mark Nuetzmann
So in the mean time is there anything we can do (other than setting our theme to Dark) to get this to work? Is there a way to set the theme of the AlertDialog Builder? On Jan 21, 5:28 pm, Mark Nuetzmann wrote: > We found a bug in Android > > Our theme for the Application w

[android-developers] Re: Radio button items's text not visible in Dialog

2009-01-21 Thread Mark Nuetzmann
We found a bug in Android Our theme for the Application was set to android:theme="@android:style/ Theme.Light" . Setting the theme back to dark and our text now displays... Dear Google Developers, Please fix this if you have not already. thank you. On Jan 21, 10:55 am, Mark

[android-developers] Re: How to retrive device log

2009-01-21 Thread Mark Nuetzmann
'adb logcat' to retrieve the system log on the phone. >  And if you keep it running you can get your logging messages there. > > b > > On Sun, Dec 21, 2008 at 2:39 PM, Mark Nuetzmann > > wrote: > > > bump > > > On Dec 19, 9:12 am, Mark wrote: >

[android-developers] Radio button items's text not visible in Dialog

2009-01-21 Thread Mark Nuetzmann
There was a similar post to this but used an activity and I am using a dialog. This is real simple code and it works int he APIDemo (which is where I pulled the code from to begin with). The dialog display just fine with the correct number of radio buttons, but the text for the buttons does not

[android-developers] Re: totally confused about how to change the layout of a button at runtime

2009-01-20 Thread Mark Nuetzmann
> > > What exception are you getting? Are you running this code withing a > > handler thread? > > > On Jan 17, 10:12 pm, Mark Nuetzmann wrote: > >> ok, this should be super simple but it is proving difficult. > > >> In my original layout xml

[android-developers] displaying a line shape as a gradient

2009-01-17 Thread Mark Nuetzmann
I am using the following drawable to draw a line http://schemas.android.com/apk/res/android"; android:shape="line"> displayed in the layout using, I pulled this from some example code... a couple questions 1. what does the android:height="5dp" mean? If

[android-developers] totally confused about how to change the layout of a button at runtime

2009-01-17 Thread Mark Nuetzmann
ok, this should be super simple but it is proving difficult. In my original layout xml I have 2 buttons that I want to take up equal space in a LinearLayout

[android-developers] Re: openFileOutput and global files

2008-12-21 Thread Mark Nuetzmann
bump... How do I implement the concept of a central repository for my applications without forcing the install of a separate repository app to supply the Content Providers? thanks, Mark On Dec 19, 7:52 pm, "Dianne Hackborn" wrote: > It's there for completeness but very few things I know of us

[android-developers] Re: How to retrive device log

2008-12-21 Thread Mark Nuetzmann
bump On Dec 19, 9:12 am, Mark wrote: > I am also interested in this.  I would like to know if there is a way > to have my application send UPD messages to my laptop/desktop when > connected through the USB cable.  I have done this with great success > in my Windows Mobile applications.  I have a

[android-developers] Installing APK files OTA outside of Market

2008-12-19 Thread Mark Nuetzmann
We are trying to build an Android version of our app that current runs on WM and I am wondering how we might support upgrades to the app OTA. Currently we can SMS our WM apps with a url that is the link to the CAB file. WM is able to download the CAB and run it which will upgrade the software.