[android-developers] Re: Whenever i move out from an activity, which is in a task of singleTask, activtiy is being cleared up to root of the stack

2009-12-02 Thread Mark Wyszomierski
Actually, I'm probably experiencing this bug, my test app behaves exactly as described: http://code.google.com/p/android/issues/detail?id=2373#makechanges does anyone else see this behavior? Thanks On Dec 2, 8:16 pm, Mark Wyszomierski wrote: > I may just be misinterpreting what I&

[android-developers] Re: Soft keypad doesn't appear if EditText.setOnClickListener() is set?

2009-12-02 Thread Mark Wyszomierski
if > you click it with the trackball press, no keyboard.  Although I'm not sure > why a user would need to do that? > > > > On Wed, Dec 2, 2009 at 6:35 PM, Mark Wyszomierski wrote: > > Hi Steve, > > > Thanks for taking a look - maybe I haven't set a pa

[android-developers] Re: Soft keypad doesn't appear if EditText.setOnClickListener() is set?

2009-12-02 Thread Mark Wyszomierski
to > setOnClickListener.  Not 100% that I remember why I had to do that :) > but in any case the soft keyboard will open when you click or touch > the edit text, and also you can track all of its keystrokes.  And I > can track when the edit text is clicked. > > On Dec 2, 11:46 

[android-developers] Re: Whenever i move out from an activity, which is in a task of singleTask, activtiy is being cleared up to root of the stack

2009-12-02 Thread Mark Wyszomierski
ying to restart from the last- paused activity - and if on Activity A, there is no previous activity, so it just gets restarted itself. Is this correct? Sorry for the confusion, Thanks On Dec 2, 10:27 am, Mark Wyszomierski wrote: > I don't know if it's monkey or not - it looks like i

[android-developers] Re: Soft keypad doesn't appear if EditText.setOnClickListener() is set?

2009-12-02 Thread Mark Wyszomierski
way to check if the keypad is really visible? Thanks On Nov 30, 1:35 am, Mark Wyszomierski wrote: > Hi, > > I have an EditText. If I set an OnClickListener for it, theimekeypad > doesn't appear when I click it (using the trackball on the G1): > >

[android-developers] Re: The GPS Shutdown Thing

2009-12-02 Thread Mark Wyszomierski
I've been working with the location providers lately, I haven't seen this behavior. When I deregister my listeners, the GPS icon goes away, I haven't seen it stick around. Even one minute intervals for GPS seems like a lot for me - I'm guessing users won't be able to move fast enough in one minute

[android-developers] Re: Whenever i move out from an activity, which is in a task of singleTask, activtiy is being cleared up to root of the stack

2009-12-02 Thread Mark Wyszomierski
SDK updates). Thanks for your help. On Dec 1, 8:38 pm, Dianne Hackborn wrote: > Monkey may be doing odd things.  Tasks are matched by intent, so if you > build different intents you will be launching different tasks. > > On Tue, Dec 1, 2009 at 5:33 PM, Mark Wyszomierski wrote: >

[android-developers] Re: Whenever i move out from an activity, which is in a task of singleTask, activtiy is being cleared up to root of the stack

2009-12-01 Thread Mark Wyszomierski
x27;t know what you are doing.  If you try one of the sample apps like > ApiDemos you will see this works fine. > > On Tue, Dec 1, 2009 at 4:18 PM, Mark Wyszomierski wrote: > > Hi Dianne, > > > The default behavior is what I'm going for - but I'm just not seei

[android-developers] Re: Whenever i move out from an activity, which is in a task of singleTask, activtiy is being cleared up to root of the stack

2009-12-01 Thread Mark Wyszomierski
pm, Dianne Hackborn wrote: > On Tue, Dec 1, 2009 at 1:46 PM, Mark Wyszomierski wrote: > > I guess I'm not understanding the default process creation method. > > Fwiw, what we are talking about has absolutely nothing to do with processes. > Please make sure you read this sta

[android-developers] Re: Whenever i move out from an activity, which is in a task of singleTask, activtiy is being cleared up to root of the stack

2009-12-01 Thread Mark Wyszomierski
n say is -- just making the first activity singleTask > is not going to cause this, so there must be something else going on.  For > example, making other activities besides the root singleTask, or setting > various flags that cause activities to clear, or setting various manifest > attrib

[android-developers] Back-key notification with Soft keypad? (works in 1.5)

2009-12-01 Thread Mark Wyszomierski
Hi, I'm trying to listen for the back key when an EditText has focus on the IME soft keypad is displayed. In 1.5, I can add an OnKeyListener to my EditText, and it will get notified if the back key is pressed. No notifications get sent in 2.0. I also don't see any notifications coming through th

[android-developers] Only one instance of Activities -> one instance of 'app'

2009-12-01 Thread Mark Wyszomierski
Hi, I'm trying to control my app such that there's only one instance of it on the system at any time. I know the definition of an application is flexible, but this is what I'm going for: -Main entry-point activity: launchMode="singleTask" alwaysRetainTaskState="true" -Other activities cr

[android-developers] Re: Whenever i move out from an activity, which is in a task of singleTask, activtiy is being cleared up to root of the stack

2009-12-01 Thread Mark Wyszomierski
I'm seeing the same behavior. Going back to the home screen, then returning to the process clears everything back to the root. On Nov 16, 12:42 am, pink 444 wrote: > Hi all, > >         I have a task,which is created when an activity with > "singleTask" launch mode is activated. > >        I adde

[android-developers] Interpreting output of test monkey

2009-11-30 Thread Mark Wyszomierski
Hi, I'm running the monkey test tool. Every once in a while, I'll get an exception (follows), but I'm not sure how to interpret it as the stack trace doesn't point to any line of my app code. I do notice that this error usually happens when one of my EditTexts have input, and the system has change

[android-developers] Soft keypad doesn't appear if EditText.setOnClickListener() is set?

2009-11-29 Thread Mark Wyszomierski
Hi, I have an EditText. If I set an OnClickListener for it, the ime keypad doesn't appear when I click it (using the trackball on the G1): EditText edit = new EditText(context); edit.setOnClickListener(new OnClickListener() { public void onClick(View v) { // ime keypad won't a

[android-developers] Long startup time for MapActivity derived classes?

2009-11-28 Thread Mark Wyszomierski
Hi, Does anyone else experience a longer load time for activities derived from MapActivity vs Activity? In my situation, I have an activity that can display info in either a list or map format. So my activity looks like: public class MyActivity extends MapActivity { private MapView mMa

[android-developers] Re: How to set location of buttons programmatically

2009-11-27 Thread Mark Wyszomierski
Not sure if it's the best way, but you can use padding to position elements in an absolute way. I think AbsoluteLayout is deprecated now, but you used to be able to use that to do what you want. On Nov 27, 8:01 pm, babu wrote: > Hi, > > How do I set the location of buttons/other views programmati

[android-developers] Google Map Intents, and a pin?

2009-11-25 Thread Mark Wyszomierski
Hi, I'm launching google maps via an intent. If I supply a lat,lon, no pin will be displayed on the map. If I supply an address, a pin will appear. Is there a way to explicitly tell google maps to add a pin, and what text to put on it? // lat, lon, no pin. Intent intent = new Intent(Inten

[android-developers] Re: Activity [sometimes] throws Wrong state class exception when being resumed after kill

2009-11-24 Thread Mark Wyszomierski
n ID? > > > > > > > > Thanks! > > > > > > > > On Nov 24, 11:27 am, Romain Guy wrote: > > > > > > >> This would happen if you have several views of different type > > with the > > > > > &g

[android-developers] Re: Activity [sometimes] throws Wrong state class exception when being resumed after kill

2009-11-24 Thread Mark Wyszomierski
ATE as valid input. It checks for if > > (savedState != BaseSavedState.EMPTY_STATE)  then throw exception ... > > > For me it went wrong because 'savedState' is no longer the actual > > BaseSavedState.EMPTY_STATE instance but a de-serialized copy of it > > (a

[android-developers] Activity [sometimes] throws Wrong state class exception when being resumed after kill

2009-11-24 Thread Mark Wyszomierski
Hi, I'm testing how my app behaves when killed by the OS due to low memory conditions. I always have three activities on the stack, like: A B C (then C launches maps or some other heavy process) when my app is killed, and I return to it, C starts itself up again ok. When I hit the back but

[android-developers] Re: How to tell if we were force killed for memory, in onCreate()?

2009-11-23 Thread Mark Wyszomierski
reate() method called, whatever I saved in onSaveInstanceState() will be there for me, Thanks On Nov 23, 8:14 pm, Mark Wyszomierski wrote: > Ok, yes this is what I'm seeing. Looks like: > >   MyActivity: startIntent(maps); >   .. logcat says low memory .. >   System maps intent st

[android-developers] Re: How to tell if we were force killed for memory, in onCreate()?

2009-11-23 Thread Mark Wyszomierski
ched them there)? Thanks On Nov 23, 7:48 pm, Mark Murphy wrote: > Mark Wyszomierski wrote: > > If I follow the lifecycle docs correctly, an Activity won't get > > notified if it's force killed for memory? > > Correct. In a true "force kill" scenario, An

[android-developers] How to tell if we were force killed for memory, in onCreate()?

2009-11-23 Thread Mark Wyszomierski
Hi, If I follow the lifecycle docs correctly, an Activity won't get notified if it's force killed for memory? Example: In my app, I create a maps driving intent. I can see in the log output say something like: I/ActivityManager( 76): Low Memory: No more background processes When the user re

[android-developers] Re: Keeping an Activity alive instead of destroying it?

2009-11-23 Thread Mark Wyszomierski
7;t seen this go above 5mb. Thanks On Nov 23, 1:10 pm, Mark Murphy wrote: > Mark Wyszomierski wrote: > > It's only causing a slight annoyance to the user. Although the UI > > takes about 1.5 seconds to completely build, I am doing a staggered > > load. This lets the user

[android-developers] Re: Keeping an Activity alive instead of destroying it?

2009-11-23 Thread Mark Wyszomierski
ty. I like keeping it separated too, just wish I could pause the app to resume it later since I'm sure it's an Activity users will keep coming back to while using the app. Thanks On Nov 23, 12:55 pm, Mark Murphy wrote: > Mark Wyszomierski wrote: > > If after its first constructio

[android-developers] Keeping an Activity alive instead of destroying it?

2009-11-23 Thread Mark Wyszomierski
Hi, Is there a way to keep an Activity in memory after the user hits the back button on it? Example: ActivityMainMenu (entry point) | --- ActivitySearch ActivitySearch is used frequently in my app, however after the user starts it up, then hits the back button, it's destroyed, and th

[android-developers] Re: Effect of postDelayed() in an Activity after onPause()?

2009-11-22 Thread Mark Wyszomierski
Ok thanks, makes sense. What I was mostly worried about was having UI elements modified while the activity is in the pause state (was thinking maybe that could cause some sort of exception), but yes it seems to run without issue, Thanks On Nov 22, 1:37 pm, Mark Murphy wrote: > Mark Wyszomier

[android-developers] Effect of postDelayed() in an Activity after onPause()?

2009-11-22 Thread Mark Wyszomierski
Hi, I tried the following from an activity: @Override public void onPause() { super.onPause(); postDelayed(new Runnable() { public void run() { mTextView.setText("I am paused!"); }, 1); } The activity, while in the background, still executes the runnable. I

[android-developers] Re: Using FLAG_ACTIVITY_CLEAR_TOP, but don't restart target activity?

2009-11-21 Thread Mark Wyszomierski
Ok this does work if you add the following to your activity definition in the manifest file: android:launchMode="singleTop" Thanks On Nov 21, 8:15 pm, Mark Wyszomierski wrote: > Hi Mark, > > Here's the call: > >    intent.setFlags(I

[android-developers] Re: Using FLAG_ACTIVITY_CLEAR_TOP, but don't restart target activity?

2009-11-21 Thread Mark Wyszomierski
be missing something simple! Thanks On Nov 21, 8:07 pm, Mark Murphy wrote: > Mark Wyszomierski wrote: > > Hi, > > > I'd like to use FLAG_ACTIVITY_CLEAR_TOP to launch an activity in my > > app. It has one feature I don't want though - it restarts the target &g

[android-developers] Using FLAG_ACTIVITY_CLEAR_TOP, but don't restart target activity?

2009-11-21 Thread Mark Wyszomierski
Hi, I'd like to use FLAG_ACTIVITY_CLEAR_TOP to launch an activity in my app. It has one feature I don't want though - it restarts the target intent, instead of just resuming it. Example history stack, with activity D making the call to B with that flag: A B C D new stack A B but 'B' get

[android-developers] Random phone restarts, anyone else experience this?

2009-11-21 Thread Mark Wyszomierski
Hi, Not sure if anyone else is experiencing this. My G1 will randomly restart itself up to two times a day. Found this in DDMS as the possible cause. I'm wondering if my app has anything to do with it, but I doubt it since my app is usually closed or will have been idle for hours when this happens

[android-developers] Re: ScrollView scroll timeout ?

2009-11-20 Thread Mark Wyszomierski
tered? ScrollView is excellent, I want to avoid copying the source into my project though! Thanks again On Nov 20, 4:59 pm, Romain Guy wrote: > That would be a bug, please file :) > > > > On Fri, Nov 20, 2009 at 10:42 PM, Mark Wyszomierski wrote: > > Actually another observatio

[android-developers] Re: ScrollView scroll timeout ?

2009-11-20 Thread Mark Wyszomierski
located. So for ScrollView (and WebView) it looks like the view pops, while ListView seems to handle this a little better. Maybe there's a way to override ScrollView to have that same behavior? (without making a copy of the source code) Thanks On Nov 20, 4:28 pm, Mark Wyszomierski wrote: > Hey R

[android-developers] Re: ScrollView scroll timeout ?

2009-11-20 Thread Mark Wyszomierski
ew). It is > definitely not too high for use with a finger on a touch screen. > > > > On Fri, Nov 20, 2009 at 3:53 PM, Mark Wyszomierski wrote: > > Well I got a clone of ScrollView to compile, turns out it's the > > constant: > > >   private static final int TO

[android-developers] Re: ScrollView scroll timeout ?

2009-11-20 Thread Mark Wyszomierski
e, I don't think there's a way to tweak it (besides leaving my cloned version in my project, which is a little scary) Thanks On Nov 20, 8:10 am, Mark Wyszomierski wrote: > Hi Mark, > > Yeah I was thinking of doing this, I gave it a quick try but am > probably copying the s

[android-developers] Re: ScrollView scroll timeout ?

2009-11-20 Thread Mark Wyszomierski
=703cd8e278b7e5771cbb9c8e2c10c69ae49590f6;hb=HEAD but am not sure which version corresponds to the 1.5sdk which I'm targeting. A quick try on a few of them led to unresolved inherited member variables, so I'm thinking I'm not copying the correct version for my SDK Thanks On Nov 20, 7:44 am, Mark Murphy wrote: >

[android-developers] ScrollView scroll timeout ?

2009-11-20 Thread Mark Wyszomierski
Hi, Is there no way to change the timeout to scroll in ScrollView? In the source, it's set to: static final int ANIMATED_SCROLL_GAP = 250; so any drags will be blocked for 250ms. This has the appearance of the ScrollView being stuck for a bit before it moves. This makes small scroll gestures

[android-developers] Re: Invalidating a row of a ListView?

2009-11-19 Thread Mark Wyszomierski
Thanks Jason, sounds good. Are you extending BaseAdapter for your listview adapter? I thought it'd be a bit slow since every time getView () is called, I have to do the re-setting of my row's ImageView, but it's for the most part pretty smooth, just wondering how you find performance in your case?

[android-developers] Invalidating a row of a ListView?

2009-11-19 Thread Mark Wyszomierski
Hi, I have a ListView, its rows each have an image downloaded from the net in a separate thread. When the image is done downloading, I notify my main thread, and need to invalidate the corresponding row if it's on screen. I'm doing this: // run on the main thread. public void onThumbnailDownlo

[android-developers] Re: Android keyevent keycodes and scancodes

2009-11-18 Thread Mark Wyszomierski
Hi Yi, If I understand correctly, does this just mean that a physical key may not appear at all on different devices? For instance, I want to check if the "z" key is pressed, so right now I check for: keyCode == KeyEvent.KEYCODE_Z if I understand correctly, KEYCODE_Z should be constant on all

[android-developers] Re: Android keyevent keycodes and scancodes

2009-11-18 Thread Mark Wyszomierski
ne of the views > has focus. > > > > > > On Wed, Nov 18, 2009 at 8:49 AM, Mark Wyszomierski wrote: > > Hi, > > > If we need to check if a particular key was pressed, is this the > > correct way of doing it?: > > >  public boolean onKey

[android-developers] Re: Android keyevent keycodes and scancodes

2009-11-18 Thread Mark Wyszomierski
Hi, If we need to check if a particular key was pressed, is this the correct way of doing it?: public boolean onKey(View v, int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_O) { alert("you pressed the 'o' key!"); } else if (keyCode == KeyEvent.KEYCODE_R) {

[android-developers] My ImageView background

2009-11-17 Thread Mark Wyszomierski
Hi, I have some ImageViews that download images from the net. While they're loading, I'd like to show an empty frame image. I'm doing this, which looks fine: public class MyFrame extends Shape { private int mColorFrame; private int mColorInner; public DrawablePhotoLoading(int colorFrame,

[android-developers] Re: How to Add Objects to Sqlite Database

2009-11-17 Thread Mark Wyszomierski
Do you have a database already setup and are wondering how to use the sqlite classes, or you don't have one setup yet? If you're starting from scratch, I think the notepad tutorial shows you hot to setup sqlite from the start: http://developer.android.com/guide/tutorials/notepad/index.html On No

[android-developers] Re: http client connect timeout

2009-11-17 Thread Mark Wyszomierski
arams(), > 15000); > > On Nov 17, 1:46 pm, Mark Wyszomierski wrote: > > > > > Jonas, could you post your whole example? I'm on 1.5, same issue, the > > timeout never kicks in. > > > Thanks > > > On Nov 2, 8:45 am, Jonas Alves wrote: > > >

[android-developers] Re: http client connect timeout

2009-11-17 Thread Mark Wyszomierski
Jonas, could you post your whole example? I'm on 1.5, same issue, the timeout never kicks in. Thanks On Nov 2, 8:45 am, Jonas Alves wrote: > It does work fine here. > > My target is 1.5. What's yours? > > On Nov 1, 3:28 pm, Andrei wrote: > > > > > Thank you > > > Firstly your code sets read/wri

[android-developers] Re: Extremely long DNS lookup (and failure) on T-Mobile network

2009-11-17 Thread Mark Wyszomierski
d Market often failing, and other > networking issues. I wonder why this doesn't seem to be more well known? > > Scott > SoftwareForMe.com > Makers of PhoneMyPC > > > > > > On Mon, Nov 16, 2009 at 3:12 PM, Mark Wyszomierski wrote: > > I don't understan

[android-developers] Re: Extremely long DNS lookup (and failure) on T-Mobile network

2009-11-16 Thread Mark Wyszomierski
ects > immediately. > > This problem started around the time 1.6 was released. > > SoftwareForMe.com > Makers of PhoneMyPC > > On Sun, Nov 15, 2009 at 10:33 AM, Mark Wyszomierski wrote: > > > > > > > How are you all getting around this issue? I am runnin

[android-developers] OutputStream throws FileNotFoundException - sometimes???

2009-11-16 Thread Mark Wyszomierski
Hi, I'm trying to create a file in my app folder - sometimes it fails - other times it works fine - this is what I'm doing: String path = "/data/data/com.myapp.test/files/database.sqlite" OutputStream myOutput = new FileOutputStream(path); sometimes the last line throws a FileNotFoundExceptio

[android-developers] How to draw my custom view when selected?

2009-11-16 Thread Mark Wyszomierski
Hi, I wrote my own custom view (derived from View). How can I handle painting of it when it becomes focused / selected? Can I just do this: protected void onDraw(Canvas canvas) { if (isSelected()) { // draw my selected version } else { // draw normal version

[android-developers] Transparent dialog theme

2009-11-16 Thread Mark Wyszomierski
Hi, I've seen a few posts on different forums about how to make a dialog theme with a completely transparent background. I thought I'd post this here in case anyone is searching for it. This works on 1.5 (device/emulator), 1.6 emulator, 2.0 emulator: [android-developers] Re: Multiple images using ACTION_VIEW
This would be great to know, unfortunately I cannot find any information on it. On Nov 13, 1:34 pm, Lukasz Mosdorf wrote: > Hi, > > I have a folder on sd-card in which I keep photos edited in my > application. Im trying to force deafult android image viewer to see > all pictured in that folder. U

[android-developers] ImageView with zoom, or just use WebView somehow?

Hi, I'd like to display a single image from the web. It'd be nice if it could be zoomable and pan-able. I was thinking of just using a WebView to do this: webView = new WebView(); webView.loadUrl("mysite.com/mypicture.jpg"); but I can't force the webview to center the picture etc. Is ther

[android-developers] Re: ANDROID_ID returns null on my G1 ?

there's an ID from the Telephony manager but then you add to add another (scary) permission for that? Thanks On Nov 15, 8:23 pm, Mark Murphy wrote: > Mark Wyszomierski wrote: > > Ok I installed the apk straight from the link - I see the two blue > > rects above (foo, bar), then

[android-developers] Re: ANDROID_ID returns null on my G1 ?

wrote: > Mark Wyszomierski wrote: > > Oh I'm running 1.5 too, but I think that should be fine. > > Grab this project: > > http://commonsware.com/misc/WeightDemo.zip > > or, here's an APK: > > http://commonsware.com/misc/WeightDemo-debug.apk > > Install

[android-developers] Re: ANDROID_ID returns null on my G1 ?

Oh I'm running 1.5 too, but I think that should be fine. On Nov 15, 8:05 pm, Mark Wyszomierski wrote: > Ok I just tried with my one and only activity, still returns null: > >   class MyActivity extends Activity { >      private String mId; > >     �...@override >

[android-developers] Re: ANDROID_ID returns null on my G1 ?

in LogCat too (with phone hooked up), same. I'm stumped! On Nov 15, 7:52 pm, Mark Murphy wrote: > Mark Wyszomierski wrote: > > What does rooted mean? > > Having the ability to run as root, which is roughly the Linux equivalent > to the Administrator account in Windows. >

[android-developers] Re: ANDROID_ID returns null on my G1 ?

Nov 15, 7:47 pm, Mark Murphy wrote: > Mark Wyszomierski wrote: > > Following other threads - I'm trying to get a unique device ID from > > the device. I tried this: > > >   String ID = Settings.Secure.getString(context.getContentResolver(), > > android.provider.Settin

[android-developers] ANDROID_ID returns null on my G1 ?

Hi, Following other threads - I'm trying to get a unique device ID from the device. I tried this: String ID = Settings.Secure.getString(context.getContentResolver(), android.provider.Settings.Secure.ANDROID_ID); but this returns null when running on my G1. Is it supposed to be returning a vali

[android-developers] Re: Extremely long DNS lookup (and failure) on T-Mobile network

How are you all getting around this issue? I am running into it on some phones given out as demos (G1s running 1.5). About 50% of the time, my network requests will just hang for about two minutes, then throw: java.net.UnknownHostException: Host is unresolved: myapi.me.com:80 this looks embarr

[android-developers] Re: How can I select or click on an item in a ListView?

I think you need to use: ListView.setOnItemClickListener() instead. On Nov 14, 2:25 pm, lau ka man wrote: > As I mentioned in the email subject, > I want to select an item (e.g. Department of Human Resource Management) in > my ListView. > And you can see that: > I had try to use > setClickable

[android-developers] Re: Stacking a ListView with other widgets below?

This is problem is probably related to this ListView bug: http://code.google.com/p/android/issues/detail?id=4255#c2 On Nov 14, 1:07 pm, Mark Wyszomierski wrote: > One more question on this - it seems like if we use a header or footer > view - then our activity can not add any other

[android-developers] Re: Focus between views and lists issue/problem with Donut

Ok this seems to be a bug unfortunately: http://code.google.com/p/android/issues/detail?id=4255#c2 On Nov 14, 2:47 pm, Mark Wyszomierski wrote: > Brady, did you come up with a work around for this? I'm having the > same problem, and I can't come up with some sort of temporary fi

[android-developers] Re: Focus between views and lists issue/problem with Donut

Brady, did you come up with a work around for this? I'm having the same problem, and I can't come up with some sort of temporary fix for it sadly. On Oct 14, 5:10 pm, Brady wrote: > Ok, I did some more sleuthing and this is definitely a bug. > > I modified the 1.5 SDK API demo Views > Lists > ex

[android-developers] Re: Stacking a ListView with other widgets below?

the ListView. Normally I could just use a header view instead, but is there an undocumented rule in which we cannot add other views to our layout if using a ListView with setItemsCanFocus=true? Thanks On Nov 13, 6:52 pm, Mark Wyszomierski wrote: > Romain, thanks, that saved me. > > On

[android-developers] Re: Stacking a ListView with other widgets below?

Romain, thanks, that saved me. On Nov 13, 6:34 pm, Romain Guy wrote: > When you add the footer to the listview you need to indicate it can > receive > focus:http://d.android.com/reference/android/widget/ListView.html#setItemsC...) > > > > > > On Fri, Nov 13, 2009 at

[android-developers] Re: Stacking a ListView with other widgets below?

e some way of doing that for a better user experience, or do users just have to touch with their finger? Thanks On Nov 13, 6:13 pm, Romain Guy wrote: > Don't use a ScrollView, it won't work. Add footers to your ListView. > > > > > > On Fri, Nov 13, 2009 at

[android-developers] Stacking a ListView with other widgets below?

Hi, Is there a way to create a layout with a ListView set to use full height, then some additional panels? Something like this: Basically I'd like to keep the ListView at a height which contains all its children views, then some static widgets

[android-developers] Stuck with ScrollView vs ListView, your thoughts?

Hi, I have to make a pretty complex activity layout, which needs to scroll vertically. It is composed into row sections, which are focusable rows. Some rows may not be focusable themselves, but have internal focusable items, like this: // This whole row gets highlighted and focusable.

[android-developers] Re: Post custom widget source?

Actually the class of interest is here: http://code.google.com/p/android-textview-multiline-ellipse/source/browse/trunk/TextViewMultilineEllipse.java On Nov 12, 11:44 pm, Mark Wyszomierski wrote: > Ok, I put the class up here: > >  http://code.google.com/p/android-textview-multilin

[android-developers] Re: Post custom widget source?

line + ellipsis TextView-like control. It seems to work ok in general cases, if anyone wants to give it a shot and report bugs or suggestions that would be great, Thanks On Nov 12, 7:23 pm, Mark Murphy wrote: > Mark Wyszomierski wrote: > > I created a multiline textview widget which handles

[android-developers] Post custom widget source?

Hi, I created a multiline textview widget which handles ellipsizing - is it appropriate to post it here in this forum for feedback, or is there an android site dedicated for custom widgets in the community? Thanks -- You received this message because you are subscribed to the Google Groups "And

[android-developers] Re: Showing ellipsis in a TextView?

g, Thanks On Oct 21, 11:40 am, Mark Wyszomierski wrote: > Ha that's the same exact control I'm looking to create, multiline and > if it spills over three vertical lines, replace the last few > characters with anellipsisand "More" text - the user clicks that and >

[android-developers] Soft keypad - turn off animation, or have it appear above my entire layout?

Hi, When I touch an EditText, the soft keyboard comes up, but it pushes my layout up a bit. So there's about a second delay where I see the keyboard modifying my layout, it's a bit jarring. Is there a way to have the soft keyboard either: 1) Appear above my current layout (like in a Frame) so

[android-developers] Ok to measure widgets before display?

Hi, I need to find out how wide a button with particular text will be before displaying a layout. Is this a valid way of doing it behind the scenes?: LinearLayout lll = new LinearLayout(getContext()); Button btn = new Button()); btn.setText("wonderful!"); lll.addView(tvs); lll.measure(1

[android-developers] Re: Increase timeout for touch-select vs touch-scroll?

State(View.PRESSED_ENABLED_STATE_SET, pressed); setBackgroundDrawable(bg); is there some other set of flags I should be using instead, which differentiates between 'really' being pressed, and just pressed for scrolling? Thanks On Nov 9, 10:45 am, Mark Wyszomierski wrote: > Hi, > > Is there a way

[android-developers] Increase timeout for touch-select vs touch-scroll?

Hi, Is there a way to make highlighting of a row in a listview delayed if the user is simply scrolling the list with their finger? To clarify, when the user puts their finger down to scroll, the intersected row (if any) gets highlighted for a short moment, before it realizes the user is just tryi

[android-developers] Re: Donut (1.6), auto complete text view and ellipsize

@Chris, I can't even get the simple TextView example you posted to ellipsize - I just immediately get a stack overflow exception. If I get rid of "singleLine=true", then at least it doesn't crash, however the ellipsize won't be there! This is the only way I can get ANY ellipsis to appear - by suppl

[android-developers] LinearLayout stack overflow, fails on 1.5, ok on 1.6?

Hi, I'm trying to make a horizontal layout with two TextViews, one should take up 40% of available width, the other 60%. This works unless the text is longer than available space, then a stack overflow exception is thrown. Pasting this into an empty 1.5 project xml file should cause it (though thi

[android-developers] Re: Make two buttons the same width?

:layout_weight="1" > >                 android:text="preview" /> > > >             > android:layout_width="0dip" > >                 android:layout_height="fill_parent" > > android:layout_weight="1" > >        

[android-developers] Make two buttons the same width?

Hi, Is there any style I can set which will make a set of buttons the same width (without specifying an explicit size in pixels)? For example: is there a way to make the two buttons the same width, even though they may have different text? Right now I'm measuring the larger one via

[android-developers] Re: WebView - new frame closes my app and starts system web browser?

hanks On Nov 5, 10:09 am, Mark Murphy wrote: > Mark Wyszomierski wrote: > > I have a WebView inside my app. It looks like an html link which wants > > to open a page in a new frame actually pushes my app to the background > > and opens the system web browser to show the n

[android-developers] Clear Activity stack?

Hi, Is there a way to clear our Activity stack? For example, a user in my app progresses through these activities, one is launched from the previous activity: ActivityA -> ActivityB -> ActivityC if the user is now looking at ActivityC, and they hit the back button, they will go back to Activi

[android-developers] Max font size of a TextView?

Hi, I have a textview, I'd like it to use a font size of 14, but if it's too wide to fit its parent container at that size, then choose a smaller font size to fit. Looks like this: Is there a built in way to do this? Or do I have to somehow measure the text before hand and choose a font si

[android-developers] Re: Including extra sqlite databases?

f your database. > > 2009/10/31 Mark Wyszomierski : > > > > > Hi Mark, > > > Yeah I think I need to write it to a local file, SQLiteDatabase has > > constructors which only read from a file path, or File instance. > > > I'm wondering though if I c

[android-developers] Re: Including extra sqlite databases?

-t115.html I've added the sqlite file to my raw folder, it appears in my .R file, however eclipse intellisense cannot resolve it when I type R.raw.mydatabase - odd - Thanks On Oct 31, 7:42 am, Mark Murphy wrote: > Mark Wyszomierski wrote: > > I have some external sqlite files I'd

[android-developers] Including extra sqlite databases?

Hi, I have some external sqlite files I'd like to include with my app. It looks like I can add them to the /assets folder, then read them from there? Is the /assets folder the appropriate location for them? I've used SQLiteOpenHelper to open databases my app creates at runtime, which just uses a

[android-developers] Re: Small circle sometimes appears in center of MapView?

e-apis/reference/com/goog...) > > On Oct 28, 2:04 pm, Mark Wyszomierski wrote: > > > > > Hi, > > > I'm seeing some strange behavior with MapView - > > > sometimes when I display the map, I'll get a small circle drawn in the > > center of the map - i

[android-developers] Small circle sometimes appears in center of MapView?

Hi, I'm seeing some strange behavior with MapView - sometimes when I display the map, I'll get a small circle drawn in the center of the map - it is just stroked black. As soon as I tap anywhere in the map, it disappears. This happens about 20% of the time I display the map. I don't have any ove

[android-developers] Listen for MapView zoom?

Hi, I'm using a MapView, with the default zoom controls. Is there any way to listen for zoom events? I tried this: android.widget.ZoomButtonsController zzz = mMapView.getZoomButtonsController(); but eclipse can't seem to resolve ZoomButtonsController? Thanks --~--~-~--~~-

[android-developers] Re: Running on emulator or device?

This call still returns null when running on a real device: String androidId = Settings.Secure.getString (context.getContentResolver(), android.provider.Settings.Secure.ANDROID_ID); do we need to add some sort of permission setting to read system settings? Thanks On Oct 26, 4:26 pm, Mark

[android-developers] Re: Running on emulator or device?

Thanks again Mark, you're right, this is what I changed it to: String androidId = Settings.Secure.getString (context.getContentResolver(), android.provider.Settings.Secure.ANDROID_ID); Thanks On Oct 26, 4:08 pm, "Mark Murphy" wrote: > > Thanks Mark, I set this once in a global Config class:

[android-developers] Re: Running on emulator or device?

Thanks Mark, I set this once in a global Config class: public static final boolean IS_EMULATOR = android.provider.Settings.Secure.ANDROID_ID == null; For the maps, yeah I'll have to just create the MapView instance through code, you can pass the key in through the constructor, I guess that sho

[android-developers] Running on emulator or device?

Hi, Is there a way to check if our code is running in the emulator vs a real device? I'm using a MapView which requires a signing key. I'm using the signature of the eclipse debug key when running on the emulator, but this won't work when I build a release version. I think I need to have a check

[android-developers] Overlay vs ItemizedOverlay, your thoughts?

Hi, I want to draw 20 pins on a MapActivity. Each pin has a small pin image, but I have to dynamically overlay a small bit of text over each pin at runtime. Looks like I have two options: #1) Itemized Overlay This is the suggested method. I put all my pins in one ItemizedOverlay object, and that

[android-developers] Pick a zoom to fit all map overlays on screen?

Hi, I've added a few pin overlays to a MapView. Is there a way to have the MapView center and zoom itself so it automatically fits all overlays on-screen? I'm following the hello world map sample exactly - just need a way to make sure all pins are on screen when the map actually gets displayed:

[android-developers] Re: Animation is slow?

The docs for the tweening animation package doesn't say whether the animations are done through software or hardware - are they just all software based? This may be why I'm seeing it run slowly? Thanks On Oct 22, 11:19 am, Mark Wyszomierski wrote: > Hi, > > I'm tr

[android-developers] Animation is slow?

Hi, I'm trying to perform a simple animation, but it seems quite choppy. This is it: Animation anim = new TranslateAnimation(0,0,-50,0); anim.setDuration(500); anim.setInterpolator(new LinearInterpolator()); myLinearLayout.setAnimation(anim); the animation does what it's supposed to do,

<    1   2   3   4   >