[android-developers] Re: Reporting Exceptions

2009-01-05 Thread Mark Murphy
" where a user could at least go back and see > visually see what had happened This still exists in the Development.APK that's floating around the Intarwebs, and ships with the emulator (Dev Tools). However, that APK is not built into the phones. -- Mark Murphy (a Commons Guy) http://

[android-developers] Re: button response is slow on GPhone

2009-01-05 Thread Mark Murphy
Dev Phone 1. You do not need to add other listeners -- setOnClickListener() should suffice. Perhaps your button is too small, or there is something running on your device that is consuming too much of the available CPU time, or perhaps your device's touchscreen has a defect. -- Mark Murphy (a Commons G

[android-developers] Re: How do I create the type of dialog seen here -- Info + Listview

2009-01-05 Thread Mark Murphy
Pete wrote: >> Is this a default dialog type or a composite that I need to roll >> myself? It is a look you will need to create yourself, AFAIK. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/sc

[android-developers] Re: Sending Mail Error

2009-01-05 Thread Mark Murphy
l one (e.g., K-9). For this blog post: http://androidguys.com/?p=3100 I tested right on a T-Mobile G1, and the code worked as described in the post. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml

[android-developers] Re: Is there a calendar service on Android ?

2009-01-05 Thread Mark Murphy
uot;API / classes" beyond whatever you would ordinarily use to interact with Google Calendar as a Web service. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Published! --~--~-~--~~~---~--~~ Yo

[android-developers] Re: Target window when launching a new web browser activity?

2009-01-06 Thread Mark Murphy
or to be. Launching several Intents to the Browser will simply suck in the interim. You might see if Steel or Opera Mini provide other options; in that case, perhaps you can recommend your users adopt one of those browsers. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder&#x

[android-developers] Re: How to use command Line Arguments in Android??

2009-01-06 Thread Mark Murphy
Asif k wrote: >Is it possible to use commandline arguments in Android ?? The Android OS does not have a command line in any conventional sense that you can make use of in an ordinary Android application. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's

[android-developers] Re: How to use command Line Arguments in Android??

2009-01-06 Thread Mark Murphy
t another application, you need a Uri to something it can handle (e.g., ACTION_VIEW on a contact Uri to view the contact, ACTION_EDIT on a contact Uri to edit the contact). -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version

[android-developers] Re: What is the best practice for finding friends that have android phones?

2009-01-06 Thread Mark Murphy
M, voice call, sticky note on monitor, postal letter, fax, carrier pigeon, etc.) for the purposes of knitting together groups for future games. If your solution needs sex appeal, use OpenID/OAuth for user accounts and Web service authentication. -- Mark Murphy (a Commons Guy) http://commonsware

[android-developers] Re: Really need to subclass MapView in MapActivity

2009-01-06 Thread Mark Murphy
listeners rather than callbacks requiring subclasses, but that's just me. plusminus has created a workalike to MapView using Open Street Map over at http://osmdroid.googlecode.com/ -- possibly you will have better luck using it. -- Mark Murphy (a Commons Guy) http://commonsw

[android-developers] Re: What is the best practice for finding friends that have android phones?

2009-01-06 Thread Mark Murphy
es general?) who might disagree with your position. Particularly if your game may involve minors. > My goal is to make it as easy as possible to create games with users > that aren't registered yet but will be registering in the future. That's a noble goal. Just don't assume y

[android-developers] Re: WebView does not load the url

2009-01-07 Thread Mark Murphy
d"; > package="myapp.android" > android:versionCode="1" > android:versionName="1.0.0"> > >android:label="@string/app_name"> > > > android:name="android.i

[android-developers] Re: WebView Behavior on Android

2009-01-07 Thread Mark Murphy
> > Correct? And possibly configuring the WebView, such as enabling Javascript. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Published! --~--~-~--~~~---~--~~ You received this message

[android-developers] Re: Send Data to the other Activity

2009-01-07 Thread Mark Murphy
uot; in Intents. Look at putExtra() and the corresponding getXXXExtra() (where XXX is some data type). -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Published! --~--~-~--~~~---~--~~ You receive

[android-developers] Re: how to reference a string resource from within another string resource

2009-01-07 Thread Mark Murphy
haps using string formats: String.format(getString(R.string.welcome), getString(R.string.app_name)); for: Welcome to %1$s -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Published! --~--~-~--~~~

[android-developers] Re: new to android

2009-01-07 Thread Mark Murphy
google wrote: > hi, > can any one suggest good way to practice android. > good books or any free applications In terms of books, I have a running list of available books up on the Android Programming knol: http://knol.google.com/k/mark-murphy/android-programming -- Mark Murphy (a Co

[android-developers] Re: How to change view for activities??

2009-01-07 Thread Mark Murphy
), supplying it a View that is already tied to your existing content view. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Published! --~--~-~--~~~---~--~~ You received this message because

[android-developers] Re: Port my iPhone game

2009-01-07 Thread Mark Murphy
ition 2. That what you're doing in the game uses APIs available to C++ code and not exclusively to Java code in Android The answer to #2 probably won't be clear until #1 is achieved. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Vers

[android-developers] Re: Is there a calendar service on Android ?

2009-01-07 Thread Mark Murphy
VA wrote: > Can't one add the > entry programmatically on the web and have it automatically sync to > device calendar. Yes. That's what I meant by "whatever you would ordinarily use to interact with Google Calendar as a Web service." -- Mark Murphy (a Commons Guy

[android-developers] Re: View/layout designer/editor

2009-01-07 Thread Mark Murphy
ake some twiddling to clean up them up for Android 1.0r2. -- 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 su

[android-developers] Re: Slide Views ( like Google Scoreboard app )

2009-01-07 Thread Mark Murphy
the AndroidGuys blog has undergone some CSS changes since the time of that post. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available! --~--~-~--~~~---~--~~ You received this message bec

[android-developers] Re: How to change view for activities??

2009-01-07 Thread Mark Murphy
) on the View, cast the result to a ViewGroup, and call removeView() on the ViewGroup with your View as the parameter. At this point, you have a disassociated View that should work with setContentView(). -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to An

[android-developers] Re: Slide Views ( like Google Scoreboard app )

2009-01-08 Thread Mark Murphy
to see covered, and I'll add it to my ever-growing list of topics to write up! And thanks for the feedback! -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Published! --~--~-~--~~~---~--~--

[android-developers] Re: Problem with list divider

2009-01-08 Thread Mark Murphy
nnel) instead of #RRGGBB and see if you get better results. -- 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

[android-developers] Re: Slide Views ( like Google Scoreboard app )

2009-01-08 Thread Mark Murphy
gt; I haven't seen examples of how to create a viewflipper object from > java and adding views to it. ViewFlipper, in the end, is just a ViewGroup, so you can add Views to it just like any other layout. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Trai

[android-developers] Re: Android Bug/Architectural Issue: How do I handle multiple versions of my own Content Provider?

2009-01-09 Thread Mark Murphy
mp the ContentProvider interface. > I agree that this needs to be improved, as there is currently no > support for components (downloading, versioning, upgrading, etc) in > Android or on the Android Market. I'm in total agreement on that point! -- Mark Murphy (a Commons Guy) http://

[android-developers] Re: Concern about application file size for publishing due to Media files

2009-01-09 Thread Mark Murphy
o /sdcard when first run. -- 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 G

[android-developers] Re: what want defineClass(...) ?!

2009-01-09 Thread Mark Murphy
namic languages that generate Java VM bytecode will need to be augmented to generate Dalvik VM bytecode. Or, use interpreters that do not generate bytecode (e.g., beanshell). -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bi

[android-developers] Re: Licensing/Protecting apps

2009-01-09 Thread Mark Murphy
give. > > More details are at http://localhost/AndroidPhoneApplications/licensing.jsp This too is a localhost URL. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~--

[android-developers] Re: Share data between activities queston

2009-01-09 Thread Mark Murphy
Wikipedia? -- 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 Developers"

[android-developers] Re: Share data between activities queston

2009-01-09 Thread Mark Murphy
runs, you might as well use SharedPreferences. If they are things that do not need to be persisted, and your application is all in one process (the default), you could just use static methods to access shared values. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Gu

[android-developers] Re: Share data between activities queston

2009-01-09 Thread Mark Murphy
Evgeny V wrote: > SharedPreferences is private data per activity. I tried to store persist > data from activity A but can't read it from activity B. > Missed I something? SharedPreferences are not private per activity. -- Mark Murphy (a Commons Guy) http://commonsware.com Andro

[android-developers] Re: any other method

2009-01-10 Thread Mark Murphy
Faber Fedor wrote: > http://commonsware.com/Android/index.html > > (Not affiliated, just a happy buyer.) Thanks for the shout-out! -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version

[android-developers] Re: JSON easy Marshall/Unmarshall

2009-01-10 Thread Mark Murphy
Set(0); >public ArrayList list = new ArrayList (); > } > > > The only other thing I can think of is plain socket/byte based > communications, and building the data structures painfully on the > client/server - just like in C. Apache Thrift works on Android, at least in

[android-developers] Re: JSON easy Marshall/Unmarshall

2009-01-10 Thread Mark Murphy
sing Thrift binary packaging over HTTP. -- 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 subscribed to the Google Groups "

[android-developers] Re: Parsing Special Characters with SAX Parser

2009-01-10 Thread Mark Murphy
- One with "amp; Bar" I had expected perhaps two text nodes and an EntityReference or something, but my DOM-fu is weak, so perhaps this is the proper result. If this same pattern affects SAX, it may be you are getting several text nodes but are only paying attention to the first. -- Mark

[android-developers] Re: SQLite in WebView, is it possible??

2009-01-11 Thread Mark Murphy
xpose relevant APIs via addJavaScriptInterface() to WebView, probably via an extension to PhoneGap. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ You recei

[android-developers] Re: WebView/Browser: How to browse files from the sdcard?

2009-01-11 Thread Mark Murphy
s not found." > > (5) The system logs shows: > > E/browser ( 239): onReceivedError code:-13 The requested file was not > found. > D/browser ( 239): updating cursor > > > I feel really stupid failing at something so simple, but I just don'

[android-developers] Re: HELP! (was Re: Low on space)

2009-01-11 Thread Mark Murphy
direction. > I *SO* regret installing the over-the-air patch, which removed root > access :((( Which would not have helped you one bit. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~

[android-developers] Re: WebView/Browser: How to browse files from the sdcard?

2009-01-11 Thread Mark Murphy
lready paid for a logo etc. Man that sucks ;-( > > Any idea how to work around that? Writing a ContentProvider to serve your content appears to be the standard answer. I haven't used that technique myself as yet, though. -- Mark Murphy (a Commons Guy) http://commonsware.com

[android-developers] Re: WebView/Browser: How to browse files from the sdcard?

2009-01-11 Thread Mark Murphy
How would WebView learn about this provider. I believe you feed it a URL, like: content://your.provider.here/path/to/something.html But, again, I have not tried this myself, though I recall seeing some posts in this group, and maybe a blog post, covering this technique to some degree. -- Ma

[android-developers] Re: HELP! (was Re: Low on space)

2009-01-11 Thread Mark Murphy
have 1/10 of them :((( Again, your phone probably started with ~70MB. Something with your phone (development? third-party apps? OTA update? G1/Android bugs? fussing around with root?) ate up memory in some hidden fashion. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder'

[android-developers] Re: HELP! (was Re: Low on space)

2009-01-11 Thread Mark Murphy
Stoyan Damov wrote: > On Mon, Jan 12, 2009 at 12:34 AM, Mark Murphy wrote: >> No mention of re-activation, and you would think T-Mobile would bring up >> that point, considering it would likely involve their tech support folk. > > Actually the post at > (http://forums

[android-developers] Re: HELP! (was Re: Low on space)

2009-01-11 Thread Mark Murphy
r ADP1 buyers, which is why people wrote up the ways to deal with that. Since I don't own an ADP1, I have not paid attention to the details of exactly what those instructions were, just that they existed. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder'

[android-developers] Re: Deleting resources from code

2009-01-12 Thread Mark Murphy
m, since text files compress well. You might want to examine how much space they are really consuming in your particular case -- it might not be worth worrying much about. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.big

[android-developers] Re: Running multiple user application in Android Emulator..

2009-01-12 Thread Mark Murphy
h cannot be in the emulator at one time, since they share a common Java package (com.commonsware.android). If you want them to both be installed, choose separate packages. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development

Re: BUG, TERRIBLE BUG!!! Re: [android-developers] Re: HELP! (was Re: Low on space)

2009-01-12 Thread Mark Murphy
app will not affect the Market size. -- 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 subscribed to the Google Groups &qu

[android-developers] Re: Dev Phone Warranty

2009-01-12 Thread Mark Murphy
e sort of warranty replacement. -- 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 subscribed to the Google Groups "Android D

[android-developers] Re: to know detail information about android

2009-01-12 Thread Mark Murphy
addiye wrote: > i need to know > - the file system > - the directory structure > - kernel structure > - and other useful information > Thank you for your cooperation http://source.android.com -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide

[android-developers] Re: TabHost crash in setup

2009-01-12 Thread Mark Murphy
n TabActivity is not a bug, but rather a dependency, one that might need better documentation. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training in Sweden -- http://www.sotrium.com/training.php --~--~-~--~~~---~--~~ You received this message

[android-developers] Re: TabHost crash in setup

2009-01-12 Thread Mark Murphy
skink wrote: >>> I can't seem to get a TabHost to work. I am not extending TabActivity. >> I think that is a problem. > > why? if you call TabHost's setup() it works like a charm. My apologies. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Trai

[android-developers] Re: When to put a service into a separate process?

2009-01-12 Thread Mark Murphy
e.g., you are not holding onto an Activity in some static class variable or something), then I believe your process will not be much "heavier" than the service itself, because Android will reclaim all your activities and views when it needs to. -- Mark Murphy (a Commons Guy) http://commons

[android-developers] Re: Slide Views ( like Google Scoreboard app )

2009-01-12 Thread Mark Murphy
ng. So, my guess is that Scoreboard is not using ViewFlipper for this. -- 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-developers] Re: WebView loadData and XML Parsing Question

2009-01-12 Thread Mark Murphy
even if you have to supply a garbage URL as the base (e.g., fake://oh.this.is.so.not.real). Also, try "UTF-8" instead of "utf-8". Also also, the html variable is a String, and not something else, right? -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy C

[android-developers] Re: WebView loadData and XML Parsing Question

2009-01-12 Thread Mark Murphy
es with the implementation of the simpler loadData() method. I need to look at the source for that sometime... -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Published! --~--~-~--~~~---~--~~ Y

[android-developers] Re: TabHost crash in setup

2009-01-12 Thread Mark Murphy
ve us some exception information, and let's see if we can solve your problem. -- 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

[android-developers] Re: TabHost crash in setup

2009-01-13 Thread Mark Murphy
> So out of curiosity, if it doesn't create the children views, anyone > know what the call to setup() does? Here's the TabHost source code: http://tinyurl.com/9mpt5e Mostly, setup() seems to hook up to various events. -- Mark Murphy (a Commons Guy) http://commonsware.com _

[android-developers] Re: ArrayAdapter / spinner help

2009-01-13 Thread Mark Murphy
drawings.setAdapter(adapter);//this is where it bombs out and i > have to close the application 1. Have you called setContentView() before your call to findViewById()? 2. Does your layout have a Spinner element with android:id="@+id/spinner_drawings"? -- Mark Murphy (a Commons Guy) http:

[android-developers] Re: ArrayAdapter / spinner help

2009-01-13 Thread Mark Murphy
nested call, deeper in the innards of Android, triggered by the statement you pointed out, then spinner_drawings is not null, and something else is afoot. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-

[android-developers] Re: Performance Problem with ListView / Styled TextView

2009-01-14 Thread Mark Murphy
itle()); > <-- You might consider using a ViewHolder or ViewWrapper pattern here. Check out my Fancy ListViews blog post series on AndroidGuys for more: http://androidguys.com/?s=fancy+listviews -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ra

[android-developers] Re: How to set the permission to open a dev fd?

2009-01-14 Thread Mark Murphy
://source.android.com/discuss This list is aimed at "above the SDK level" questions. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You re

[android-developers] Re: Perl on Android Emulator

2009-01-14 Thread Mark Murphy
Puneet Bhatia wrote: > I want to run Perl script on Android Emulator but when I tried to do > that, I got error, "Perl : command not found". > Can you please guide me how I can use Perl on emulator. Perl is not a supported Android development language. -- Mark Murphy (

[android-developers] Re: Creating gradients on a view/layout in xml.

2009-01-14 Thread Mark Murphy
shape="rectangle"> Then, it's just a drawable, so you can use it like any other drawable (e.g., @drawable/yournamehere as, say, android:background). There are other gradient XML files in ApiDemos (look in res/drawable). -- Mark Murphy (a Commons Guy) http://commonsware.

[android-developers] Re: difference in android SDK version 0.9beta and 1.0

2009-01-15 Thread Mark Murphy
ore so than the older M5 SDK was with 0.9. -- 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

[android-developers] Re: Dependency injection into Activity

2009-01-15 Thread Mark Murphy
h client frameworks. Hence, rather than trying to convince us that the core Android team ought to build DI into Android, why not build DI yourself? Code is more compelling than words in situations like this. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on

[android-developers] Re: android.database.sqlite.SQLiteConstraintException: error code 19

2009-01-15 Thread Mark Murphy
the moment the documentation lacks a > signle word about SQL Exceptions and the error codes they throw. Yeah, some of the SQLite exceptions are not very informative. For me, "error code 19" means I failed a constraint, such as forgetting to supply a non-NULL/no-default value on an

[android-developers] Re: android.database.sqlite.SQLiteConstraintException: error code 19

2009-01-15 Thread Mark Murphy
Mark Murphy wrote: > mobilek...@googlemail.com wrote: >> Hi, >> >> Has anyone come across this one: >> android.database.sqlite.SQLiteConstraintException: error code 19. It >> gets thrown on 'insert', 'update' and 'delete' s

[android-developers] Re: Dependency injection into Activity

2009-01-15 Thread Mark Murphy
he initial code can come in the form of an existing DI framework that can be trimmed down to work in Dalvik. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~

[android-developers] Re: Query about Content Provider queries...

2009-01-15 Thread Mark Murphy
aren't overloaded query methods that allow > for > certain arguments, as there are with the SQLite packages (e.g. having a > boolean for DISTINCT). Again, content providers do not need to use SQLite as a data store. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Bus

[android-developers] Re: JPF : Java plugin framework on Android

2009-01-15 Thread Mark Murphy
his (versioning, getting plugins installed, identifying available plugins), but the basic plumbing is already there. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~--

[android-developers] Re: Query about Content Provider queries...

2009-01-15 Thread Mark Murphy
uot;, "OPTIONAL", and "approved", none of which might line up with your near-term objectives... -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~

[android-developers] Re: How to have two different fonts within the same ListView item?

2009-01-15 Thread Mark Murphy
ws and a blog post on how to use TrueType fonts: http://androidguys.com/?p=656 -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ You received this message be

[android-developers] Re: application removal notification

2009-01-15 Thread Mark Murphy
nremoval. >> is it possible? AFAIK, your application is not informed when it is to be removed. After all, if the user is trying to remove your application, the user probably does not want your application to be running. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's

[android-developers] Re: application will crash when G1 changed to landscape display

2009-01-15 Thread Mark Murphy
in there corresponding with your crash. You can access the error log via adb logcat, DDMS, or the Eclipse equivalent. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ You

[android-developers] Re: application will crash when G1 changed to landscape display

2009-01-15 Thread Mark Murphy
d UI. > What would be a "thread safe" way to update android UI? You have many options, including: -- Use a Handler -- Use View#post() or View#postDelayed() -- Use Activity#runOnUiThread() The latter options most closely resemble invokeLater(). -- Mark Murphy (a Commons Guy) h

[android-developers] Re: UI Freezing Issue

2009-01-16 Thread Mark Murphy
id, I am not sure you want to join with the background thread. That ties up the UI thread until the background thread is done, which is not what you want. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-

[android-developers] Re: UI Freezing Issue

2009-01-16 Thread Mark Murphy
t this was > the best way to do it. That would imply each thread gets scheduled and processed in sequential order, which is not guaranteed. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml

[android-developers] Re: why people claim the function onCreate public?

2009-01-16 Thread Mark Murphy
); > ..} > > Is that uncommon? You can always relax the protection on a method, but you cannot increase it. So, you can override a protected method with a public one, but you cannot override it with a private one, for example. -- Mark Murphy (a Commons Guy) http://commonsware.com Andr

[android-developers] Re: P2P Android

2009-01-17 Thread Mark Murphy
Tez wrote: > I want to establish a p2p connection between 2 android devices. Is > this possible. If yes, how can i do it? 1. Please don't cross-post to multiple lists at once. 2. Find yourself a Java P2P toolkit (e.g., JXTA) and start from there. -- Mark Murphy (a Common

[android-developers] Re: Recognising when an app is "closed"

2009-01-17 Thread Mark Murphy
t; pressed, however is there a method called which signifies a user has > "left" the application and started another/returned to the home > screen? onPause() -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training

[android-developers] Re: How to handle orientation changing of VideoView/MediaPlayer?

2009-01-17 Thread Mark Murphy
et of posts up on AndroidGuys on this topic: http://androidguys.com/?s=rotational+forces -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You recei

[android-developers] Re: mono on android

2009-01-17 Thread Mark Murphy
ive/2009/Jan-05-1.html -- 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 Googl

[android-developers] Re: Recognising when an app is "closed"

2009-01-17 Thread Mark Murphy
quot;an entire Activity" you really mean "an entire application", so long as all the components are in the same process, and so long as you use loose coupling so garbage collection isn't impeded, you can communicate among collaborating activities however you wish. -- Mark Mur

[android-developers] Re: Stackable Tabs?

2009-01-17 Thread Mark Murphy
mscwd01 wrote: > If there is such a "StackedTab" view out there it would be helpful, > dont know how it would be implemented though... ViewFlipper might be a good starting point for creating one. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder&#x

[android-developers] RotateAnimation, pivoting about the center

2009-01-17 Thread Mark Murphy
Y value works right with 20 and not 10, I have no idea, but this almost rotates the image about the center, with a slight oscillation effect. So...where am I going wrong? Thanks in advance! -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Developme

[android-developers] Re: RotateAnimation, pivoting about the center

2009-01-17 Thread Mark Murphy
nimation was standalone, so I doubt the AnimationSet is the culprit. Thanks for the input! -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ You received this mess

[android-developers] Re: RotateAnimation, pivoting about the center

2009-01-18 Thread Mark Murphy
the problem: once I get rid of the padding* attributes, it rotates just fine. So, as you indicated, RotateAnimation rotates the whole view, which *includes* padding. Thanks again for your help! -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training in Sweden -- http://www.so

[android-developers] Re: RotateAnimation, pivoting about the center

2009-01-18 Thread Mark Murphy
toward using shims or something to set my position. -- 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 Groups &q

[android-developers] Re: RotateAnimation, pivoting about the center

2009-01-18 Thread Mark Murphy
padding is 'transparent' and it > just works fine - you will only see your image rotating Ah, yeah, good point. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~-

[android-developers] Re: Is it possible to create an "activity" instance using constructor like a common Java class?

2009-01-18 Thread Mark Murphy
ne tell me is it possible? No, that is not possible. -- 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 Gro

[android-developers] Re: Is it possible to create an "activity" instance using constructor like a common Java class?

2009-01-19 Thread Mark Murphy
se impede their garbage collection), there's nothing to prevent multiple activities from sharing a common utility class. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Published! --~--~-~--~~~-

[android-developers] Re: error in creating object of FileTransferManager manager

2009-01-19 Thread Mark Murphy
ere any permissions requires for transferring the file, if what > is the error. > > What is solution for this. Look at your error log, via adb logcat, DDMS, or Eclipse, and see what the error is. If you see something akin to "Socket Exception -1", be sure to add the INTERNET

[android-developers] Re: layout editor orientation dropdown.

2009-01-19 Thread Mark Murphy
opdown box. Oh. Eclipse. Not sure how to help you, then. -- 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 t

[android-developers] Re: HTTP Client........SocketException

2009-01-19 Thread Mark Murphy
Pratap wrote: > I'm working behind proxy, whenever i send a req using HTTPclient i > get a SocketExceptionDoes anybody knows how to solve this > problem... Do you have the INTERNET permission enabled in your AndroidManifest.xml file? -- Mark Murphy (a Com

[android-developers] Re: Highlight an Item In listactivity

2009-01-19 Thread Mark Murphy
se navigation buttons to move through the list, the selection is persistently highlighted (a "select"). -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~

[android-developers] Re: opening sample index.html from present in /sdcard in web browser

2009-01-19 Thread Mark Murphy
the AndroidManifest.xml file for the Browser, except perhaps through firmware. Moreover, I do not believe there is a setting to change this behavior, anyway. Third-party Web browsers (e.g., Steel) may or may not have this security restriction. -- Mark Murphy (a Commons Guy) http://commonsware.com

[android-developers] Re: distributing my app to friends

2009-01-20 Thread Mark Murphy
1 if they click the link to it from the G1's browser: application/vnd.android.package-archive Or you can email them the APK, give it to them on CD/SD/thumb drive, have them enter the hex bytes into DEBUG, or otherwise get them the APK. But then, they'll need the SDK or other software in order to g

[android-developers] Re: Changing package names fubars the map overlays?

2009-01-20 Thread Mark Murphy
er are confirmed to exist, then map.getOverlays() must be what's returning null. 5. Are you still inheriting from MapActivity? -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~--

[android-developers] Re: Debugging geolocations services

2009-01-20 Thread Mark Murphy
> So I log everything to file, take my Android out for a walk, come back > home, plug it in and Eclipse/DDMS will read the log file? Cool! Yup. I assume there's some limit to how much logging information is held, but I don't know what that limit is. It's fairly genero

[android-developers] Re: Changing package names fubars the map overlays?

2009-01-20 Thread Mark Murphy
atement triggered the exception, but the exception itself happened somewhere in something you called. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ You receive

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