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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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)
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
, 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
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 =
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
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
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,
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
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
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
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
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
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
, 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
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
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
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.
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.
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 =
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
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
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
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
.
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
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!
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
?
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
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
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
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
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
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
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
. 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
!
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
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
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
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
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
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
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
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
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
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
...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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
91 matches
Mail list logo