[android-beginners] Re: using an API not in the SDK

2009-03-20 Thread Mark Murphy
f not, please post to the [android-framework] or [android-porting] lists found on http://source.android.com/discuss, as those lists are somewhat more likely to get you answers to your questions. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to And

[android-beginners] Re: How to specify the length of the EditText in a Table row

2009-03-18 Thread Mark Murphy
> I have a TableLayout with a couple of TableRows. Inside a table row, > i have an EditText widget followed by a TextView widget. > > How can I make sure that each widget in the row takes equal width? android:layout_weight should work, as TableRow inherits from LinearLayout. -- Ma

[android-beginners] Re: Seems questioins here are rarely answered? Better place to post them?

2009-03-18 Thread Mark Murphy
> A quick persual reveals most questions here receive no replies. Is > anybody at Google or anywhere monitoring this group? Yes. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.

[android-beginners] Re: How to perform a HTTP request ?

2009-03-14 Thread Mark Murphy
using org.apache.http.* can be found at: http://hc.apache.org/httpcomponents-client/examples.html -- Mark Murphy (a Commons Guy) http://commonsware.com Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ You received this message

[android-beginners] Re: Update Gallery and Listview after Thread

2009-03-14 Thread Mark Murphy
r changes to the ArrayAdapter (via add(), insert(), and remove()) rather than to the underlying ArrayList. The AdapterView (Gallery or ListView) should then update automatically. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android

[android-beginners] Re: How to set a mask on an EditText widget?

2009-03-14 Thread Mark Murphy
supply it something that will validate the input on the fly. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ You received this message because you are su

[android-beginners] Re: Yet another layout question.

2009-03-14 Thread Mark Murphy
is ignored in > TableLayout. > > What options do I have? Here's one: wrap the TableLayout in a RelativeLayout. Put the Button in the RelativeLayout with android:layout_alignParentBottom="true". -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder&#x

[android-beginners] Re: Opening pdf and office file

2009-03-13 Thread Mark Murphy
her or not any such viewers exist that meet your qualifications, I cannot say. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ You received this message because

[android-beginners] Re: Real Audio

2009-03-12 Thread Mark Murphy
ifications that OpenCORE supports. If you are interested in contributing engineering work to have RealAudio in Android, I suggest you start up a thread over on the [android-platform] Google Group, as this Google Group is for introductory questions and answers for SDK developers, not firmware develop

[android-beginners] Re: Opening pdf and office file

2009-03-12 Thread Mark Murphy
ure port of Stanza, or something should be able to read them. I'm not aware of a Mobipocket reader for Android; otherwise, you could try using the Kindle editions with that. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training in Sweden -- http://www.sotrium.

[android-beginners] Re: textview '\n' not causing carraige return

2009-03-12 Thread Mark Murphy
do not know if that relates to your issue, but it's the first thing that jumps to mind... -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training in Sweden -- http://www.sotrium.com/training.php --~--~-~--~~~---~--~~ You received this message beca

[android-beginners] Re: Opening pdf and office file

2009-03-12 Thread Mark Murphy
to be releasing MS Office viewers at some point for Android. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training in Sweden -- http://www.sotrium.com/training.php --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-beginners] Re: Background Color

2009-03-11 Thread Mark Murphy
" where # is red with no transparency (100% alpha channel) in AARRGGBB format. http://developer.android.com/guide/topics/resources/available-resources.html#colorvals -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guid

[android-beginners] Re: Eclipse Landscape Emulator

2009-03-11 Thread Mark Murphy
to toggle between portrait and landscape? -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Published! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &qu

[android-beginners] Re: How-To: Display Emulator in Landscape (Sideways) View?

2009-03-11 Thread Mark Murphy
JLMG wrote: > I was over at db4o and they had a demo with the emulator displayed in > landscape (sideways) mode. > > How do you do that? - toggles you between portrait and landscape modes in the emulator. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training in Sw

[android-beginners] Re: GPS String hidden application

2009-03-11 Thread Mark Murphy
plication. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Published! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners"

[android-beginners] Re: Background Color

2009-03-11 Thread Mark Murphy
attribute on the appropriate elements of your layout XML. It can either be a simple color or a reference to a Drawable resource (e.g., PNG, gradient). -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_

[android-beginners] Re: Filling a large database causes crash

2009-03-11 Thread Mark Murphy
s yet. There's just *so* many nooks and crannies to play around in! I'll add that to my to-do list for a future edition of _Advanced Android_. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android

[android-beginners] Re: Filling a large database causes crash

2009-03-11 Thread Mark Murphy
is yes, but queries, particularly on indexed columns, should be pretty snappy. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Published! --~--~-~--~~~---~--~~ You received this message because you are

[android-beginners] Re: Filling a large database causes crash

2009-03-11 Thread Mark Murphy
al use or is it only for computer viewing? Printing is perfectly fine for personal use. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Published! --~--~-~--~~~---~--~~ You received this message

[android-beginners] Re: Filling a large database causes crash

2009-03-11 Thread Mark Murphy
rr) -- I'll be trying to do that again later this week. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ You received this message because you are subsc

[android-beginners] Re: Real Audio

2009-03-11 Thread Mark Murphy
AA wrote: > According to the Specs it should support Real Audio formats?!?! Which specs are these? The Android "specs" with respect to media formats can be found here: http://developer.android.com/guide/appendix/media-formats.html -- Mark Murphy (a Commons Guy) http://commons

[android-beginners] Re: Intercepting web browser clicks

2009-03-11 Thread Mark Murphy
this information, but > given that the phone's browser and my service are completely different > applications, I doubt that the service can get any information about > the browser's clicks. Correct -- for security reasons, what you are asking to do should not be possib

[android-beginners] Re: Filling a large database causes crash

2009-03-10 Thread Mark Murphy
> At the moment I am running the 9000 inserts, 1 after another in a > thread. Are there any other suggestions? Use transactions. The heap problem is probably due to SQLite holding everything in transaction buffers. You might, say, do a transaction for every 100 entries or so. -- Mark Murphy

[android-beginners] Re: webview resetting to index.html when changing orientation

2009-03-08 Thread Mark Murphy
definitely running. If you search: rotational forces android in Google, you can get to the cached copies, or to some sites that ripped off the posts. FWIW, that same material is in my Android book. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- M

[android-beginners] Re: webview resetting to index.html when changing orientation

2009-03-08 Thread Mark Murphy
ossibilities with respect to handling rotation events: http://androidguys.com/?s=rotational+forces -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training in Sweden -- http://www.sotrium.com/training.php --~--~-~--~~~---~--~~ You received this me

[android-beginners] Re: What's the trick to making ProximityAlerts work?

2009-03-07 Thread Mark Murphy
lert sample. I'll see if I can work that into _Android Programming Tutorials_, though. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training in Sweden -- http://www.sotrium.com/training.php --~--~-~--~~~---~--~~ You received this message because

[android-beginners] Re: What's the trick to making ProximityAlerts work?

2009-03-07 Thread Mark Murphy
the target location before you will get an alert. Also, FWIW, the radius is in meters. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training in Sweden -- http://www.sotrium.com/training.php --~--~-~--~~~---~--~~ You received this message beca

[android-beginners] Re: WebKit

2009-03-07 Thread Mark Murphy
tell me what I am missing? Google's home page requires Javascript, and Javascript is disabled by default. getSettings().setJavaScriptEnabled(true); on your WebView should clear up your problem. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder&#x

[android-beginners] Re: Java

2009-03-07 Thread Mark Murphy
kick-started. But, yes, so long as you are buying a new book, it should be Version 2.0, with the green cover. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~--

[android-beginners] Re: AlertDialog does not show

2009-03-07 Thread Mark Murphy
Tommaso wrote: > The problem is that the dialog does't show! You might try a simpler case and build up from there. For example, get rid of the regular expression match. If it then starts working, you know your issue is with the regular expression, not with AlertDialog. -- Mark M

[android-beginners] Re: Images from URL into Lists

2009-03-04 Thread Mark Murphy
. Also, forgive the formatting, as AndroidGuys moved to a new host and so some of my old postings are a bit messed up. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule

[android-beginners] Re: Java

2009-03-04 Thread Mark Murphy
ch Java. There are books (e.g., _Head First Java_), Web sites (e.g., java.sun.com), and various other resources for Java, though, so you should have no problems finding something you find suitable. > I am Very glad to meet you. Likewise! -- Mark Murphy (a Commons Guy) http://commonsware.com

[android-beginners] Re: How to deploy *.APK files / Applications - not via USB

2009-03-04 Thread Mark Murphy
ortunately, I don't know any by name. Assuming your device has WiFi, you would need to be able to download the APK off of a Web site that is properly configured vis a vis MIME type, in which case the APK will install. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's

[android-beginners] Re: Java

2009-03-04 Thread Mark Murphy
EE are in their class libraries, not the language itself. Android is closest to JavaSE, IMHO. > I am awaiting androd book to make a start If it's mine, thanks! ;-) -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Ve

[android-beginners] Re: Taking Screen Shots

2009-03-02 Thread Mark Murphy
Joseph Arceneaux wrote: > Does anyone know how to generate a screen shot on the G1? I do not believe there is a means do to this on the device itself. The development tools that accompany the SDK (namely DDMS) allow you to take screenshots of an attached device. -- Mark Murphy (a Commons

[android-beginners] Re: gadget

2009-03-02 Thread Mark Murphy
Mr.No wrote: > it is possible to put your own app on the android desktop? Not with the default home application. There are others under development that will support custom home screen gadgets. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to

[android-beginners] Re: detecting network connections

2009-03-02 Thread Mark Murphy
oup (the NYC Android Developer's Group) to be duly > impressed. I'll let you know. :-) Glad to hear it worked! -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Published! --~--~-~--~~~--

[android-beginners] Re: detecting network connections

2009-03-01 Thread Mark Murphy
The android.net package is probably your friend, at least for the first part. ConnectivityManager#getActiveNetworkInfo() returns a NetworkInfo. NetworkInfo#getState() will tell you if you are CONNECTED. On the second part, I'd find the Intent that launches the wireless settings activity and

[android-beginners] Re: findViewById return null

2009-02-27 Thread Mark Murphy
Is there a way to retrieve my image > button using findViewById in my View class? Without any source code or layouts to go by, it is extremely difficult to understand what it is you are trying to do. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Androi

[android-beginners] Re: Development in XP or Vista.

2009-02-27 Thread Mark Murphy
mylikesnever...@gmail.com wrote: > Can i Develop Android Applications on Windows xp? Absolutely! -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ You recei

[android-beginners] Re: Skip object in BasicAdapter / CustomListAdapter

2009-02-27 Thread Mark Murphy
d have getCount() return 5 instead of 6 (since you are only drawing 5) and have getItem(), getView(), etc. know to subtract 1 from the supplied position if the supplied position > 2. It would be far simpler to just remove the offending item from the list in the first place, if possible. -- Mark

[android-beginners] Re: where are the apk located

2009-02-26 Thread Mark Murphy
with the -wipe-data switch, which will restore the emulator to its original state when you first started using it. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~--

[android-beginners] Re: Start up

2009-02-24 Thread Mark Murphy
com/guide/tutorials/hello-world.html http://developer.android.com/guide/tutorials/views/index.html http://developer.android.com/guide/tutorials/notepad/index.html I maintain an Android programming knol with more resources: http://knol.google.com/k/mark-murphy/android-programming If you have specific

[android-beginners] Re: I really need help with Android and I guess to some degree Java.

2009-02-23 Thread Mark Murphy
ethod are, how to use collections like List, etc., work on Android. In the end, this is no more difficult than an all-in-one package...except you have to get your hands on two things, rather than one. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android

[android-beginners] Re: How to pass an HttpClient instance to another activity ?

2009-02-23 Thread Mark Murphy
idea -- be sure to set up the HttpClient for multithreaded use, as demonstrated here: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/examples/org/apache/http/examples/client/ClientMultiThreadedExecution.java (or http://tinyurl.com/dhu9up if that URL is too long) -

[android-beginners] Re: New to Android/Java, Creating a Test Program

2009-02-22 Thread Mark Murphy
u are now, but you will be able to then see the value from updateCounter(). -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ You received this message because yo

[android-beginners] Re: Using Keytool

2009-02-22 Thread Mark Murphy
ning a Maps API key can be found here: http://developer.android.com/guide/topics/location/geo/mapkey.html -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training in Sweden -- http://www.sotrium.com/training.php --~--~-~--~~~---~--~~ You received this message bec

[android-beginners] Re: New to Android/Java, Creating a Test Program

2009-02-22 Thread Mark Murphy
ublic void run() { updateCounter(); } }; Then, it is merely a matter of updateCounter() calling postDelayed() to re-schedule the Runnable, until your counter hits 500. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder'

[android-beginners] Re: Online Android Programming courses

2009-02-17 Thread Mark Murphy
sort of moderation queue; emailed posts appear to get published fairly quickly. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ You received this message becau

[android-beginners] Re: Option to make your application the default for said activity

2009-02-16 Thread Mark Murphy
Ben Williamson wrote: > New question, does anyone know how to hook into the systems long click > default action for text boxes I'm pretty sure this is not allowed. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20

[android-beginners] Re: Unable to check correct row when using CheckedTextView

2009-02-15 Thread Mark Murphy
else > cbox.setChecked(true); > > v.refreshDrawableState(); > } > Don't use findViewById() to attempt to find something in rows in a ListView. After all, if you have 20 visible rows, you will have 20+ views named R.id.title. If th

[android-beginners] Re: Best way to parse [KX]ML in Android?

2009-02-15 Thread Mark Murphy
r should I go straight to a > third party parser? If the latter, any suggestions as to which one to use? For XML in general, you have DOM, SAX, and the XmlPullParser built into Android. I am not aware of a built-in KML parser, but I haven't gone looking for one, either. -- Ma

[android-beginners] Re: Loosing ability to find view by id after orientation change

2009-02-15 Thread Mark Murphy
ling findViewById() on the current activity or View, not one from before the rotation. For more, here's a series of blog posts on rotation events: http://androidguys.com/?s=rotational+forces Hopefully, that will clear up your issue. -- Mark Murphy (a Commons Guy) http://commonsware.com A

[android-beginners] Re: open sms database.

2009-02-14 Thread Mark Murphy
abase and store each received sms > message to a string. >From an application, you can't do that, for security reasons. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training in Sweden -- http://www.sotrium.com/training.php --~--~-~--~~~---~--~

[android-beginners] Re: How to control the height on an individual entry in a ListView widget?

2009-02-13 Thread Mark Murphy
way you want. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Published! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners&

[android-beginners] Re: How to control the height on an individual entry in a ListView widget?

2009-02-13 Thread Mark Murphy
;. So, if you want to change the height of the row, you have to change it on the row, not in ListView. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Published! --~--~-~--~~~---~--~~ You rec

[android-beginners] Re: MapViews with EditText and Overlays?

2009-02-13 Thread Mark Murphy
Faber Fedor wrote: > Other applications (Locale, Wikitude, etc.) are doing it so it can be > done. I'm trying to figure out how. I thought a geoIntent was the way > to go. Apparently not. My guess is that they are using Fire Eagle or some other geocoding service. -- Mark Mur

[android-beginners] Re: MapViews with EditText and Overlays?

2009-02-13 Thread Mark Murphy
need to go out and put the source code to Maps in my app or is > there something I should subclass? You can't put the source code to Maps in your app, as that piece is not open source, IIRC. If you already have a MapView, just recenter the map on the point you want. Or am I missing somethin

[android-beginners] Re: MapViews with EditText and Overlays?

2009-02-13 Thread Mark Murphy
a sexy GUI. I'm probably the anti-Romain Guy in that respect... ;-) -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training in Sweden -- http://www.sotrium.com/training.php --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-beginners] Re: connect to existing database (mails database)

2009-02-13 Thread Mark Murphy
themakos wrote: > i found the db in which emails are stored. AFAIK, you cannot access that database on an actual Android device (or possibly even the emulator), due to security restrictions. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16

[android-beginners] Re: Need Some Help

2009-02-12 Thread Mark Murphy
n about android programing. I maintain a Knol on the topic: http://knol.google.com/k/mark-murphy/android-programming It includes pointers to various Android development resources. Of course, I'm fond of my books, but there are plenty of other books and other places to learn Android that are

[android-beginners] Re: Pausing threads in onPause and resuming in onResume?

2009-02-11 Thread Mark Murphy
er thanks to yourself! Again, I apologize for my tone. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You received this message because you are subscri

[android-beginners] Re: Pausing threads in onPause and resuming in onResume?

2009-02-11 Thread Mark Murphy
ackground threads significantly. You might consider _Java Concurrency in Practice_, or at least some of the material on that book's wiki: http://artisans-serverintellect-com.si-eioswww6.com/default.asp?W1 Or, anything else you can find by Doug Lea, patron saint of Java threads. -- Mark Murph

[android-beginners] Re: Pausing threads in onPause and resuming in onResume?

2009-02-11 Thread Mark Murphy
esn't happen, as far as work is concerned. This means that threads should not hold state. My personal preference is the job queue pattern: threads pull jobs off a LinkedBlockingQueue, block on the queue if the queue is empty, and exit the queue-blocking loop if they get a "kill job"

[android-beginners] Re: Pausing threads in onPause and resuming in onResume?

2009-02-11 Thread Mark Murphy
long-running background work into a Service, and use a LinkedBlockingQueue to control what work gets done. When the threads need to stop due to onPause(), I just post an object on the queue that indicates "yo! thread! stop!", and the thread drops out of the pull-the-work-off-the-queue loop at

[android-beginners] Re: Copy File to file system

2009-02-11 Thread Mark Murphy
an output stream for your destination file. From there, it's a standard Java I/O copy operation: http://www.exampledepot.com/egs/java.io/CopyFile.html -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/

[android-beginners] Re: g 1 accelerometer

2009-02-11 Thread Mark Murphy
orManager and SensorListener. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

[android-beginners] Re: Fullscreen webview - why is that

2009-02-11 Thread Mark Murphy
me page as it should, pointing me to that it has to be something > in the code... Can you confirm that the code is okay? Nothing else seems odd. Do you have the INTERNET permission in your manifest? -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- M

[android-beginners] Re: Adding a new package to the source

2009-02-11 Thread Mark Murphy
Wick wrote: > I'm working with the android source and trying to add a new package, You will probably have better luck getting answers over on one of the lists aimed at firmware development: http://source.android.com/discuss -- Mark Murphy (a Commons Guy) http://commonsware.com

[android-beginners] Re: Can ListActivity include other controls?

2009-02-10 Thread Mark Murphy
r just extend the > Activity class and add all these controls? Either works. There's no finagling involved in the former -- just set up a layout, with one ListView with the proper android:id and any other widgets you so desire. -- Mark Murphy (a Commons Guy) http://commonsware.com Android T

[android-beginners] Re: Detect rotation of device

2009-02-10 Thread Mark Murphy
XXL wrote: > can the rotation be simulated in the programming IDE? - -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training in Sweden -- http://www.sotrium.com/training.php --~--~-~--~~~---~--~~ You received this message because you

[android-beginners] Re: Fullscreen webview - why is that

2009-02-10 Thread Mark Murphy
y default. Add: wv.getSettings().setJavaScriptEnabled(true); With respect to fullscreen, Android doesn't do fullscreen by default. Here's a blog post on the topic, with many comments from the core Android team pointing out how I'm a moron ;-): http://androidguys.com/?p= -- Mark Murphy

[android-beginners] Re: Trying to Build Term.apk

2009-02-10 Thread Mark Murphy
be able to get better assistance than what I can provide here. This is a fine list if you are working on a pure application, though, and have questions. For example, if you wanted to work on font colors for ConnectBot (SSH terminal, a third-party open source app) and ran into trouble with the SDK API

[android-beginners] Re: Records not loading from database in listview

2009-02-10 Thread Mark Murphy
> Any chance I could get some help on this please? The way to loop through a Cursor is: c.moveToFirst(); while (!c.isAfterLast()) { // do stuff here c.moveToNext(); } (I may be slightly off in my method names, as I am not in front of the SDK docs right now). -- Mark Murphy

[android-beginners] Re: packaging to a jar file

2009-02-10 Thread Mark Murphy
residing in a JAR will need to accept resource IDs as part of its public API, so the application using the JAR can supply appropriate resource IDs from the hosting APK. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerd

[android-beginners] Re: doing something useful in splash

2009-02-10 Thread Mark Murphy
t allowed. Mostly because Intents might cross process boundaries, so Android has to be able to parcel up the Intent and unpack it as needed. That's OK for things implementing Parcelable, and you can do that on your own classes if you feel the need. -- Mark Murphy (a Commons Guy) http://commonsware

[android-beginners] Re: packaging to a jar file

2009-02-10 Thread Mark Murphy
will still need it to compile your .aidl files into stubs. Otherwise, package things as normal. The resulting JAR can then be used by some other Android project as part of building its APK. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar

[android-beginners] Re: Getting data from a server

2009-02-10 Thread Mark Murphy
d via the Internet. A common approach nowadays is to write a Web service, perhaps one with a RESTful API. On the Android side, you would then use one of the built-in HTTP libraries (e.g., Apache's HttpClient) to consume the Web service. -- Mark Murphy (a Commons Guy) http://commonsware.com An

[android-beginners] Re: doing something useful in splash

2009-02-09 Thread Mark Murphy
if it determines that it does not need to do the might-be-slow step, it might hide the splash screen if the splash screen was set to automatically show via the layout. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android

[android-beginners] Re: doing something useful in splash

2009-02-09 Thread Mark Murphy
the splash screen into the main activity is that it simplifies dismissing the splash screen the instant it is no longer needed. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Published! --~--~-~--~~---

[android-beginners] Re: How to convert base64 to image?

2009-02-09 Thread Mark Murphy
ple code for > converting base64 string to image. There are many many examples online of converting Base64 into a byte array. Search on: base64 java byte[] in Google. Then, write the byte[] to a file with the appropriate extension given whatever format the image is in (PNG, GIF, etc.). --

[android-beginners] Re: Notification about GPS and GPRS access

2009-02-09 Thread Mark Murphy
ill appear in the status bar when the GPS is in use, and GPS can be turned off by the user (e.g., airplane mode). The general rule of thumb is: Android isn't designed to support "without any notification to the user", particularly when those things have cost or privacy ramificat

[android-beginners] Re: Android and USB

2009-02-09 Thread Mark Murphy
firmware level, yes, but questions about firmware are probably best asked on a firmware-related list: http://source.android.com/discuss -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training in Sweden -- http://www.sotrium.com/tra

[android-beginners] Re: Which View is the Android Main Menu?

2009-02-07 Thread Mark Murphy
le in future editions of Android. It is called com.android.internal.widget.SlidingDrawer, so you can examine the source code for it via http://source.android.com. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerd

[android-beginners] Re: Beginners headache error

2009-02-07 Thread Mark Murphy
rror log via adb logcat, DDMS, or Eclipse -- the error messages in there may give you additional clues. If you can't determine the problem, post the error information and your activity class. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 1

[android-beginners] Re: N810 running Android is seen as external drive, but it's not accessible

2009-02-05 Thread Mark Murphy
device. Why isn't > the phone accessible as a drive? I need to access it to add more apps, > it is pretty useless at the moment. These questions are probably best addressed to the team porting Android to the N810, where you got your install files and instructions from. -- Mark Murp

[android-beginners] Re: basic doubts on andriod

2009-02-05 Thread Mark Murphy
opment of Android applications, not those involving firmware modifications such as you are describing. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Published! --~--~-~--~~~---~--~~ You re

[android-beginners] Re: Camera Preview Sizing

2009-02-04 Thread Mark Murphy
ested exception in the constructor of the View in question. Is there another exception stack trace, flagged as "Caused by", below this one in your error log? -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Deve

[android-beginners] Re: sql query

2009-02-03 Thread Mark Murphy
COLUMN_INTEREST_POINT+"="+returnThis,null, > null, null, null, null); If you have a query that works fine in sqlite3, switch from query() to rawQuery() and just use the one you have working. -- Mark Murphy (a Commons Guy) http://commons

[android-beginners] Re: help with onClickListener

2009-02-03 Thread Mark Murphy
Zi Yong Chua wrote: > Thanks Murphy, sorry i am a noob, just started using Eclipse to > programme on Android. May I ask how do i access the error log? I usually use DDMS: http://code.google.com/android/reference/ddms.html I don't use Eclipse and so cannot provide you advice there

[android-beginners] Re: help with onClickListener

2009-02-02 Thread Mark Murphy
r_shark.this, game_ui.class); Though, in the future, if you could post the exception in your error log, that would help us identify the source of your problem. You can get the error log via adb logcat, DDMS, or Eclipse. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide

[android-beginners] Re: Way Too Buggy

2009-02-02 Thread Mark Murphy
lowing the tutorials for non-Eclipse use, at least until you get things going. Then, try switching back into Eclipse if you choose. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule

[android-beginners] Re: blank item in spinner

2009-02-02 Thread Mark Murphy
and inject the EditText yourself. An Option That Will Work, But Isn't What You Asked For: Put a checkbox to the side of the spinner. Put an EditText in the same spot as the spinner, but initially invisible. Based on the checkbox toggle, hide the spinner and show the EditText (or vice versa).

[android-beginners] Re: startSubActivity -- not found

2009-02-01 Thread Mark Murphy
startSubActivity() is now startActivityForResult(). -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Published! --~--~-~--~~~---~--~~ You received this message because you are

[android-beginners] Re: Why doesn't this add an ID in r.java

2009-01-31 Thread Mark Murphy
imply try deleting R.java and let it rebuild. You should not have to do this, but it may work for now and may give you some clues as to what is going wrong with your build environment. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_

[android-beginners] Re: how to move from one screen to another ?

2009-01-31 Thread Mark Murphy
yone help with that? What is the error as reported in the error log? (adb logcat, DDMS, or Eclipse to examine the log) -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~-

[android-beginners] Re: How to increase storage space in the emulator?

2009-01-31 Thread Mark Murphy
make sure there is enough physical space on your PC/Mac. Then, try running emulator -wipe-data, to launch the emulator with clean disk images, and see if that helps. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ V

[android-beginners] Re: How to increase storage space in the emulator?

2009-01-30 Thread Mark Murphy
w better to store your data. If it does not fit in the emulator, it may not fit on a real device. So, for example, large files should go on the SD card, not in an application's own private files area. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Gu

[android-beginners] Re: R.java file is not getting updated

2009-01-30 Thread Mark Murphy
Ashwani Rao wrote: > HI, > > I have created xml file for UI. > I later added identifiers (@+/id) to few elements but the R.java file > is not getting updated. There are many possible causes for this. Can you post the layout XML file? -- Mark Murphy (a Commons Guy) http://

<    5   6   7   8   9   10   11   12   13   14   >