On Wed, Jul 14, 2010 at 4:28 PM, kypriakos <[email protected]> wrote: > However, since I am importing a large > application from an > existing standard java code to Android there are cases that I am not > finding whether > what exists in standard java is generally accepted under Android and > thus > the multiple questions.
Ah, that wasn't obvious from your posts. Your posts felt like "brute force" learning, to use your term, but it wasn't clear that there was an overarching theme. > To clarify my last question, by "stalls" or "quits", I mean that I am > watching > the app execute in the DDMS console, and although I am catching > exceptions > around that particular code segment, the execution stops, no exception > is thrown and > nothing occurs thereafter. That's...very strange. > Since I can compile my complete imported app as an Android project > it makes sense that the classes and methods I used in the past > (even the System.out that we already spoke off) should be operational > under Android. Correct? Generally, yes. Android is not a pure Java SE environment, though, so "the devil is in the details". > If not, is there documentation that you may > know off that rules against such methods - for example if my problem > now is the File.createNewFile() and for some reason does not work > well under Android, is that documented somewhere or this should > not be the case and pretty much what compiles should work. I've never used createNewFile() in a decade-plus of Java development, so I can't speak specifically on it. If the method exists, there's a 99.9% chance it should work as expected. There are a few no-ops (notably in Thread for stuff that's been deprecated since the Clinton Administration), but the bigger problem tends to be things that are just flat-out missing. For those, you'll get compile errors if you're compiling from scratch, or VerifyErrors if your existing code base is in a JAR you're importing. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 Available! -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en

