[android-developers] Re: What is a WeakReference?

2010-07-26 Thread DanH
, 4:13 am, DanH danhi...@ieee.org wrote: That's odd, because Qt can do almost exactly the same stuff, without weak references or implicit garbage collection, using reference chains that the average user never has to think about. -- You received this message because you are subscribed

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

2010-07-26 Thread DanH
There are thousands of people out there who will provide you with web server services, in some cases quite inexpensive. The hard part would be picking between the choices. On Jul 26, 9:27 am, Doug Gordon gordo...@gmail.com wrote: Mark Murphy wrote:   Another thought I've had is some way to

[android-developers] Re: Weird sqlite behaviour. Can somebody explain?

2010-07-25 Thread DanH
to be interpreted as a number. Thanks again, Federico On Jul 25, 12:50 am, DanH danhi...@ieee.org wrote: Did you put quotes around the string?  If SQLite sees an un-quoted string it's going to interpret it as numeric if possible.  SQLite ignores the data type of columns. On Jul 24

[android-developers] Re: Weird sqlite behaviour. Can somebody explain?

2010-07-25 Thread DanH
fedep...@gmail.com wrote: Thanks a lot. You saved me from doing an ugly filth :-) . I didn't expect that the number with a + was suitable to be interpreted as a number. Thanks again, Federico On Jul 25, 12:50 am, DanH danhi...@ieee.org wrote: Did you put quotes around the string

[android-developers] Re: OutOfMemoryError with Bitmap

2010-07-25 Thread DanH
, Agus agus.sant...@gmail.com wrote: Is it possible to scale the outputted bitmap while decoding the stream in one step? I don't go with a two-step process. On Sat, Jul 24, 2010 at 8:02 PM, DanH danhi...@ieee.org wrote: inJustDecodeBounds in BitmapFactory.Options. On Jul 24, 9:37 pm

[android-developers] Re: Weird sqlite behaviour. Can somebody explain?

2010-07-25 Thread DanH
a lot. You saved me from doing an ugly filth :-) . I didn't expect that the number with a + was suitable to be interpreted as a number. Thanks again, Federico On Jul 25, 12:50 am, DanH danhi...@ieee.org wrote: Did you put quotes around the string?  If SQLite sees an un-quoted string it's

[android-developers] Re: Weird sqlite behaviour. Can somebody explain?

2010-07-25 Thread DanH
Read the documentation carefully: In SQLite, the datatype of a value is associated with the value itself, not with its container. Any column in an SQLite version 3 database, except an INTEGER PRIMARY KEY column, may be used to store a value of any storage class. There is what they call

[android-developers] Re: Possible to over-ride default Android libraries?

2010-07-25 Thread DanH
it in the jar for runtime (in the manifest). On Jul 23, 6:07 pm, DanH danhi...@ieee.org wrote: What you're really asking is whether it's possible to override the system classpath.  I don't know the answer, but that's the question. On Jul 23, 2:08 pm, Toby tob...@gmail.com wrote: I'm working

[android-developers] Re: What is a WeakReference?

2010-07-25 Thread DanH
found did this for you? What package did you find it it? On Jul 23, 5:21 am, DanH danhi...@ieee.org wrote: Yes, you must guard any use of the WeakReference by taking the ref() of it, testing that for null, and then proceeding to use the result of the ref() if not null.  The size

[android-developers] Re: What is a WeakReference?

2010-07-25 Thread DanH
on a really nasty transient bug. Or perhaps the version of 'ref()' you found did this for you? What package did you find it it? On Jul 23, 5:21 am, DanH danhi...@ieee.org wrote: Yes, you must guard any use of the WeakReference by taking the ref() of it, testing that for null, and then proceeding

[android-developers] Re: Pulling specific information from XML files quickly

2010-07-24 Thread DanH
The SQLite files will be larger than the XML and probably slower to access, on a one-off basis. If you insist on the 50 downloaded files, I'd place the data in a flat file of some sort, with a dope vector at the top to speed access. Compact and fast to access. On Jul 24, 7:03 am, Capt Spaghetti

[android-developers] Re: Pulling specific information from XML files quickly

2010-07-24 Thread DanH
Or at the very least you could use JSON vs XML. Maybe half the space overhead, and much faster to parse. On Jul 24, 7:03 am, Capt Spaghetti gene_august...@msn.com wrote: Mark,    It just occurred to me that your second option have your smarter server generate a SQLite database that you

[android-developers] Re: How could I avoid others to get my used pictures in my application?

2010-07-24 Thread DanH
You could always encrypt the pictures. You'd have to use a security by obscurity key scheme, of course, but that's usually good for all but dedicated hackers. On Jul 22, 12:02 am, ejo ejo...@gmail.com wrote: I'll use some pictures in my application.Is there any way to avoid others getting my

[android-developers] Re: OutOfMemoryError with Bitmap

2010-07-24 Thread DanH
to get the free memory?. Should I use another function? Thank you very much in advance. On 23 jul, 20:40, DanH danhi...@ieee.org wrote: Close as I can tell, you use a BitmapFactory.Options and put a BitmapConfig constant in that that specifies the type of internal representation you want

[android-developers] Re: J2ME

2010-07-24 Thread DanH
I think, given two or three target platforms, it would be possible to design a metalanguage/metamachine that could be retargeted to all of them. More difficult to retarget code for one physical platform to another. On Jul 24, 4:07 pm, AlanLawrence alan.unicycl...@googlemail.com wrote: I wonder

[android-developers] Re: OutOfMemoryError with Bitmap

2010-07-24 Thread DanH
. On 23 jul, 20:40, DanH danhi...@ieee.org wrote: Close as I can tell, you use a BitmapFactory.Options and put a BitmapConfig constant in that that specifies the type of internal representation you want.  If you use ARGB_ then each pixel will be 64 bits.  ARGB_ -- 32 bits

[android-developers] Re: OutOfMemoryError with Bitmap

2010-07-24 Thread DanH
function to get the free memory?. Should I use another function? Thank you very much in advance. On 23 jul, 20:40, DanH danhi...@ieee.org wrote: Close as I can tell, you use a BitmapFactory.Options and put a BitmapConfig constant in that that specifies the type of internal representation

[android-developers] Re: Weird sqlite behaviour. Can somebody explain?

2010-07-24 Thread DanH
Did you put quotes around the string? If SQLite sees an un-quoted string it's going to interpret it as numeric if possible. SQLite ignores the data type of columns. On Jul 24, 5:12 pm, Federico Paolinelli fedep...@gmail.com wrote: I spent a lot of time on this. I was trying to store an

[android-developers] Re: What is a WeakReference?

2010-07-24 Thread DanH
Yeah, a weak reference is fair game as soon as there are no strong references to the object. A soft reference is kept until it's aged a little. Different platforms have different algorithms for aging out soft references, but the idea is to let them persist for a few GC cycles at least. On Jul

[android-developers] Re: OutOfMemoryError with Bitmap

2010-07-24 Thread DanH
the original image which causes OutOfMemory error frequently. On Sat, Jul 24, 2010 at 3:47 PM, DanH danhi...@ieee.org wrote: Yeah, I was assuming that the space for the bitmap is allocated in Java heap, without thinking that many phones allocate graphics separately. Obviously, if the bitmap

[android-developers] Re: external jar problem --java.lang.verifyerror

2010-07-23 Thread DanH
Most likely would be a mismatch between the jars used in the compile and those on the system that's loading the application. Very common with XML classes, among others. Another vague possibility is that the compiler being used is producing bytecodes that Android doesn't implement. This might

[android-developers] Re: What is a WeakReference?

2010-07-23 Thread DanH
Yes, you must guard any use of the WeakReference by taking the ref() of it, testing that for null, and then proceeding to use the result of the ref() if not null. The size of the guarded sections is up to the programmer -- if too large then the object will never get deleted, if too small then the

[android-developers] Re: What is a WeakReference?

2010-07-23 Thread DanH
The main Activity already has a strong reference to the objects. The secondary thread does not need to create a strong reference; in fact, that would make the weak reference useless. It should be noted, though, that one shouldn't use weak references (or soft ones) willy-nilly. A weak/soft

[android-developers] Re: OutOfMemoryError with Bitmap

2010-07-23 Thread DanH
The size of an image file depends greatly on the compression techniques used to create it. Virtually all image formats involve some sort of compression such that the total number of bits in the file is considerably less than the (width * height * depth) number that represents the raw image. On

[android-developers] Re: OutOfMemoryError with Bitmap

2010-07-23 Thread DanH
://developer.android.com/intl/de/reference/android/graphics/Bitma... Nathan On Jul 23, 9:30 am, ReyLith jesus...@gmail.com wrote: So, how can I obtain the depth for know if I can work with the image? On 23 jul, 18:18, DanH danhi...@ieee.org wrote: The size of an image file depends greatly

[android-developers] Re: Pulling specific information from XML files quickly

2010-07-23 Thread DanH
You might want to look into XML pull parsing: http://www.xmlpull.org/v1/download/unpacked/doc/quick_intro.html There is support for it on the phone. On Jul 23, 2:05 pm, Capt Spaghetti gene_august...@msn.com wrote:    I have 50 XML files located on a remote server, one formatted for each state.

[android-developers] Re: Possible to over-ride default Android libraries?

2010-07-23 Thread DanH
What you're really asking is whether it's possible to override the system classpath. I don't know the answer, but that's the question. On Jul 23, 2:08 pm, Toby tob...@gmail.com wrote: I'm working on a SMIME application to decode .p7m signed and encrypted messages.  I've got a small Java app

[android-developers] Re: SQLite Creating SQL Functions

2010-07-23 Thread DanH
I doubt that it's possible, but maybe someone else has a different opinion. On Jul 22, 6:30 pm, eukreign eukre...@gmail.com wrote: How does one go about adding a custom SQLite function from within the Android sqlite API? I have a function (written in C) that I'm able to add using the C API

[android-developers] Re: Eclipse debugger is skipping instructions!

2010-07-23 Thread DanH
Try volatile int n= What's happening is that the compiler figures out that the result of getColumn... is only used in the following line, so it doesn't bother creating the variable n. There may also be (likely is) a compiler option that will force it to generate the (to it) useless

[android-developers] Re: i can't send email in UncaughtExceptionHandler for Service

2010-07-22 Thread DanH
First off, are you sure that your UncaughtExceptionHandler is not throwing an exception? On Jul 21, 1:32 am, codefish 92soc...@gmail.com wrote: i want to handle exceptions in Service. my exception handler sends error report email. so i add FLAG_ACTIVITY_NEW_TASK flag and it works fine in

[android-developers] Re: Strange behavior of if block

2010-07-22 Thread DanH
Could be a compiler bug, but seems unlikely -- the code is not particularly strange or complex from compiler standards. More likely you're seeing some sort of debug artifact (not unusual for single- stepping to give some bogus line numbers at times), or you're simply misinterpreting what you see.

[android-developers] Re: Disabling Java formatting in the Eclipse editor

2010-07-22 Thread DanH
One thing I had to do on my laptop is turn the sensitivity of the touch pad way down, since my hands waving over it (not touching) while typing would be interpreted as mouse presses, highlight whole sections of code, and delete them on the next keystroke. Didn't have the problem with any other

[android-developers] Re: What is a WeakReference?

2010-07-22 Thread DanH
The real Java doc is a bit better: http://download.oracle.com/docs/cd/E17409_01/javase/6/docs/api/java/lang/ref/WeakReference.html A WeakReference is an object that contains within it a reference to another object. The reference is treated specially by the garbage collector in that its existence

[android-developers] Re: What is a WeakReference?

2010-07-22 Thread DanH
WeakReferences this would lead to a storage leak, since objects the manager thought were deleted were still referenced by you and were not getting cleaned up. And you'd not know when an object was considered deleted by the structure's manager.) On Jul 22, 1:21 pm, DanH danhi...@ieee.org wrote

[android-developers] Re: What is a WeakReference?

2010-07-22 Thread DanH
So you'd only want to use WeakReference when you think your activity might run out of memory? Not exactly. If you use poor programming techniques just about any long-running operation can run out of memory. WeakReference is an aid to keep you from having to use much more complex techniques

[android-developers] Re: What is a WeakReference?

2010-07-22 Thread DanH
It's very likely that the garbage collector has gone through several turns of the crank trying to get these correct. The weak reference stuff is very hard to get right the first time, from a GC perspective. On Jul 22, 6:25 pm, fadden fad...@android.com wrote: On Jul 22, 12:57 pm, Kostya

[android-developers] Re: hi

2010-07-22 Thread DanH
Best book I've found to date is Pro Android 2 by Sayed Hashimi, Satya Komatineni, and Dave MacLean. Just through the first couple of chapters, but it gives much more in-depth background on the platform than other books and references I've checked. Of course, you need to know Java pretty well,

[android-developers] Re: InstructionCount in nested functions

2010-07-22 Thread DanH
Never played with it before, but from the docs it looks to me like you can have only one (global) instance. In order to use it the way you want you'd probably have to add a lot of extra code to your methods (enough to throw off the counts). Documentation is definitely a bit sparse. On Jul 22,

[android-developers] Re: Widget update problem

2010-07-21 Thread DanH
Stupid question: Are you sure you're just updating the widget and not stacking one widget on another on another...? On Jul 21, 4:32 am, NightGospel wutie...@gmail.com wrote: Hi all, I wrote one widget that updates per 5-seconds and I found that if it's run for a period of time,

[android-developers] Re: Added Interface of is not resolving at runtime

2010-07-21 Thread DanH
It requires that you do a little song and dance to get the foreign JAR file packaged into the build for the phone. I've never done it so I can't tell you how, but there have been several discussions of this. On Jul 21, 2:15 am, chetan chetanchauha...@gmail.com wrote: Hi,           I have

[android-developers] Re: R cannot be resolved

2010-07-21 Thread DanH
What do you know about Java? The R class is built automatically by the Android build process. (R.java is in your project's gen directory.) It's mainly a container for a bunch of inner classes (the R.whatever classes) which in turn contain numeric constants used by the UI stuff. All sorts of

[android-developers] Re: What algorithms does javax.crypto support?

2010-07-21 Thread DanH
Many of the classes provided in this package are provider-based. The class itself defines a programming interface to which applications may write. The implementations themselves may then be written by independent third-party vendors and plugged in seamlessly as needed. Therefore application

[android-developers] Re: Widget update problem

2010-07-21 Thread DanH
it. :) NightGospel On Jul 21, 11:50 pm, DanH danhi...@ieee.org wrote: Stupid question:  Are you sure you're just updating the widget and not stacking one widget on another on another...? On Jul 21, 4:32 am, NightGospel wutie...@gmail.com wrote: Hi all, I wrote one widget that updates per 5

[android-developers] Re: how do you guys feel about the develop tools?

2010-07-21 Thread DanH
Sad to say, what you have is state of the art. Eclipse is used for many development environments (especially the free ones). The only other free development workbench I know of offhand is Qt Creator. And the emulator is better than a couple of others I've seen. Could they be better? Of

[android-developers] Re: how do you guys feel about the develop tools?

2010-07-21 Thread DanH
BTW, I'm a charter member of the I hate Eclipse club -- joined it about ten years ago. On Jul 21, 1:24 pm, billconan billco...@gmail.com wrote: hello guys, i really like android and hope that it can surpass iphone in the near future. I like it, because it's open. But i really don't like the

[android-developers] Re: What to do when - java.io.FileNotFoundException: No content provider??

2010-07-20 Thread DanH
Well, I can tell you it's looking for the file /sdcard/Video0006.mp4 and not finding it. On Jul 20, 4:34 am, kivy victoriasarabu...@gmail.com wrote: Hi everyone, when I try to attach a file to an email, I get a java.io.FileNotFoundException: No content provider logcat output. If anyone could

[android-developers] Re: What to do when - java.io.FileNotFoundException: No content provider??

2010-07-20 Thread DanH
change String vuri = Uri.parse(videocursor.getString(0)); into an uri because of a type mismatch, when I do that eclipse says I should change it back into a String... On Tue, Jul 20, 2010 at 1:21 PM, DanH danhi...@ieee.org wrote: Well, I can tell you it's looking for the file /sdcard

[android-developers] Re: how to use live wallpapers

2010-07-20 Thread DanH
I think PETA would object. On Jul 20, 7:56 pm, Eric Murtaugh fad...@gmail.com wrote: or even a tutorial would be nice On Jul 16, 1:32 pm, Eric Murtaugh fad...@gmail.com wrote: Ok so i have my own home screen launcher and currently i use an imageview with wallpaper manager to ft the system

[android-developers] Re: Encrypt with Android using AES, decrypt with PHP...

2010-07-19 Thread DanH
Maybe it's because there's nothing special you need to do. On Jul 19, 6:10 am, sblantipodi perini.dav...@dpsoftware.org wrote: it's quite incredible, no article on internet talks about cypher with android and php or servlet... On Jul 18, 8:46 pm, sblantipodi perini.dav...@dpsoftware.org

[android-developers] Re: HelloJni C++

2010-07-19 Thread DanH
Why don't you want to use extern C? You only need to use it for the glue methods between your C++ code and the JVM. On Jul 16, 7:22 pm, ferar ferarach...@gmail.com wrote: android-ndk-r4/samples/hello-jni  as is works fine. However, if I rename /hello-jni/jni/hello-jni.c to

[android-developers] Re: unexpected crash, date questions

2010-07-19 Thread DanH
android.content.res.Resources$NotFoundException: String resource ID #0x10 On Jul 16, 5:32 pm, Ethan ethanborg...@gmail.com wrote: Hi all, I am new to Android and Java (though have plenty of Javascript experience). I am learning the language, the OS, and the programming environment all at

[android-developers] Re: Prefill databases

2010-07-18 Thread DanH
Again, I say, what's your problem -- do you need to know how to fill the database, or how to include it in your app? A SQLite database consists of a single file on the PC or phone, and is portable between them, so you can use any of a dozen methods to fill the database file and then install it

[android-developers] Re: Decent Android reference book?

2010-07-17 Thread DanH
alternative I have long considered exploring: Motorola's documentation for their own spinoff of the Android SDK: Motodev Studio for Android. You might give that a try. Their documentation might please you more. On Jul 16, 5:17 am, DanH danhi...@ieee.org wrote: I've looked at the online

[android-developers] Re: Disabling Java formatting in the Eclipse editor

2010-07-17 Thread DanH
You might note that there are several different versions of Eclipse you can use, and they may have different formatting policies. I know the version I got with Websphere a year ago was far worse in this regard than the vanilla version I downloaded for use with Android. On Jul 17, 5:23 pm, A

[android-developers] Re: Decent Android reference book?

2010-07-16 Thread DanH
worth, 24 hours is simply unreasonably short: there is no way Android development could be taught in 24 hours. On Jul 15, 12:44 pm, DanH danhi...@ieee.org wrote: Is there one?  I have Professional Android 2 Application Development by Meier and Teach Yourself Android Application Development

[android-developers] Re: Decent Android reference book?

2010-07-16 Thread DanH
(I mean learned Java, not learned C++) -- 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] Re: Decent Android reference book?

2010-07-16 Thread DanH
I've been a software engineer for 40 years, and have taught myself -- let's see: BASIC, assembler on 6-8 different platforms, C, C++, Java, Modula 2, Pascal, PL/I, several PL-whatever languages for IBM internal use -- all from reading the reference manuals. Even designed my own language for

[android-developers] Re: Decent Android reference book?

2010-07-16 Thread DanH
On Jul 15, 6:35 pm, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: The best reference is the documentation supplied with the sdk. If you want a better instructional book, I suggest looking at Mark Murphy's set of books, they're fairly inexpensive and he constantly updates them. You

[android-developers] Re: Decent Android reference book?

2010-07-16 Thread DanH
I do have a subscription to the CommonsWare stuff. (Got it on the recommendation of a co-worker.) I find the Acrobat format a bit difficult to read and navigate through, but so far what little I've read appears to be better than the other books. I haven't assessed whether it's suitable for my

[android-developers] Re: Hide an app from the user

2010-07-16 Thread DanH
Yeah, you're not a virus developer or bad person. So all that Android needs is an interface that will ask Is this developer a bad person? and allow what you want if the answer is no. Should be easy to implement! (I haven't delved much into the Android permissions model, but I suspect what you

[android-developers] Re: Decent Android reference book?

2010-07-16 Thread DanH
Well, the IBM manuals could be pretty dry, but there were several that were excellent. The Nutshell books generally do a good job of balancing tutorial and reference info, though the references are necessarily abbreviated. As an example of a pretty good (though far from perfect) online

[android-developers] Re: Issue with getByteArrayRegion returning LARGE byte arrays. (JNI Code)

2010-07-16 Thread DanH
First off, are you sure that imageData_in is length long? My JNI is a little rusty, but I recall that some of the JNI array ops memory map the arrays (on some platforms), tying up considerable additional pieces of address space. But I can't offhand think how that might factor in here. On Jul

[android-developers] Re: What is different between @id/android:list and @+id/android:list ?

2010-07-16 Thread DanH
In a nutshell, @id/xxx means use that pre-existing ID#. @+id/xxx means assign a new ID# to that symbol and then use the ID#. On Jul 15, 12:47 am, James Lee eso...@gmail.com wrote: Hi, everyone~ I've some test about Android ListActvity. As you know, we have to set @id/android:list as ListView

[android-developers] Re: system lock up and restarts when I start and stop my app.

2010-07-16 Thread DanH
From the symptoms I would guess that either the code is in a tight CPU loop or it's somehow consuming a lot of memory. On Jul 16, 6:40 pm, Marc gobl...@gmail.com wrote: I have this game, which is almost done. It has 1 critical bug. When the app exits and restarts, the phone goes in to super

[android-developers] Re: How to parse the html ?

2010-07-15 Thread DanH
If the data is well-formed, to the latest HTML standard, you can parse it with an XML parser. But very little HTML adheres to even the old standards. On Jul 14, 10:05 pm, zhou haitao haitaozho...@gmail.com wrote: I want to get the data  which I need from a html, how can I do it ? Thanks --

[android-developers] Re: the emulator doesnt show up

2010-07-15 Thread DanH
Did you upgrade your anti-virus? I've found that I have to turn off much of my antivirus software for the emulator to work. I have Norton, and eventually ended up turning off Insight, Antispyware, and SONAR, leaving on only the basic Antivirus. Also, under Windows (Vista) Computer/System

[android-developers] Re: how to check if the current thread is in the ui thread?

2010-07-15 Thread DanH
I mean Java. Along about 1.4 they reduced the number of exceptions by maybe a factor of 10, but that still only brought it down from hundreds to tens. On Jul 14, 7:48 am, TreKing treking...@gmail.com wrote: On Tue, Jul 13, 2010 at 9:58 PM, DanH danhi...@ieee.org wrote: You'd be amazed how

[android-developers] Decent Android reference book?

2010-07-15 Thread DanH
Is there one? I have Professional Android 2 Application Development by Meier and Teach Yourself Android Application Development in 24 Hours by Darcy/Conder. Both are mediocre at best. Neither is a decent REFERENCE, but rather they are basically structured as tutorials, without nothing in the

[android-developers] Re: LG-debug

2010-07-15 Thread DanH
http://www.lg.com/us/support/mc-support/mobile-phone-support.jsp On Jul 15, 10:46 am, ranjan ar ranjan@gmail.com wrote: Hello all, I am trying to Deploy my code from Eclipse to LG Ally mobile, I need to test it on LG Ally. My laptop wouldn't recognize the device, I need to test my code,

[android-developers] Re: Is there any way to parse JSON object into ArrayList or Map...

2010-07-14 Thread DanH
I wrote a JSON parser in Qt C++, which is kind of poor man's Java. The whole file, encode and decode, is 520 lines. Basically you just create a data structure that maps the JSON directly. Here's the reference manual: // The jsonObject is a QVariant that may be a -- // --

[android-developers] Re: Easy and fast XML Parser?

2010-07-14 Thread DanH
It should be noted that XML is really a pretty lousy language all around -- hard to code, slow/difficult to parse, bulky. For many purposes, if you have a choice, JSON is a better option if you need a human-readable notation, and there are any number of internal forms that would be better than

[android-developers] Re: Easy and fast XML Parser?

2010-07-13 Thread DanH
The choice between SAX and DOM is partly one of simplicity vs speed/ compactness, and partly a matter of what sort of consumption model you have. If you're only going to scan through the XML once, and you know what data you want, and it's pretty well formed (you know precisely what order elements

[android-developers] Re: Newbie befuddlement -- wrong text in HelloWorld type app

2010-07-13 Thread DanH
Being a veteran, I figured it was some sort of stupid error. But also being a veteran I knew that you can muddle around for a long time before you figure out such things. (It would help if the text were more like This is the default text for application .) On Jul 12, 11:43 pm, Frank Weiss

[android-developers] Re: how to check if the current thread is in the ui thread?

2010-07-13 Thread DanH
You'd be amazed how many exceptions are thrown loading a single class. On Jul 13, 5:05 pm, TreKing treking...@gmail.com wrote: On Tue, Jul 13, 2010 at 2:30 PM, Frank Weiss fewe...@gmail.com wrote: I suppose you might also try just catching the IllegalStateException which would occur if not a

[android-developers] Newbie befuddlement -- wrong text in HelloWorld type app

2010-07-12 Thread DanH
OK, just getting my feet wet (40 years of programming experience with 15 years Java, 6 months Qt on Nokia, but new to Android). I spared you folks the befuddlement over the Waiting for emulator to start hang (antivirus) and Starting: Intent hang (gotta push the right buttons) , and I'm actually

[android-developers] Suggested test device -- must it be unlocked?

2010-07-12 Thread DanH
I'm looking doing some Android development, and I'm wondering what would be a good test device, and whether it should be unlocked. My current cell service is with Verizon, and I could no doubt save several hundred if I get a Verizon phone -- is that a good idea or will I likely have problems

[android-developers] Re: Newbie befuddlement -- wrong text in HelloWorld type app

2010-07-12 Thread DanH
in my TextView. On the bright side, it sent me looking for what R is, and I learned quite a bit about the structure of an Android app as a result. On Jul 9, 4:29 pm, DanH danhi...@ieee.org wrote: OK, just getting my feet wet (40 years of programming experience with 15 years Java, 6 months Qt

[android-developers] Re: Easy and fast XML Parser?

2010-07-12 Thread DanH
Not super-fast, but javax.xml.parsers.DocumentBuilder.parse is simple to use. But of course one needs to know what to do with the parsed file afterwards. DocumentBuilder produces a org.w3c.dom.Document object which you then must navigate by working your way through the nodes or by using xpath

[android-developers] Re: Suggested test device -- must it be unlocked?

2010-07-12 Thread DanH
apps on older devices. The phone will not need to be rooted but if you want to switch between 2.0, 2.01, 2.1, or 2.2 you will need to root it. -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of DanH Sent: Monday

<    4   5   6   7   8   9