[android-developers] Re: Getting a complete list of android native drawables

2009-03-20 Thread Mark Murphy
mages that you can > not > directly access. Great, thanks! -- 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-developers] Re: www.developer.android.com is gone!!!!

2009-03-21 Thread Mark Murphy
Nox wrote: > I´ve got a problem with the Android homepage, it isn´t working!!! There is no www on the Android home page. The site is: http://developer.android.com Without the www, it is working fine for me. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Train

[android-developers] Re: Can only hear sound when playing video

2009-03-21 Thread Mark Murphy
edu/cspd/contest/finalists/ If that video works, then there is something about the video you have been trying that does not work with the codecs built into Android. Post details about the video (codec, framerate, size, etc.) and perhaps somebody can point out a known reason why it does not work. --

[android-developers] Re: Can only hear sound when playing video

2009-03-21 Thread Mark Murphy
bestpriv...@googlemail.com wrote: > On 21 Mrz., 15:42, Mark Murphy wrote: >> The "Documentaries and You" video from this link definitely works for >> both sound and video: >> >> http://www.law.duke.edu/cspd/contest/finalists/ > > Thank you very much

[android-developers] Re: Retreivng data from internet source.

2009-03-21 Thread Mark Murphy
your.package.here/files > I have uses-permission> included in my Manifest, this just has to be > physically typed in right? I don't need to add it in some way. No, but it might be in the wrong spot. If you could, post both your AndroidManifest.xml that you are using with the above

[android-developers] Re: Retreivng data from internet source.

2009-03-21 Thread Mark Murphy
net/ReadFromURL.html Do you have any evidence that the code is executing (e.g., stepping through it in Eclipse, sprinkling in Log.d statements)? -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~

[android-developers] Re: OOXML MimeType application/vnd.openxmlformats-officedocument.wordprocessingml.documen t not available in android?

2009-03-21 Thread Mark Murphy
ot downloading the file via a Web server, how are you opening it? -- 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 subscr

[android-developers] Re: OOXML MimeType application/vnd.openxmlformats-officedocument.wordprocessingml.documen t not available in android?

2009-03-21 Thread Mark Murphy
AFAIK, does not have any file-extension-to-MIME-type mappings outside of the media files for which it has codecs. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~-

[android-developers] Re: Retreivng data from internet source.

2009-03-21 Thread Mark Murphy
adb pull to pull the file given the full path, IIRC. The emulator, though, should let you browse to your package (whatever the name is, shown above as my.package.here) and its contents. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Developm

[android-developers] Re: Retreivng data from internet source.

2009-03-21 Thread Mark Murphy
Ah! You're looking in your project, not in the device. Go to the DDMS perspective, and you should find a menu choice(?) for browsing the file system of the running emulator. In the standalone DDMS, it's a "File Explorer" menu choice. -- Mark Murphy (a Commons Guy) http://com

[android-developers] Re: Retreivng data from internet source.

2009-03-21 Thread Mark Murphy
and you will (hopefully) see your files. -- 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 Gr

[android-developers] Re: Getting a complete list of android native drawables

2009-03-21 Thread Mark Murphy
much more likely somebody will keep our apps around, rather than discarding them to free up space. Hence, the interest in avoiding redundant icons. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-

[android-developers] Re: Retreivng data from internet source.

2009-03-22 Thread Mark Murphy
dViewById(), assuming the layout you define in setContentView() has the widgets you're trying to access in findViewById(). -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~-

[android-developers] Re: Retreivng data from internet source.

2009-03-22 Thread Mark Murphy
murphy wrote: > I've added in also the line FileInputStream fIn = openFileInput > ("news.txt"); but I don't know what to do with it once I open it to be > able to display it in my TextView in a new screen. http://www.exampledepot.com/egs/java.io/ReadLinesFromFile.htm

[android-developers] Re: How to find Jarsigner

2009-03-22 Thread Mark Murphy
lling the JDK again from Sun. -- 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: handset error log

2009-03-22 Thread Mark Murphy
Bob wrote: > Is there a way for me to get an error report from my phone (not > emulator) about why it is force closing? With it plugged in via the USB cable, you do it the same way you would with the emulator -- adb logcat, DDMS, or the DDMS perspective in Eclipse. -- Mark Murphy (a C

[android-developers] Re: PreferenceScreen Close

2009-03-22 Thread Mark Murphy
nt onResume() in A. -- 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 Develo

[android-developers] Re: PreferenceScreen Close

2009-03-22 Thread Mark Murphy
activity's ListAdapter and see if the DataObserver gets control when screens change. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ You received this message

[android-developers] Re: PreferenceScreen Close

2009-03-22 Thread Mark Murphy
if that URL is too long for your mail client) Call getListAdapter() in your PreferenceActivity to get the adapter, then call registerDataSetObserver(), and see when the observer gets control (via logging statements or breakpoints). - Mark Murphy (a Commons Guy) http://commonsware.com Androi

[android-developers] Re: backup database

2009-03-23 Thread Mark Murphy
ay to make a backup to a > computer? You should have access to the database file, so you can transfer it via whatever mechanism you like (e.g., HTTP) to whatever destination you can reach via the Internet. I would make sure you do not have any active SQLiteDatabase objects referencing it, though.

[android-developers] Re: PendingIntent problem

2009-03-23 Thread Mark Murphy
the list for PendingIntent and you will probably find it. -- Mark Murphy (a Commons Guy) http://commonsware.com Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

[android-developers] Re: Center drawable?

2009-03-23 Thread Mark Murphy
Keith Wiley wrote: > Question: I can place a drawable png on a button no problem, but the > only placement options are along the sides. Have you tried ImageButton? -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/book

[android-developers] Re: Construct typeface object from file?

2009-03-23 Thread Mark Murphy
7;ve logged this as: http://code.google.com/p/android/issues/detail?id=2284 -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Training: http://commonsware.com/training.html --~--~-~--~~~---~--~~ You received this message because you are subsc

[android-developers] Re: Construct typeface object from file?

2009-03-23 Thread Mark Murphy
n, but there is no method on Typeface to create one from a file outside of there. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received this message because y

[android-developers] Re: Get scroll position in a list activity

2009-03-23 Thread Mark Murphy
real ones as they come in. Then, when the background thread finishes, you do not have to do anything -- the images are already loaded. This eliminates the need to "refresh the listview" and any accompanying confusing such a refresh might cause the user. -- Mark Murphy (a Commons Guy

[android-developers] Re: Cupcake coming in April? Where is the SDK?

2009-03-24 Thread Mark Murphy
rers are welcome to pull from the tree whenever they see fit. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

[android-developers] Re: Multiple ListViews in one Activity

2009-03-24 Thread Mark Murphy
ate a > different options menu listener for every listview? No. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

[android-developers] Re: Get scroll position in a list activity

2009-03-24 Thread Mark Murphy
associated thumbnails. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers&quo

[android-developers] Re: Cupcake coming in April? Where is the SDK?

2009-03-24 Thread Mark Murphy
if a device (e.g., G2) contains bits of cupcake in advance of an official cupcake-based release shipping, that was the manufacturer's decision. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~-

[android-developers] Re: HttpUrlConnection - Authentication

2009-03-24 Thread Mark Murphy
rhaps you'll see something that helps. http://www.winterwell.com/software/jtwitter.php -- Mark Murphy (a Commons Guy) http://commonsware.com Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ You received this message because you a

[android-developers] Re: ClassLoader.isAncestorOf(ClassLoader) Bug

2009-03-24 Thread Mark Murphy
o file it there. > I hope that you will be able to fix this as soon as possible and to > update the cupcake branch too. Please notify me when this is ready. If you would take the time to file this on http://b.android.com, you will automatically be notified of progress on the issue. -- Ma

[android-developers] Re: HttpUrlConnection - Authentication

2009-03-24 Thread Mark Murphy
tication is not one of its strong suits. > I > see there used to be a MultipartEntity class which was removed with > the 1.0 SDK. That looks like it might have been what I needed. Anyway > thanks again. I think others have just grabbed an edition of that from http://hc.apache.org. -- M

[android-developers] Re: Alias custom view path in XML

2009-03-24 Thread Mark Murphy
Just a "nice to have" thing. Not that I'm aware of. Otherwise, I would have expected Google to avail itself of the technique with MapView. Right now, we have to spell out the whole fully-qualified class name when putting MapView in our layouts (unless something changed on that front

[android-developers] Re: api to install update apk in private-app folder

2009-03-24 Thread Mark Murphy
ed apps)? I do not believe that is possible. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Training: http://commonsware.com/training.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

[android-developers] Re: api to install update apk in private-app folder

2009-03-24 Thread Mark Murphy
x27;s up to Android). This is what happens when you download an APK, at any rate -- I assume there is some what to trigger the same code from your own application. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Versi

[android-developers] Re: How to change the tab icon dynamically

2009-03-24 Thread Mark Murphy
con change yourself, though I have no idea if this is possible, and you would need to not use TabActivity (which, IIRC, creates its own TabHost object). You can always roll your own tab-style UI using a ViewFlipper or similar widget. -- Mark Murphy (a Commons Guy) http://commonsware.com _The B

[android-developers] Re: Multiple ListViews in one Activity

2009-03-24 Thread Mark Murphy
er, or some other means to have the lists on separate "screens" -- Using separate activities, one per list -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~--

[android-developers] Re: Localizing layouts?

2009-03-24 Thread Mark Murphy
glish portrait) The language code must precede the orientation code. -- 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

[android-developers] Re: Multiple ListViews in one Activity

2009-03-24 Thread Mark Murphy
d would have to determine what you want to do in that case. Also, you would only have one context menu. On the other hand, your scrolling would work better. >> -- Putting the lists side-by-side rather than stacked > > What do you mean with this? Left to right rather than top to bot

[android-developers] Re: Bug in UK i18n?

2009-03-24 Thread Mark Murphy
ou may be using the wrong code for UK strings. According to the ISO 3166-1-alpha-2 standard: http://www.iso.org/iso/country_codes/iso_3166_code_lists/english_country_names_and_code_elements.htm the UK would be -rGB, not -rUK. -- Mark Murphy (a Commons Guy) http://commonsware.com Warescription

[android-developers] Re: Multiple ListViews in one Activity

2009-03-24 Thread Mark Murphy
Wouter wrote: > Ok i understand. But how can i make one listview for all these > adapters. I gave you a link earlier. Here it is again: http://www.jsharkey.org/blog/2008/08/18/separating-lists-with-headers-in-android-09/ -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy C

[android-developers] Re: Multiple ListViews in one Activity

2009-03-24 Thread Mark Murphy
Wouter wrote: > Thank you! Can i put my data from the simplecursoradapter in it? It takes any sort of adapter, as far as I know. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 A

[android-developers] Re: Image from internet won't display.

2009-03-24 Thread Mark Murphy
y, any widgets you got after the first setContentView() and before the second setContentView() are unusable. Hence, your findViewById() call immediately before the setContentView() will return you a widget...but that widget is then taken off the screen by the setContentView(). -- Mark M

[android-developers] Re: Image from internet won't display.

2009-03-24 Thread Mark Murphy
ed GIF, such as a Drawable resource (e.g., res/drawable/test_image.png). -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Training: http://commonsware.com/training.html --~--~-~--~~~---~--~~ You received this message because you are subsc

[android-developers] Re: Multiple ListViews in one Activity

2009-03-24 Thread Mark Murphy
en i click on a > item in the flight list i have to open another activity then when I > click on a item in the hotel list! The same way you do with any list: call getItem() on the adapter. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Training: http://commonsw

[android-developers] Re: Multiple ListViews in one Activity

2009-03-24 Thread Mark Murphy
gt; > but now i have to detect which list it was so i have to delete it from > my flight database or hotel database! > How can i do that? > > On Mar 24, 9:34 pm, Mark Murphy wrote: >> Wouter wrote: >>> Ok i have integrated it now in my applications. It works now

[android-developers] Re: How do I pass data in an intent from an activity started from the launcher?

2009-03-24 Thread Mark Murphy
to the activity itself. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" g

[android-developers] Re: How do I pass data in an intent from an activity started from the launcher?

2009-03-24 Thread Mark Murphy
e entries in the manifest for FullFooActivity and HalfFooActivity, each with the standard launcher intent-filter 4. Use useFullScreen() to do whatever it was you were looking to handle via the customized Intent Clunky, but it works, until you can amend a home application that is more ame

[android-developers] Re: can we change the resolution of images taken by camera

2009-03-24 Thread Mark Murphy
7;t tried this, but in theory, you should be able to control the resolution this way. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: How do I pass data in an intent from an activity started from the launcher?

2009-03-24 Thread Mark Murphy
me tun wrote: > I had already tried Mark's way (great book btw) Thanks! > which does work but > isn't quite an elegant solution nor is it exactly what I'm trying to > achieve. Oh, well. In these support forums, it's win a few, lose a few. --

[android-developers] Re: How to set the video in full screen mode?

2009-03-25 Thread Mark Murphy
> only video should be there). > > Can you please tell me how to achieve this? http://androidguys.com/?p= In particular, read the comments, where I think half the core Android team jumped in to tell me how better to solve the problem... ;-) -- Mark Murphy (a Commons Guy) http://common

[android-developers] Re: DexClassLoader Feature in the Cupcake

2009-03-25 Thread Mark Murphy
t; or still to be done?? >> >>I f already included then any reference which will explain about >> how to download that cupcake source from the repo, compile that source >> and add in the current sdk. I am using windows plateform and running >> the applicatio

[android-developers] Re: Local and Remote Services

2009-03-25 Thread Mark Murphy
. AFAIK, you can call startActivity() from a service, though your users may threaten you with bodily harm if you do so, since you might be interrupting them in the middle of something else they are doing. -- Mark Murphy (a Commons Guy) http://commonswa

[android-developers] Re: android http GET 400 error

2009-03-25 Thread Mark Murphy
ers. Headers are set via setRequestProperty() with URLConnection, just as you are using it for Connection and Content-Type. -- Mark Murphy (a Commons Guy) http://commonsware.com Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ You received this

[android-developers] Re: android http GET 400 error

2009-03-25 Thread Mark Murphy
n offers any examples of accessing its content programmatically (e.g., example curl or wget commands), review those and see if there is anything obvious you are missing. Of course, the best solution is if somebody offered a Java API for accessing this Web service (e.g., JTwitter for Twitter). -- Mar

[android-developers] Re: How to display 2 ListViews on the screen at the same time

2009-03-25 Thread Mark Murphy
tAdapter(new ArrayAdapter(this, R.layout.row, > R.id.label, mStrings)); > setListAdapter(new ArrayAdapter(this, R.layout.frow, > R.id.ListView01, mStrings2)); > } > > > > This does not work. > Can anyone advise ? You cannot use the ListActivity methods for mana

[android-developers] Re: How to display 2 ListViews on the screen at the same time

2009-03-25 Thread Mark Murphy
creen at one time. -- use a Spinner for one -- use tabs to put them on separate tabs -- use ViewFlipper to flip between the two lists based on a button click or option menu choice -- use multiple activities, one list per activity -- Mark Murphy (a Commons Guy) http://commonsware.com Warescription: Th

[android-developers] Re: android http GET 400 error

2009-03-25 Thread Mark Murphy
have curl properly downloading the content, converting that into Android code (whether URLConnection or HttpClient) should be relatively straightforward. You might also inquire with whoever is hosting the server if they have any recipes for Web service access. -- Mark Murphy (a Commons Guy) http://co

[android-developers] Re: Creating multiple layouts

2009-03-25 Thread Mark Murphy
in the activity. The first you would use with setContentView(); the latter you would either supply to your adapter or use when you manually inflate the rows. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android De

[android-developers] Re: Singleton in different service which share same process

2009-03-25 Thread Mark Murphy
de of the Google Maps situation. How are you using it in your application? -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Training: http://commonsware.com/training.html --~--~-~--~~~---~--~~ You received this message because you are subs

[android-developers] Re: is video recording available in V1.1?

2009-03-25 Thread Mark Murphy
zeeshan wrote: > i am looking for video recording example, it suppose to be in api- > sample but not available > i am wondering if 1.1 release still missing this feature? Video recording is not available in the current version of Android. -- Mark Murphy (a Commons Guy) http://common

[android-developers] Re: written file not found

2009-03-25 Thread Mark Murphy
system on the > emulator but > on the device there are much more? You have all of same folders on the device; you just cannot browse them. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~-

[android-developers] Re: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Mark Murphy
ally-open-source Microsoft is into the game: https://connect.microsoft.com/content/content.aspx?ContentID=3480&SiteID=168#BM8 As one person put it, "If your bug is not reproducible it will never get fixed." (from http://www.softwaretestinghelp.com/how-to-write-good-bug-report/) --

[android-developers] Re: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Mark Murphy
d if I do that?" (from http://tinyurl.com/ct3fcf) -- Mark Murphy (a Commons Guy) http://commonsware.com Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Mark Murphy
830 and many others? Trust me, "I calls 'em as I sees 'em". I just don't tend to bash Google/OHA on these lists too much, because that will be more likely to be seen as personal attacks on the core Android team, and they aren't the source of my ire. -- Mark Murphy

[android-developers] Re: Emulator crashing

2009-03-25 Thread Mark Murphy
青铜 wrote: > I also have this question. > Every time I run HelloMapView (the example code in dev.android), I > only can see the title of the app, and the content is just black. Did you get your own Maps API key, as outlined in step #4? -- Mark Murphy (a Commons Guy) http://commonsware

[android-developers] Re: need some collection help

2009-03-26 Thread Mark Murphy
Josh wrote: > I want to store objects into an array or collection(whichever is best > suited to this in dalvik). You mean like the ones in the java.util package? > the objects are basically just VO's all of > the same class that i want to keep track of. What's a V

[android-developers] Re: written file not found

2009-03-26 Thread Mark Murphy
I thought that the adb pull is a tool for eclipse and the emulator. > how can i use that on the g1? You can't. My apologies, I thought your goal was to view the files. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy C

[android-developers] Re: Building user interfaces at runtime with layouts from server

2009-03-26 Thread Mark Murphy
if you can submit a patch yourself or directly engage with somebody who can submit a patch for you. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ You received this

[android-developers] Re: need some collection help

2009-03-27 Thread Mark Murphy
(myCar); > _cars.add(myCar2); Collection is an interface, not a class. There are about 20 or so concrete Collection classes (e.g., ArrayList) that you can choose from. http://java.sun.com/docs/books/tutorial/collections/index.html http://mindprod.com/jgloss/collection.html -- Mark Murphy

[android-developers] Re: Observation and comments on Android and "regularly" scheduled events

2009-03-27 Thread Mark Murphy
http://b.android.com with sample source code that demonstrates the problem. If you want, reply on this thread with a link to your issue. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~--

[android-developers] Re: Observation and comments on Android and "regularly" scheduled events

2009-03-27 Thread Mark Murphy
reproducing your scenario and seeing if I get similar results. To invert the Stones, "Ti-i-i-ime is not on my side (no it ain't)", but I'll hopefully be able to squeeze this in this weekend. -- Mark Murphy (a Commons Guy) http://commonsware.com Android A

[android-developers] Re: Observation and comments on Android and "regularly" scheduled events

2009-03-27 Thread Mark Murphy
even *after* you described the pattern. Heaven help me if I'd've been trying to noodle that out independently. I need another day or two to make sure I've solved clarkbriancarl's issues, then I'll write something up. Thanks! -- Mark Murphy (a Commons Guy) http:/

[android-developers] Re: Observation and comments on Android and "regularly" scheduled events

2009-03-28 Thread Mark Murphy
ember. Though I'll need to beef up my sample some for this scenario -- I was thinking the service would be long since wrapped up before the next alarm fired. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide t

[android-developers] Re: What about a virtual keyboard?

2009-03-28 Thread Mark Murphy
th Android) has got one!!! On-screen keyboards are being worked on as part of the forthcoming "cupcake" release. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~

[android-developers] Re: How to place small icon in top-right corner?

2009-03-28 Thread Mark Murphy
could wrap your top-most LinearLayout in a FrameLayout, add a RelativeLayout as a child of that FrameLayout (so it is a peer of the top-most LinearLayout), and then use the RelativeLayout to anchor the icon in the upper-left. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsgu

[android-developers] Re: Observation and comments on Android and "regularly" scheduled events

2009-03-28 Thread Mark Murphy
is, passing in a wake lock using a > naive approach of a static variable doesn't work when the service can be > started again during its runtime. That depends on what your static variable holds. ;-) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/co

[android-developers] Re: Observation and comments on Android and "regularly" scheduled events

2009-03-28 Thread Mark Murphy
Mariano Kamp wrote: > On Sat, Mar 28, 2009 at 4:37 PM, Mark Murphy <mailto:mmur...@commonsware.com>> wrote: > > Have you tried using setReferenceCounted(true) on the WakeLock? > > No, I didn't know about that. Sounds interesting. Thanks for the pointer. >

[android-developers] Re: How to find Jarsigner

2009-03-28 Thread Mark Murphy
ions for the JDK should be available from where you downloaded the JDK. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ You rece

[android-developers] Re: How to find Jarsigner

2009-03-28 Thread Mark Murphy
Nox wrote: > So, how can I run or execute the JDK??? http://java.sun.com/javase/6/webnotes/install/jdk/install-linux.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 2.0 A

[android-developers] Re: Observation and comments on Android and "regularly" scheduled events

2009-03-28 Thread Mark Murphy
ted ideas and insights, on this thread (e.g., Ms. Hackborn, Mr. Kamp) and on past threads (e.g., Jon Culverson). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~---

[android-developers] Re: Insanely slow read() from HttpsURLConnection...

2009-03-28 Thread Mark Murphy
ttern from: http://hc.apache.org/httpcomponents-client/examples.html -- 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 ar

[android-developers] Re: Can we call framework classes directly?

2009-03-28 Thread Mark Murphy
classes that should be pulled forward into the SDK, file an issue at http://b.android.com so the idea gets tracked, or possibly submit a patch if you're in position to work on the firmware itself. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android De

[android-developers] Re: Question about one application requiring another application or service

2009-03-28 Thread Mark Murphy
f you're not). They'd download/install the service and eventually wander their way back to your app, at which point you can detect that the service is available. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus

[android-developers] Re: How can i use vold(New volume manager daemon) to automatically mount sdcard when device startup?

2009-03-29 Thread Mark Murphy
ing the SDK to build applications much more so than it is for firmware-level questions such as the ones you posed. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Y

[android-developers] Re: How do I make my application to be restarted after the phone is powered-on again?

2009-03-29 Thread Mark Murphy
hould be a way to do it. You have to register a BroadcastReceiver to get control when the phone reboots and then re-register your alarms. We just had an extended thread on this very list on a related topic: http://groups.google.com/group/android-developers/browse_thread/thread/947fd3d0ed878c66# --

[android-developers] Re: How do I make my application to be restarted after the phone is powered-on again?

2009-03-29 Thread Mark Murphy
pperotti wrote: > Thanks Mark, I have just read also the response in the last update of > your latest book. That was fast! ;-) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/book

[android-developers] Re: Webview Question: onCreate always get called when activity comes to foreground

2009-03-29 Thread Mark Murphy
wn the differences between your app and the working code. If you can narrow down the source of your difficulty, or if I misunderstood the pattern you used to cause the problem, let us know! -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App

[android-developers] Re: Asset Image in WebView

2009-03-29 Thread Mark Murphy
uld/somebody/explain/the/need/for/this). See: http://groups.google.com/group/android-beginners/browse_thread/thread/a66e63959bb89193/a7e8782c85076bf7 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 2.0 Ava

[android-developers] Re: Asset Image in WebView

2009-03-29 Thread Mark Murphy
URLs to try to get answers by poking fun at the problem. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ You received this mess

[android-developers] Re: Application that loops every minute - how to efficiently do it

2009-03-30 Thread Mark Murphy
le a Runnable to be executed after such-and-so delay. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: RESTful user authentication

2009-03-30 Thread Mark Murphy
Wouter wrote: > But how can i make a restful webservice (in Java) where I can > authenticate a user.. Use HTTP authentication. See _RESTful Web Services_ (O'Reilly & Associates, 2007), Chapter 8, pages 238-243. -- Mark Murphy (a Commons Guy) http://commonsware.com | htt

[android-developers] Re: RESTful user authentication

2009-03-30 Thread Mark Murphy
ions some place that is focused on server-side Java. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ You received this message b

[android-developers] Re: how to add "--core-library" to Eclipse ?

2009-03-30 Thread Mark Murphy
articular, a list of the prohibited namespaces would be handy, so we don't have to just guess what we can and cannot use. FYI, I have filed this in the issue tracker as: http://code.google.com/p/android/issues/detail?id=2329 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://t

[android-developers] Re: cant read file from data/data/pkg/files/...

2009-03-30 Thread Mark Murphy
Komal wrote: > but i cant save image at runtime in the assets folder using > file:///android_asset/filename.jpg Assets are packaged inside the APK and are read-only. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training

[android-developers] Re: cant read file from data/data/pkg/files/...

2009-03-30 Thread Mark Murphy
Komal wrote: > Can i read from data/data/pkg/files/filenm in java script/html page? I don't know. I have never tried it. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/train

[android-developers] Re: Error on adb push

2009-03-31 Thread Mark Murphy
ommand. 2. You may not be able to push files to /data/data on the emulator. You definitely cannot on a device. Your files do not belong there. Put them in /data/data/your.package.here/files, where your.package.here is the Java package associated with your Android application. -- Mark Murphy (a Common

[android-developers] Re: android.intent.action.TIME_TICK - Has anyone used it?

2009-04-01 Thread Mark Murphy
a manifest-declared receiver, which will not work. Either switch to a registerReceiver() implementation, or use AlarmManager. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training.html --~--~-~

[android-developers] Re: Passing a 2 dimensional array to an Activity

2009-04-01 Thread Mark Murphy
gt; Hi, > You could use the JSON en/decoding functions. You can store lists and > maps of Strings. They probably consume more CPU, though. If the service is in the same process as the activity, you can use the singleton pattern and have the activity call some method on the service object. --

[android-developers] Re: Use native C/C++ libraries

2009-04-01 Thread Mark Murphy
to be installed on existing devices (e.g., off of the Android Market), no. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received t

<    1   2   3   4   5   6   7   8   9   10   >