[android-developers] SQLite case insensitive matching

2015-04-18 Thread Doug Gordon
the uppercase equivalent, e.g. É. My understanding is that Android SQLite does not support this automatically as it does for ASCII characters, but is there a solution within Android? I have no control over what is in the database (it comes from an outside source) or what the user inputs. Doug Gordon

[android-developers] Re: Image is being oriented differently once uploaded to server, why?

2015-04-12 Thread Doug Gordon
I've seen this happen in a number of places when uploading images. The basic issue is that there are two ways to save a rotated image: save the raster data in the correct orientation and without metadata, or save the raster data in its native orientation and set the metadata value to indicate

Re: [android-developers] ViewPager pages not drawn

2014-12-20 Thread Doug Gordon
this -- is to set the background color of various views to distinct noticeable colors, like pink, cyan, etc. In this case, I'd try the view pager itself, its parent view, and your fragments' views. -- K 2014-12-20 0:30 GMT+03:00 Doug Gordon gord...@gmail.com javascript:: I haven't

Re: [android-developers] ViewPager pages not drawn

2014-12-20 Thread Doug Gordon
into the view pager's onMeasure / onLayout / populate + scrollToItem For this second part, I would perhaps add a button in the layout that calls requestLayout or setCurrentItem on the pager, to trigger as needed. -- K 2014-12-20 17:17 GMT+03:00 Doug Gordon gord...@gmail.com javascript

[android-developers] Can't update widget preview on Nexus 5/Lollipop

2014-12-01 Thread Doug Gordon
the old image cached somewhere and does not clear it out when the widget is deleted and does not check to see if it has changed when installing the same widget again. The preview on the widget screen does update as expected on my other devices. Anyone have any ideas? Is this a Lollipop bug? Doug

Re: [android-developers] Simple PagerAdapter does not display views

2014-11-25 Thread Doug Gordon
Yes, and that's what's so frustrating, Kastya. The breakpoints appear to indicate that everything is working, as does the fact that it responds to a swipe. For example, if I start it off by calling ViewPager with setCurrentItem(3), my instantiateItem is called with position=3, followed by

[android-developers] Simple PagerAdapter does not display views

2014-11-24 Thread Doug Gordon
of child views. Any clues on where to look? I've implemented a FragmentPagerAdapter elsewhere with no issues, but this does seem like it would be easier, especially since these views have no controls on them (just data). Doug Gordon GHCS Software -- You received this message because you

[android-developers] Re: Creating a custom-view with rounded corners

2014-11-13 Thread Doug Gordon
I don't believe that would (or could) be possible. After all, the Android o/s doesn't understand the content of your background image. Those rounded corners just exist as pixels in an image and are not defined mathematically in any way so that the drawing software could clip to them. All that

[android-developers] Android Studio Editor feature

2014-10-27 Thread Doug Gordon
n I switch it on and off (once I had collapsed the string to the constant, I could not get it to revert until I opened the file again)? -- Doug Gordon GHCS Software http://www.ghcssoftware.com g...@ghcssoftware.com -- You received this message because you are subscribed to

[android-developers] Re: Image captured from my app is rotated by default

2014-03-25 Thread Doug Gordon
This may not be related to your problem, but I believe that there are basically two ways that the orientation of a JPEG photo is determined. One is simply by the way the actual data in the file is laid out; for example, whether it is stored as 1024x768 or 768x1024. The other determinate is an

[android-developers] Re: ViewPager and ListFragments with onLongClick listener problem

2013-12-31 Thread Doug Gordon
1) It seems like you could figure this out just by setting a few breakpoints and following what happens when the long-press menu is activated. 2) Do you really have a separate copy of code for each fragment that differ only by the FRAGMENT_DAY_NAME constant? This is bad practice for a number

[android-developers] Re: Passing the design for tablets checks (dev console optilmization tips)

2013-11-23 Thread Doug Gordon
My app seems to have passed the tests once I added some 7-inch tablet screen shots. I do have some resources in folders with the *-xlarge*attribute, so maybe that's a clue to what they're looking for. On Friday, November 22, 2013 4:20:28 PM UTC-5, b0b wrote: I have an app that I think is

[android-developers] xxHdpi Displays

2013-11-12 Thread Doug Gordon
be providing graphic resources in a drawable-xxhdpi resource subfolder? That's about all I need is yet another set of graphics to resize and tweak endlessly! :-( Doug Gordon GHCS Software -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Re: Deposits From Google Wallet Weirdness

2013-07-18 Thread Doug Gordon
According to Bank of America's site, all three payouts did go into my account. I guess the simplest thing would be to just consider it an advance for the next couple of months. At least it wasn't like the guy whose Paypal account got an erroneous balance of 94 quadrillion dollars the other

[android-developers] Overloading of Back Key functionality

2013-05-06 Thread Doug Gordon
Excuse me for a minor rant, but is anyone else bothered by what I call the overloading of the Android Back key? What I mean by this is that pressing it can have two vastly different results: it can return you to an earlier view in the app you are using, or it can effectively exit the app and

[android-developers] Re: Adjust ActionBar Tabs Width

2013-02-16 Thread Doug Gordon
If you hide the app title and icon and use the splitActionBar option, you can get up to 4 tabs on the top row on a smartphone-size screen. I think that 4 is about the limit, but if there is not enough room for all the tabs in the top row, Android converts the tabs to a spinner (dropdown)

[android-developers] Unexpected Action Bar Behavior

2013-02-01 Thread Doug Gordon
on the right. In this case, the tab highlight correctly follows when swiping.) Doug Gordon GHCS Software -- -- 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@googlegroups.com To unsubscribe

[android-developers] Re: Fragment Transition Animation Crashes

2013-01-29 Thread Doug Gordon
, fragment.mNextAnim); -- K On Monday, January 28, 2013 4:14:36 AM UTC+4, Doug Gordon wrote: The following code used to work fine in a previous iteration of my app that was targeted to V11 but used the support library to support fragments, etc., from the minimum V7 and up: Fragment

[android-developers] Fragment Transition Animation Crashes

2013-01-27 Thread Doug Gordon
The following code used to work fine in a previous iteration of my app that was targeted to V11 but used the support library to support fragments, etc., from the minimum V7 and up: Fragment frag = ShowExhibit.ShowExhibitFrag.newInstance(args); FragmentTransaction ft =

[android-developers] Kudos to ADT package developers

2012-11-28 Thread Doug Gordon
into a single download that almost instantly gets me back to being productive. I think the only thing I needed to do was to tell it where the SDK was and download some earlier platforms. So thanks to whoever it was that did this work -- greatly appreciated! Doug Gordon GHCS Software -- You

[android-developers] Windows 8

2012-11-21 Thread Doug Gordon
My development PC just took a dive, and most of the decent PCs that I can find locally are now coming with Windows 8. I really don't want to go that route, but if I do, will the Android development environment, i.e., Eclipse and the various SDK tools, run OK on Windows 8? And how about drivers

Re: [android-developers] Re: Widget Product Updates

2012-06-04 Thread Doug Gordon
Good info. This actually explains some of the buggy behavior I've seen, not on my own apps, but on various others on my own devices. Especially when I apply an update and then the screen widget stops working with an App not installed error popping up. On Sunday, June 3, 2012 10:57:37 PM UTC-4,

[android-developers] Widget Product Updates

2012-06-02 Thread Doug Gordon
the existing instances and add back the updated widget? Doug Gordon GHCS Software -- 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@googlegroups.com To unsubscribe from this group, send email

[android-developers] Getting Unable to Instantiate activity; Component ClassNotFound exception

2012-04-18 Thread Doug Gordon
I'm suddenly unable to run my app due to this error, where the ClassNotFound refers to my main activity class. It happens on my phone as well as in the emulators in various versions. This is an existing stable app that's been around for quite a while, and I haven't made any code changes since

[android-developers] Does Market Recognize Internationalization?

2012-02-27 Thread Doug Gordon
description? Doug Gordon GHCS Software -- 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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr

[android-developers] Re: Prevent image from being scaled in ImageView

2012-02-11 Thread Doug Gordon
Are you saying that the X gets scaled up to the full size of the ImageView as though the transparent border were not there? I have an ImageView that displays photos in their native pixel dimensions up to a max size by doing this: ImageView android:id=@+id/photo

[android-developers] Re: sqlite size capacity

2012-01-29 Thread Doug Gordon
I believe that there is a maximum file size limit of 2Gb, but this has more to do with Android in general than specifically with SQLite. Performance has more to do with your database schema than with the size of the file, but Android was not designed as a database engine and I had to resort to

[android-developers] Re: Supporting Galaxy Note Issues Due To It Displaying Itself as a LARGE screen layout.

2012-01-21 Thread Doug Gordon
This is why I sometimes envy developers who write for iOS -- they have only a few well-defined form factors to consider and don't have new surprises coming out every few weeks! :-) Doug Gordon GHCS Software On Jan 20, 9:09 pm, jtoolsdev brianjto...@gmail.com wrote: I have a similar problem

[android-developers] Re: Difference between fragment add and replace

2012-01-10 Thread Doug Gordon
, the Android documentation is good, but sometimes inconsistent in terminology when read closely. On Jan 9, 11:38 am, TreKing treking...@gmail.com wrote: On Mon, Jan 9, 2012 at 9:27 AM, Doug Gordon gordo...@gmail.com wrote: So what is the difference behind the scenes between these two methods? Did you try

[android-developers] Difference between fragment add and replace

2012-01-09 Thread Doug Gordon
in an empty frame. This is all working well, but what I've observed is that there is no visible difference in behavior whether I show frag B by calling ft.replace().addToBackStack() or ft.add().addToBackStack(). So what is the difference behind the scenes between these two methods? Doug

[android-developers] Re: xlargeScreens ?

2011-12-13 Thread Doug Gordon
Are you sure you're using the correct symbol, i.e. Configuration.SCREENLAYOUT_SIZE_XLARGE? Doug Gordon GHCS Software On Dec 12, 7:39 pm, martypantsROK martyg...@gmail.com wrote: seems to be an Eclipse problem. Build target is set to 11 but it doesn't recognize it. Got all the latest

[android-developers] Re: What are ideal parameters for the width height of the layout of widget?

2011-12-03 Thread Doug Gordon
You are not very specific about what you are doing, but in general the container section of your layout -- the RelativeLayout part -- would be set to match_parent, but a typical widget such as a Button would be set to wrap_content because you don't want it to be any larger than it has to be.

[android-developers] Re: Fragment Re-instantiation on Activity Restart

2011-11-29 Thread Doug Gordon
Rony, you are correct, but of course if (savedInstanceState != null) then I'd need to use the manager findFragmentByTag call to find these recreated fragments since I need to be able to add them to their container view and also to be able to call custom methods that update the displayed data, etc.

[android-developers] Re: Fragment Re-instantiation on Activity Restart

2011-11-29 Thread Doug Gordon
To wrap this up, I've found that the arguments sent to the fragment with setArguments are preserved when the fragment is reinstantiated by the framework. So what I'm now doing is only creating a new fragment if there is no previous one after a config-change restart. For example: mTabBar =

[android-developers] Fragment Re-instantiation on Activity Restart

2011-11-28 Thread Doug Gordon
My app is built with V4 of the Compatibility Library (in case that makes a difference) and all of my fragments are dynamic. That is, I explicitly create the fragment objects and put them in a view with an add or similar transaction, etc. What I have discovered is that, when my activity is

[android-developers] Fragment within a fragment?

2011-11-16 Thread Doug Gordon
good grasp on how fragments are implemented and managed. Thanks. Doug Gordon GHCS Software -- 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@googlegroups.com To unsubscribe from

[android-developers] Re: Fragment within a fragment?

2011-11-16 Thread Doug Gordon
Thanks for the confirmation; I sort of expected that. After browsing StackOverflow, one of the posts gave me an idea for an alternative design that will actually make everything much simpler and more elegant than what I was thinking of doing. So it worked out for the better. :-) Doug Gordon

[android-developers] fragment Tag and onCreateView

2011-11-01 Thread Doug Gordon
happens... Doug Gordon GHCS Software -- 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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr

[android-developers] String isEmpty()

2011-11-01 Thread Doug Gordon
. Interestingly, this only appears to happen when running it on my actual Android 2.2 phone. It works OK on a V2.3.3 emulator. It is built with the V2.3.3 SDK. What gives? Doug Gordon GHCS Software -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] String isEmpty()

2011-11-01 Thread Doug Gordon
On 11/1/2011 3:45 PM, Marc Petit-Huguenin wrote: The method String.isEmpty() exists only since Java 1.6/Android API 9. Thanks. That explains a lot. This was a recent change. I thought surely I'd used that method before, but when I searched my entire project, isEmpty was nowhere to be found!

[android-developers] Building V4 sample

2011-10-21 Thread Doug Gordon
to be fixed by removing the @Override that precedes the method in the code. Anyone else had this issue? Are these methods indeed not overrides? Doug Gordon GHCS Software -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Changing the scaled pixel size

2011-09-13 Thread Doug Gordon
? Doug Gordon GHCS Software -- 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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com

[android-developers] onLayout not always called after onMeasure

2011-09-07 Thread Doug Gordon
wondering if it would be OK to call layout() on my child views from within onDraw instead of within onLayout. The parent view does get drawn first, so I would guess that this wouldn't hurt anything. Doug Gordon GHCS Software -- You received this message because you are subscribed to the Google Groups

[android-developers] Converting to Fragments

2011-07-06 Thread Doug Gordon
using fragments on 3.x without having to start with too much of a clean sheet? I could see some real ugly code and kludges creeping in if I try to force fragments into what I currently have. Doug Gordon -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: Minimum Age?

2011-06-21 Thread Doug Gordon
I'm more concerned there will be a _maximum_ age and I'll have to drop out of the community. :-) On Jun 19, 3:07 pm, Mehwar Raza mehwarr...@gmail.com wrote: Is there a minimum age requirement to become an android developer? I have been trying to hunt down the answer to no avail. -- You

[android-developers] Re: Google Docs Access

2011-05-19 Thread Doug Gordon
The databases are user-generated, so I need a public solution. I can't use my web server to store megabytes of data for thousands of users, manage usernames and passwords, etc. On May 18, 9:41 pm, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Thu, May 19, 2011 at 4:31 AM, Doug Gordon gordo

[android-developers] Google Docs Access

2011-05-18 Thread Doug Gordon
of confusing text, and then you see a sample implementation and it's just a couple dozen lines of code! Any help getting me started on this would be appreciated! Doug Gordon GHCS Software -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] How To Use MTP-connected Devices

2011-03-02 Thread Doug Gordon
MTP, etc. So how can MTP be used to transfer files to the device that don't really fit into the Media files category, and how do I locate the directory from my app? What do getExternalStorageDirectory and getExternalFilesDir return for a device like the Xoom? Doug Gordon GHCS Software

[android-developers] Re: Developing for tablets

2011-02-22 Thread Doug Gordon
. I would also hope that you'll be updating some of your publications accordingly; they were a big help when I was just starting out with this project. Doug Gordon On Feb 21, 4:43 pm, Mark Murphy mmur...@commonsware.com wrote: On Mon, Feb 21, 2011 at 4:36 PM, Doug Gordon gordo...@gmail.com wrote

[android-developers] Developing for tablets

2011-02-21 Thread Doug Gordon
of and will be covered when the final SDK is released. But I would also like some guidance on how to handle an increasingly fragmented array of devices. Doug Gordon GHCS Software -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Re: FilterQueryProvider not working

2011-02-18 Thread Doug Gordon
runQueryOnBackgroundThread yourself, it's an implementation method. Use getFilter().filter(some text) to kick things off. http://developer.android.com/reference/android/widget/Filter.html#fil...) -- Kostya Vasilyev --http://kmansoft.wordpress.com 18.02.2011 0:23 пользователь Doug Gordon gordo

[android-developers] FilterQueryProvider not working

2011-02-17 Thread Doug Gordon
call curs.getCount() in the runQuery routine. It's almost as if the adapter's changeCursor method is not being called, even though it states in the documentation that it will be called. Did I miss something here? Doug Gordon GHCS Software -- You received this message because you are subscribed

[android-developers] Closing Cursors

2011-02-15 Thread Doug Gordon
I'm trying to clean up my cursor management and have taken care of all the cases where I strictly use a cursor within my own classes. But what about cursors passed in a CursorAdapter to a ListView? Does the ListView or adapter take care of closing the cursor when the activity exits? Doug

[android-developers] Cursor Management with ListView

2011-02-15 Thread Doug Gordon
working, but is there a more elegant way of effectively requerying the database with a new WHERE clause from withing the existing adapter/cursor and avoiding having to create new object instances each time? Any examples of this technique? Doug Gordon GHCS Software -- You received this message

[android-developers] onPostExecute and Activity State

2011-01-23 Thread Doug Gordon
has resumed (and is in the foreground)? It seems like it has to work this way, but I'm not sure exactly how the threading model works in Android. Doug Gordon GHCS Software -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Best way to resize photo

2010-12-31 Thread Doug Gordon
Among other things, my app displays photos in an ImageView in a popup Dialog. These images come out of a database that is created on the user's PC. Before storing them in the database, I resize them for max dimensions of 320x320 pixels. So, in almost all cases, on the Android device I simply

[android-developers] Read phone identity privilege

2010-12-23 Thread Doug Gordon
up getting phone calls or text messages. With my pay-per-call/text phone plan that's the last thing I need! Can anyone tell me if there's anything I'm missing about granting this privilege? Is there any reason to require it other than just plain snooping? Doug Gordon GHCS Software -- You

[android-developers] Market in U.K. not up to date?

2010-12-23 Thread Doug Gordon
that I haven't heard of this from any other users (or maybe they're just not aware that an update is available). Doug Gordon -- 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

[android-developers] Who or What is AppBrain?

2010-12-19 Thread Doug Gordon
and helpful! Doug Gordon -- 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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com

[android-developers] Re: Concern on AsyncTask in an Activity

2010-12-13 Thread Doug Gordon
The problem I've had with AsyncTask is that if the main activity exits and the background task finishes a bit later, the UI that the b/g task wants to update in its PostExecute method no longer exists, and I get a Force Close when it tries to use one of the Views that I'd previously saved. So you

[android-developers] Re: How to control the width and height of Alert dialog.

2010-12-10 Thread Doug Gordon
In a similar situation, I stopped using AlertDialog and went directly to the Dialog class. You can do everything you need to do that way, but a bit more complex since you don't get some of the shortcuts that AlertDialog provides. Doug Gordon On Dec 10, 7:39 am, sat sathvikm...@gmail.com wrote

[android-developers] Re: Poor SQLite implementation? first time data access way to slow

2010-12-09 Thread Doug Gordon
do things like cache indices, etc. I also put my query work into an AsyncTask to keep from stalling the UI, but even so when I took a PC-like approach to my queries the busy-dialog was up there way too long. You really have to optimize everything. Doug Gordon On Dec 8, 3:49 pm, carbi84

[android-developers] Re: SQLite Performance

2010-11-29 Thread Doug Gordon
a look at the database on the Android using the sqlite3 utility and see what it tells me, but overall SQLite is a somewhat restricted subset of what a typical database server would provide. Still, I'd like to exhaust any possible avenues for improving efficiency. Doug Gordon On Nov 28, 3:14 pm

[android-developers] SQLite Performance

2010-11-28 Thread Doug Gordon
that's possible!) Doug Gordon GHCS Systems -- 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@googlegroups.com To unsubscribe from this group, send email to android-developers

[android-developers] Crash reports on Market

2010-11-18 Thread Doug Gordon
Anyone else having trouble getting Server error messages instead of their crash reports on AM? This didn't just start today after the recent updates -- I couldn't get them a couple days ago either. Doug Gordon GHCS Software -- You received this message because you are subscribed

[android-developers] Re: 512x512 high res icon required?

2010-11-18 Thread Doug Gordon
! Doug Gordon GHCS Software On Nov 18, 9:52 am, Christophe christophe.lebesner...@gmail.com wrote: well, that's great, but it would be better to know what we are suppose to put in these pictures (icon feature) and where it is going to be used BEFORE making it mandatory. On Nov 18, 2:48 pm

[android-developers] First Market Experiences

2010-11-03 Thread Doug Gordon
with this feature! Doug Gordon -- 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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr

[android-developers] Where to learn Android graphics concepts and techniques

2010-11-02 Thread Doug Gordon
I need to do some custom drawing on the screen and am a bit overwhelmed when looking at documentation on extending a View, what a Canvas is, Paint, strokes, determining current size of screen space, etc. All I'm looking for is a good sample or tutorial that explains the concepts behind all of

[android-developers] Updating Market Apps

2010-10-30 Thread Doug Gordon
impressed with the error reporting capabilities! Doug Gordon GHCS Software -- 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@googlegroups.com To unsubscribe from this group, send email

[android-developers] Re: how to get device's android version

2010-10-21 Thread Doug Gordon
Seems like this just gets the version that you compiled the app on. I think the OP is looking for a runtime version for an app that can run on multiple versions. Doug Gordon On Oct 20, 7:34 pm, Mark Murphy mmur...@commonsware.com wrote: On Wed, Oct 20, 2010 at 7:32 PM, cindy ypu01

[android-developers] ResourceNotFound occurs sometimes during layout inflation

2010-10-21 Thread Doug Gordon
these conditions. Doug Gordon GHCS Software -- 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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr

[android-developers] Re: ResourceNotFound occurs sometimes during layout inflation

2010-10-21 Thread Doug Gordon
Yes. It occurred to me at the time that my technique was a bit of a kludge to avoid writing some additional routines, so I'm going to take TreKing's suggestion and put it into onCreate. On Oct 21, 6:55 pm, William Ferguson william.ferguson...@gmail.com wrote: In ActivityA's #onCreate are you

[android-developers] TableLayout text wrapping issue

2010-09-24 Thread Doug Gordon
I was configuring a two-column table where the TextView column on the right sometimes has a long text string and I wanted it to wrap around and expand the table cell vertically as it would in HTML. I found that I had to configure the TextView with layout height width of wrap_content in order

[android-developers] Trouble with TableLayout wrapping text

2010-09-22 Thread Doug Gordon
I have a 2-column table where the right-hand column in the rows might have too much text to fit on one line, so I wanted it to wrap and expand the table cell similar to the way it would work on a web page. This turned out to be more difficult than I expected. When I configured that TextView to

[android-developers] Trouble with TableLayout wrapping text

2010-09-22 Thread Doug Gordon
I have a 2-column table where the right-hand column in the rows might have too much text to fit on one line, so I wanted it to wrap and expand the table cell similar to the way it would work on a web page. This turned out to be more difficult than I expected. When I configured that TextView to

[android-developers] I'm really impressed...

2010-09-16 Thread Doug Gordon
...with this operating system and tool chain. When I decided to port my old PalmOS app over a few weeks ago, I faced a steep learning curve since this was all new to me: Android, Java, and Eclipse. Now that I've worked up the mountain much more quickly than expected and am making excellent

[android-developers] Re: Can android support more than one sdcard?

2010-09-11 Thread Doug Gordon
that any such device was ever produced). On Fri, Sep 10, 2010 at 2:33 PM, Doug Gordon gordo...@gmail.com wrote: A marketing or engineering department that can't accept limitations is an organization that will never ship a product. -- Dianne Hackborn Android framework engineer hack

[android-developers] Re: Can android support more than one sdcard?

2010-09-10 Thread Doug Gordon
I am really surprised that the Android design would only account for one of anything. In my experience, any time you say we're only going to support one of feature X, the marketing or engineering departments decide to add another X. In any case, having support for more than one is the same as

[android-developers] Getting source line no after crash

2010-09-08 Thread Doug Gordon
An Eclipse question, I know, but maybe some Android-specific considerations. When I'm in Eclipse and running my app in debug mode, if it halts due to a runtime exception, where can I look to find the java source line number that was executing at the time? I've been able to find the error message,

[android-developers] Converting binary JPEG data to Bitmap

2010-09-08 Thread Doug Gordon
My app will have an SQLite database with some embedded JPEG images -- basically the binary contents of a JPEG file stored as a Blob in the database. Can someone point me in the general direction of where to start to figure out how to convert this array of bytes into a Bitmap object that can be

[android-developers] Using setContentView to change info presentation

2010-09-02 Thread Doug Gordon
My users will want to toggle between two different presentations of their current data selection, with differing layouts. I want to handle this part of the app in a single activity, so am thinking of simply calling setContentView to change the layout and then of course fill in the data

[android-developers] Solid color listSelector?

2010-09-02 Thread Doug Gordon
When I try to override the default list selector by setting listSelector to a solid color in my layout file, touching an item in the list causes the entire list background to be set to the color. What gives? Also, is there someplace where it describes how to create your own graphic for the list

[android-developers] Samsung Galaxy suitable for development work?

2010-08-25 Thread Doug Gordon
I can see that I'm going to have to get an actual phone sooner than later, and for various reasons I'll need to get an unlocked version. As long as I'm laying out that many $$$, I might as well get one that I can use personally and shop some apps, etc. So would the Samsung Galaxy S be suitable

[android-developers] Some confusion on resource IDs

2010-08-24 Thread Doug Gordon
I'm just getting into developing my app, which will have quite a number of activities and thus quite a few XML files to lay out the screens and define all the views. What I'm just seeing is that if I assign the IDs using @+id/name, I'll have to have a unique name for every widget on every screen

[android-developers] Re: Must pass Context to other classes?

2010-08-22 Thread Doug Gordon
that are visible everywhere. But learning to program in Java will eventually cure me of this ailment. :-) On Aug 21, 11:38 pm, Mark Murphy mmur...@commonsware.com wrote: On Sat, Aug 21, 2010 at 11:12 PM, Doug Gordon gordo...@gmail.com wrote: Am I correct that this is the only way to do this? Yes

[android-developers] Must pass Context to other classes?

2010-08-21 Thread Doug Gordon
I'm not sure if this is an Android question or just due to my being new to Java as well. I'd like to use the getString method to get strings from my resources (R.string.whatever). I see that this is a method of the Context class, and I can call it directly from within my main Activity class. But

[android-developers] Re: Transfer database file to Android

2010-07-27 Thread Doug Gordon
Actually not that large by today's standards -- just in the low megabytes (10 Mb I'd guess). The reason for the uncertainty is that it entirely depends on how much data the user has in their original database, which can vary widely. I can understand the web server solution, and of course I

[android-developers] Re: Transfer database file to Android

2010-07-27 Thread Doug Gordon
on the SD card?  This might be a setup that the old time Palm users (such as myself :*) are comfortable with. On Jul 27, 7:04 am, Doug Gordon gordo...@gmail.com wrote: Actually not that large by today's standards -- just in the low megabytes (10 Mb I'd guess). The reason for the uncertainty

[android-developers] Re: Transfer database file to Android

2010-07-26 Thread Doug Gordon
be uploaded from a PC and then downloaded by an Android device? Does Google provide anything like this? Doug Gordon -- 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@googlegroups.com

[android-developers] Transfer database file to Android

2010-07-25 Thread Doug Gordon
app retrieve it from there. Any ideas or suggestions on this would be appreciated! Doug Gordon GHCS Systems -- 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@googlegroups.com

[android-developers] Necessary to close SQLite database?

2010-07-22 Thread Doug Gordon
such as the Notepad tutorial and SearchableDictionary sample do not do this. I've also seen sample code where the database is consistently opened, read from, and closed, but that would seem to add unnecessary overhead. Doug Gordon GHCS Systems -- You received this message because you are subscribed