[android-developers] How to reference another GUI xml from within a GUI xml?

2008-12-26 Thread Mariano Kamp
Hi, let's consider this: You have a list view that shows all emails in your mailbox, but just their subject and from information. When you click on a list item to launch an activity that shows the full mail. The latter view also contains the same subject and from information, rendered

[android-developers] Re: How to reference another GUI xml from within a GUI xml?

2008-12-27 Thread Mariano Kamp
Thank you Marc. That was it. include worked fine. Cheers, Mariano On Sat, Dec 27, 2008 at 12:25 AM, Mark Murphy mmur...@commonsware.comwrote: Mariano Kamp wrote: let's consider this: You have a list view that shows all emails in your mailbox, but just their subject and from

[android-developers] Re: How to reference another GUI xml from within a GUI xml?

2008-12-27 Thread Mariano Kamp
Thank you Marc. That was it. include worked fine. On Sat, Dec 27, 2008 at 12:25 AM, Mark Murphy mmur...@commonsware.com wrote: Mariano Kamp wrote: let's consider this: You have a list view that shows all emails in your mailbox, but just their subject and from information. When you

[android-developers] What is a good way to download a webpage for offline reading?

2008-12-27 Thread Mariano Kamp
Hi, I was wondering what would be a good way to download a webpage for offline reading? I first thought about downloading the html source, grep it for the image tag's soure attribute and download the image. After rewriting the image tag in a way that it reffers to the local file and

[android-developers] Re: What is a good way to download a webpage for offline reading?

2008-12-29 Thread Mariano Kamp
into Android.. If you use gear's features, I believe you can do what you are after. (but don't ask me how because I don't know.) Cheers Eric Portable Electronics Ltd www.hdmp4.com On Dec 28, 2:18 am, Mariano Kamp mariano.k...@gmail.com wrote: Hi, I was wondering what would

[android-developers] Re: Icons - Recommended size, format, etc?

2008-12-30 Thread Mariano Kamp
What about the icons used in notifications? Are they 24x24 natively? Is there any source where this kind of documentation can be found? I didn't see any. Btw. is there a style guide in the works? Cheers, Mariano On Fri, Nov 7, 2008 at 8:17 PM, hackbod hack...@gmail.com wrote: But please

[android-developers] Re: Icons - Recommended size, format, etc?

2008-12-31 Thread Mariano Kamp
Thanks for the information. If you don't mind me asking, how do you know? And do you know about a style guide? On Wed, Dec 31, 2008 at 10:06 AM, for android forandr...@gmail.com wrote: 16*16 On Wed, Dec 31, 2008 at 11:43 AM, Mariano Kamp mariano.k...@gmail.comwrote: What about the icons

[android-developers] Re: Icons - Recommended size, format, etc?

2008-12-31 Thread Mariano Kamp
is the way to go, as it looks more crisp on the emulator. I attached a screenshot to see for yourself. On Wed, Dec 31, 2008 at 4:56 PM, Mariano Kamp mariano.k...@gmail.comwrote: Thanks for the information. If you don't mind me asking, how do you know? And do you know about a style guide

[android-developers] WebView: Need help with local file Urls in the browser

2009-01-10 Thread Mariano Kamp
Hi, let's say I write content onto the local filesystem using Context.openFileOutput(). For the sake of this example one file IS index.html and one IS image.png. The former references the latter in the html code. How can I get the browser to display the content? I tried many

[android-developers] Re: WebView: Need help with local file Urls in the browser

2009-01-11 Thread Mariano Kamp
assets. Cheers, Mariano On Sun, Jan 11, 2009 at 4:08 AM, Fred Grott(shareme) fred.gr...@gmail.comwrote: no..my html files n my apk are referenced as href=file:///android_asset/filename.html image use the same base url On Jan 10, 2:05 pm, Mariano Kamp mariano.k...@gmail.com wrote: Hi

[android-developers] Emulator crashs when accessing sd card settings

2009-01-11 Thread Mariano Kamp
Hi, when I open the settings screen in the emulator it crashs ... This happens no matter if I start the emulator with my own image using -sdcard or without this switch. I wiped the user data. Anything else I can reset? Anybody else experiencing it? Cheers, Mariano

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

2009-01-11 Thread Mariano Kamp
Hi, I am trying to browse files from the sd card, but haven't had any success so far. Maybe I am doing something wrong, so I'd like to write down the steps for your feedback. The sample contains of an html file that references a png. (1) localhost:~ mkamp$ cat test.html html

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

2009-01-11 Thread Mariano Kamp
Hi, I have a performance problem in a ListView. The problem seems to be that it takes too long to setup each individual row. It scrolls very, very painfully slow, because of that. The actual code renders an Entry differently depending on the read state and if it is changed. When not

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

2009-01-11 Thread Mariano Kamp
in the WebView. Would this help to work around the security issue? What kind of issue is that anyway? Mariano On Sun, Jan 11, 2009 at 5:46 PM, Mark Murphy mmur...@commonsware.comwrote: Mariano Kamp wrote: Hi, I am trying to browse files from the sd card, but haven't had any success so

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

2009-01-11 Thread Mariano Kamp
Hey Mark. Mariano Kamp wrote: OMG. That is such a blow. I didn't read anything like that in the WebView documentation. I didn't say WebView. I said Browser. Browser != WebView. Sorry, I know, I didn't want to imply otherwise. Any idea how to work around that? Writing a ContentProvider

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

2009-01-11 Thread Mariano Kamp
...@commonsware.comwrote: Mariano Kamp wrote: I don't see how that should work? Wouldn't that be the same as the FileContentProvider? I cannot find a FileContentProvider class in the SDK or SDK samples. I see where there is one in the source code, and, yes, I think that's the basic idea. How would WebView

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

2009-01-12 Thread Mariano Kamp
is the final result and how u had implement those API to run your code Thanks, Asif On Jan 12, 12:21 am, Mariano Kamp mariano.k...@gmail.com wrote: Once again, thanks. I found this tutorial: http://www.anddev.org/tutproviding_data_in_a_contentprovider-t4073.html and will try that. I

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

2009-01-12 Thread Mariano Kamp
to implement the ContentProvider in so much details just one method. HTH On Jan 12, 5:45 pm, Mariano Kamp mariano.k...@gmail.com wrote: As I said by private mail already. I am not there yet, but that doesn't matter as I found this discussion: http://groups.google.com/group/android-developers

[android-developers] How does the PARTIAL_WAKE_LOCK work on the G1?

2009-01-12 Thread Mariano Kamp
Hi, I am wondering how the partial wake lock works on the G1? I am downloading stuff in the background and at some point in time the G1 shuts down and the downloading is resumed only after I wakeup the device. Very strange, because I am holding a PARTIAL_WAKE_LOCK that shouldn't let

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

2009-01-14 Thread Mariano Kamp
*bump* ;-) On Sun, Jan 11, 2009 at 7:10 PM, Mariano Kamp mariano.k...@gmail.comwrote: Hi, I have a performance problem in a ListView. The problem seems to be that it takes too long to setup each individual row. It scrolls very, very painfully slow, because of that. The actual code

[android-developers] Need help to find the phone's free space?!

2009-01-14 Thread Mariano Kamp
Hi, I am wondering how to find out how much space is left on the device before I download something big? According to the documentation StatFs would have the appropriate methods for doing that, but in practice I failed with StatFs on the emulator and G1. Here is a piece of code

[android-developers] How to implement background activities?

2009-01-14 Thread Mariano Kamp
Hi, I have trouble getting my head around background activities and am wondering how to implement something like downloading the latest weather every 30 minutes? Here is a sketch, please let me know if that makes sense? (1) Implement the download logic. (2) Let the Alarm

[android-developers] Re: Emulator crashs when accessing sd card settings

2009-01-20 Thread Mariano Kamp
): ... 12 more On Sun, Jan 11, 2009 at 12:54 PM, Mariano Kamp mariano.k...@gmail.comwrote: Sorry, accidently sent the mail to early. The first sentence should have read: When I open the settings screen for the sd card (sd card phone storage) the emulator crashs with The application Settings

[android-developers] Re: Emulator crashs when accessing sd card settings

2009-01-21 Thread Mariano Kamp
What OS/Java are you running? I am running OSX 10.5.6 and Java: java version 1.6.0_07 Java(TM) SE Runtime Environment (build 1.6.0_07-b06-153) Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_07-b06-57, mixed mode) On Tue, Jan 20, 2009 at 10:54 PM, fnirt robert.cr...@gmail.com wrote: I am

[android-developers] Where do I get the selection color?

2009-03-11 Thread Mariano Kamp
Hi, I'd like to use the standard selection color when clicking on a list item. Where do I get it from? Cheers, Mariano --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: Where do I get the selection color?

2009-03-11 Thread Mariano Kamp
Ah, thanks - where can I find the gradient defined in a 9patch? On Wed, Mar 11, 2009 at 5:57 PM, Romain Guy romain...@google.com wrote: It's not a single color, but a gradient defined in a 9patch. - Show quoted text - On Wed, Mar 11, 2009 at 5:39 AM, Mariano Kamp mariano.k...@gmail.com

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

2009-03-12 Thread Mariano Kamp
:51 AM, for android forandr...@gmail.com wrote: use the efficient list adapter And also you can use the TwoLineListitem On Wed, Jan 14, 2009 at 2:23 PM, Mariano Kamp mariano.k...@gmail.comwrote: *bump* ;-) On Sun, Jan 11, 2009 at 7:10 PM, Mariano Kamp mariano.k...@gmail.comwrote: Hi

[android-developers] Re: Slow Scrolling

2009-03-12 Thread Mariano Kamp
I vaguely remember a similar problem too. Do you also see the dreaded You used the BufferedReader default constructor (something like that) message? I had the feeling that it lead to a lot of garbage collections which would in turn explain the unresponsiveness I suppose. Btw. I got rid of the

[android-developers] Re: Slow Scrolling

2009-03-13 Thread Mariano Kamp
...@googlemail.com wrote: On Mar 12, 10:35 pm, Mariano Kamp mariano.k...@gmail.com wrote: I vaguely remember a similar problem too. Do you also see the dreaded You used the BufferedReader default constructor (something like that) message? I had the feeling that it lead to a lot of garbage

[android-developers] Re: How to capture some/all of the log file from an application?

2009-03-14 Thread Mariano Kamp
Awesome Carter. Thanks for sharing. On Sat, Mar 14, 2009 at 5:26 AM, Carter ccjerni...@gmail.com wrote: You must request the android.permission.READ_LOGS in your Android Manifest. Then you can run the logcat from the command line on the phone, and just get a dump of the output. I

[android-developers] Matching SDK version to code? NPE Bug in WebView?

2009-03-15 Thread Mariano Kamp
Hi, I wrote an app that, among other things, renders feed articles using WebView. Now I get error reports that seem to originate in WebView: -- NewsRob Version: 1.7.0/170 -- Android Version: sdk=2, release=1.1, inc=128600 -- Thread State: RUNNABLE -- Stacktrace:

[android-developers] Re: Matching SDK version to code? NPE Bug in WebView?

2009-03-15 Thread Mariano Kamp
: } 400: }; 401: new Thread(clearCache).start(); 402: return true; 403: } JBQ On Sun, Mar 15, 2009 at 3:49 AM, Mariano Kamp mariano.k...@gmail.com wrote: Hi, I wrote an app that, among other things, renders feed articles using WebView. Now I get

[android-developers] Re: Matching SDK version to code? NPE Bug in WebView?

2009-03-15 Thread Mariano Kamp
the current source code as well. JBQ On Sun, Mar 15, 2009 at 8:42 AM, Mariano Kamp mariano.k...@gmail.com wrote: JBQ, thanks for the quick reply. So in line 391 it looks like the NPE is a result of mBaseDir.list() in 390 returning null. But how can I know what happened around

[android-developers] Re: MapView Zoomer behavior, how?

2009-03-15 Thread Mariano Kamp
Hey Tim, just a quicky regarding the fading out: An alarm seems a bit heavy handed. You can use http://developer.android.com/reference/android/view/View.html#postDelayed(java.lang.Runnable,%20long)to post a Runnable that does the fading out for you. I found that idea in the Camera

[android-developers] Re: Support from Developers

2009-03-16 Thread Mariano Kamp
At least you should be able to uninstall it right away. That's also a vote and will reduce the installed base. I guess (hope) this is also input for the great popularity formula. On Mon, Mar 16, 2009 at 8:35 AM, Dianne Hackborn hack...@android.comwrote: On Sun, Mar 15, 2009 at 4:14 AM,

[android-developers] Re: deploying same application twice different content

2009-03-16 Thread Mariano Kamp
So, you're saying that the package name in the manifest is not related to the source package name. That would be cool and would make it much easier to provide a lite and full version of the same app. On Mar 10, 2009, at 11:40 PM, Romain Guy wrote: All you need is change the package name in

[android-developers] Re: deploying same application twice different content

2009-03-16 Thread Mariano Kamp
a confirmation on this. Romain, are you saying that my apk can contain classes in the package X.Y.Z but in the manifest I can say the package is really A.B.C? Thanks On Mon, Mar 16, 2009 at 11:56 AM, Mariano Kamp mariano.k...@gmail.com wrote: So, you're saying that the package name in the manifest

[android-developers] Re: Support from Developers

2009-03-17 Thread Mariano Kamp
I think it would be beneficial to see replies to comments, especially from the developer. Amen! It would also be good if you could see the other comments/ratings of the commenter. Just to get an idea if it is a prick or a concerned user. On Mon, Mar 16, 2009 at 3:45 PM, Alexander

[android-developers] Problem with writing to SD card / deleting files on it. Number of files relevant?

2009-03-19 Thread Mariano Kamp
Hi, I wrote an app that downloads web sites and all their assets (images/stylesheets) to disk and therefore stores lots of small files on the SD card. Sometimes it fails to delete large amounts of files and afterward the file system is r/o. To analyze that behavior I tried to do the removal

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

2009-03-20 Thread Mariano Kamp
http://mgmblog.com/2008/12/12/listing-androids-drawable-resources/ In the code referenced above the author's code iterates over android.R.drawable and puts the result in a list. It is a bit more illustrative as you can actually see the icons. Also when looking for what's what and how should you

[android-developers] Re: getting android_id from GoogleLoginServiceBlockingHelper?

2009-03-20 Thread Mariano Kamp
On a related note, is there any API today or planned for tomorrow for accessing the user's Google credentials in a safe way to pass them onto a Google service? The actual context is that I have users complaining that they don't want to give my app their google userid/pw to access Google Reader via

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

2009-03-20 Thread Mariano Kamp
or DevTools. On Fri, Mar 20, 2009 at 1:01 PM, Mariano Kamp mariano.k...@gmail.comwrote: http://mgmblog.com/2008/12/12/listing-androids-drawable-resources/ In the code referenced above the author's code iterates over android.R.drawable and puts the result in a list. It is a bit more illustrative

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

2009-03-22 Thread Mariano Kamp
+1 for written guide lines. Also I think it's a bad idea that every vendor can opt for its own look and feel and I hope they don't. However I am aware, that this ship has sailed. It still feels strange though to have an application platform that enables and encourages the deployement of 3rd party

[android-developers] Re: contacting commenters?

2009-03-26 Thread Mariano Kamp
No, unfortunately it is a one way communication. Hopefully that will change in the future. I think this topic is excessively discussed on the android-discuss mailing list. Maybe you should post follow-ups there. On Thu, Mar 26, 2009 at 5:34 AM, Bob bshumsk...@yahoo.com wrote: Hi, Is there

[android-developers] Re: Parsing #xx; characters in XML

2009-03-26 Thread Mariano Kamp
Vincent, indeed your question is a bit vague. I think it is an HTML entity. I use the following code to make it readable: http://www.koders.com/java/fid84AD8B606493A9AA8049B13D35CEB25D85496A76.aspx?s=string#L6 Tim, I (http://newsrob.com) am parsing atom feeds using the XML pull parser and the

[android-developers] Re: Parsing #xx; characters in XML

2009-03-27 Thread Mariano Kamp
Ok, got it. On Fri, Mar 27, 2009 at 6:53 AM, Tim Bray timb...@gmail.com wrote: On Thu, Mar 26, 2009 at 4:01 PM, Mariano Kamp mariano.k...@gmail.com wrote: Tim, I (http://newsrob.com) am parsing atom feeds using the XML pull parser and the title of type html contains those entities

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

2009-03-27 Thread Mariano Kamp
Hard to judge without any code. Do you use AlarmManager.RTC_WAKEUP? On Fri, Mar 27, 2009 at 5:45 PM, Mark Murphy mmur...@commonsware.comwrote: clarkbriancarl wrote: THanks for the reply. I use your book as a reference from time to time. I would recommend it to anyone reading this.

[android-developers] Re: OnGestureListener vs ContextMenu, do they play together?

2009-03-27 Thread Mariano Kamp
It's likely the wrong way, but what you described works for me. I am showing the context menu manually. On Fri, Mar 27, 2009 at 3:38 PM, Keith Wiley kbwi...@gmail.com wrote: On Mar 27, 12:33 am, skink psk...@gmail.com wrote: what do you return in OnGestureListener.onLongClick() method? I

[android-developers] Re: No callback when list item is touched.

2009-03-27 Thread Mariano Kamp
Brendon, could you please comment out the button in your XML and run it again? Cheers, Mariano On Sun, Feb 1, 2009 at 10:40 PM, Brendon Drew b.j.d...@gmail.com wrote: No, I am printing a log entry just before I call viewItem(), and I wasn't seeing that log statement when touching the item.

[android-developers] Re: Anything on Android that can do smooth scrolling?

2009-03-27 Thread Mariano Kamp
Also, as long as we don't have conditional permissions the user has to take the game with the optimization always on and cannot opt to still get his or her tweets/emails/whatever for a smoother scrolling experience. I feel it very much looks like a hack. Currently the UI thread and a background

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

2009-03-28 Thread Mariano Kamp
I am very much looking forward to Mark's writeup. I think that the theory is sound, but that it is ugly to pass in the wake lock in practice. I use a static member for that and it makes my eyes bleed. And it makes it harder to handle cases where start is called more than once. On Sat, Mar 28,

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

2009-03-28 Thread Mariano Kamp
in wake lock. In practice I haven't seen a problem with the time between the end of the broad cast receiver and the starting of the service. Cheers, Mariano On Sat, Mar 28, 2009 at 12:48 PM, Mark Murphy mmur...@commonsware.comwrote: Mariano Kamp wrote: I use a static member

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

2009-03-28 Thread Mariano Kamp
On Sat, Mar 28, 2009 at 4:37 PM, Mark Murphy mmur...@commonsware.comwrote: Have you tried using setReferenceCounted(true) on the WakeLock? No, I didn't know about that. Sounds interesting. Thanks for the pointer. In the scenario you described: -- The activity tells the service, yo! sync

[android-developers] R not re-generating in Eclipse after rename of the package

2009-03-29 Thread Mariano Kamp
Hi, I renamed the package in the manifest from com.a to com.a.beta in order to upload a different version to the Android Market. In the manifest I changed the referenced entities (services, activities etc.) to use the fully qualified name com.a.X instead of just .X. Of course the code still

[android-developers] Re: R not re-generating in Eclipse after rename of the package

2009-03-29 Thread Mariano Kamp
and then select Project - Build All On Sun, Mar 29, 2009 at 7:18 AM, Mariano Kamp mariano.k...@gmail.comwrote: Hi, I renamed the package in the manifest from com.a to com.a.beta in order to upload a different version to the Android Market. In the manifest I changed the referenced entities

[android-developers] Re: R not re-generating in Eclipse after rename of the package

2009-03-29 Thread Mariano Kamp
have to be changed, otherwise R.java is not recreated. Peli www.openintents.org On Mar 29, 9:35 pm, Mariano Kamp mariano.k...@gmail.com wrote: Hey Faber, there is no R that I can delete. Yes, I did a clean / build all. Mariano On Sun, Mar 29, 2009 at 3:56 PM, Faber Fedor

[android-developers] Re: R not re-generating in Eclipse after rename of the package

2009-03-30 Thread Mariano Kamp
don't have any red spots in the Manifest or in your layout files, then R.java should be created. Do you see it already? Peli On Mar 30, 7:20 am, Mariano Kamp mariano.k...@gmail.com wrote: Hey Peli, what do you mean? Like com.a.MyView? I specified them fully qualified, so that shouldn't

[android-developers] Re: Debug.startMethodTracing InternalError: file open failed

2009-03-30 Thread Mariano Kamp
I think you didn't quote enough of the log to know the answer. Obviously something didn't work when trying to start a trace. Are you on the device? Have you got a writable SD card inserted? Try to specify Debug.startMethodTracing(/sdcard/rufio); On Sat, Mar 28, 2009 at 11:35 PM, William

[android-developers] Re: Android Physics Engine

2009-04-02 Thread Mariano Kamp
It's maybe a bit off topic, but how do you know that Android's gc is rudimentary? Have you got a link handy? I only found this: http://developer.android.com/guide/practices/design/performance.html On Thu, Apr 2, 2009 at 11:59 PM, Anton socialhac...@gmail.com wrote: Shaun, thanks for

[android-developers] Re: Definite need for a Cupcake SDK release details.

2009-04-03 Thread Mariano Kamp
Hey Al, I actually think the keyboard layout has a nice curve to it ;-) You should sell it as a feature. Cheers, Mariano On Fri, Apr 3, 2009 at 9:58 AM, Romain Guy romain...@google.com wrote: The layout is actually working. However, Cupcake has new assets for buttons (and other widgets)

[android-developers] Re: Android Physics Engine

2009-04-03 Thread Mariano Kamp
of mathematical types (like Fixed point number classes or Vector or Matrix classes). And secondly it takes a long time to run when it does garbage collect, resulting in dropped frames. -Anton On Apr 2, 3:32 pm, Mariano Kamp mariano.k...@gmail.com wrote: It's maybe a bit off topic, but how do

[android-developers] Re: Android Physics Engine

2009-04-03 Thread Mariano Kamp
as possible :) On Fri, Apr 3, 2009 at 2:04 AM, Mariano Kamp mariano.k...@gmail.com wrote: Anton, thanks. Very interesting. On Fri, Apr 3, 2009 at 2:24 AM, Anton socialhac...@gmail.com wrote: Check out http://android-developers.blogspot.com/2009/02/track-memory-allocations.html

[android-developers] Re: Why adb push to sdcard report Read-only file system for the emulator of the latest android source code

2009-04-06 Thread Mariano Kamp
Sounds great. Just wondering if there is any workaround for today's problems? On Mon, Apr 6, 2009 at 12:23 PM, David Turner di...@android.com wrote: See https://review.source.android.com/Gerrit#change,9452 there is a packaging bug that prevents the mount daemon from properly mounting the SD

[android-developers] Re: Cupcake SDKs available for download

2009-04-06 Thread Mariano Kamp
Hey guys, in particular Al, thanks for putting it together. Already found the first incompatibility of my app with Cupcake. Great. But what again is the state of networking? I read somewhere that there is a problem, but I can't seem to google it. Maybe I just dreamed that I read it? I

[android-developers] Re: Why adb push to sdcard report Read-only file system for the emulator of the latest android source code

2009-04-06 Thread Mariano Kamp
to be un-needed if other changes were synced in though On Mon, Apr 6, 2009 at 2:33 PM, Mariano Kamp mariano.k...@gmail.comwrote: Sounds great. Just wondering if there is any workaround for today's problems? On Mon, Apr 6, 2009 at 12:23 PM, David Turner di...@android.com wrote: See https

[android-developers] Re: Why adb push to sdcard report Read-only file system for the emulator of the latest android source code

2009-04-07 Thread Mariano Kamp
/thread/8cc165f810c062d9/9d229f422baa9926 On Tue, Apr 7, 2009 at 9:58 AM, David Turner di...@android.com wrote: On Tue, Apr 7, 2009 at 7:47 AM, Mariano Kamp mariano.k...@gmail.comwrote: Thanks David, but I was more expecting something without compiling a new version of the SDK. Anyway, I

[android-developers] Re: Help...Exception in the Background Thread :Can't create handler inside thread that has not called Looper.prepare()

2009-04-07 Thread Mariano Kamp
I don't want to sound like a smart ass, but did you try what the error message said? Called Looper.prepare()? I know I had a similar situation some time ago and it worked for me. Besides the dreaded BufferedReader exception I find the exceptions I get from the framework very helpful. On Tue,

[android-developers] Re: Problem with writing to SD card / deleting files on it. Number of files relevant?

2009-04-07 Thread Mariano Kamp
*bump* ;-) On Thu, Mar 19, 2009 at 7:20 PM, Mariano Kamp mariano.k...@gmail.comwrote: Hi, I wrote an app that downloads web sites and all their assets (images/stylesheets) to disk and therefore stores lots of small files on the SD card. Sometimes it fails to delete large amounts

[android-developers] Re: Help...Exception in the Background Thread :Can't create handler inside thread that has not called Looper.prepare()

2009-04-08 Thread Mariano Kamp
Mariano : I have not used Looper.prepare(), Is it required?? If yes then where and how to define handler for that? I honestly don't understand what you're trying to achieve, so it's hard to answer that question. I once tried to inflate GUIs in a separate thread for performance

[android-developers] Re: Problem with writing to SD card / deleting files on it. Number of files relevant?

2009-04-09 Thread Mariano Kamp
I think that Android apps can't access the SD card in r/w mode when it is used in USB mass storage mode. Otherwise it works great. I read somewhere that this is a limitation of the FAT32 filesystem, which is a single user fs?! Unfortunately the setting for use in mass storage mode has disappeared

[android-developers] Re: SDKs comparison with the iPhone

2009-04-11 Thread Mariano Kamp
Al, I hope it's not that bad and that over time things will get better and more open. Look at the sorry state of the Android Market. I am not being polemic here when I say that this cannot be so bad on purpose. So there is hope. On the other hand, the issues of Android moving to open source and/or

[android-developers] Re: Experience of using admob

2009-04-11 Thread Mariano Kamp
The implementation is straight forward. The reporting is nice. I didn't want the ads to show up in horizontal orientation as it takes up too much screen estate this way. As I manage configuration changes (orientation changes) myself that took me hours to get it right and was one of the reasons

[android-developers] Re: Setup Merchant Account link now available

2009-04-12 Thread Mariano Kamp
They want to do it right, so they take the time. On Sun, Apr 12, 2009 at 1:49 PM, andreas andreas.str...@googlemail.comwrote: Is there anything new about selling from other countries - like Germany? In the official andorid blog it said: We will also enable developers in Germany, Austria,

[android-developers] Re: Setup Merchant Account link now available

2009-04-12 Thread Mariano Kamp
. But if you set a timeline in a sowhat official statement and you miss this timeline from my point of view it is necessary to give a statement and explain what are the problems and what is coming next. On 12 Apr., 15:58, Mariano Kamp mariano.k...@gmail.com wrote: They want to do it right, so

[android-developers] Re: A Gesture Recognition Library

2009-04-13 Thread Mariano Kamp
Yeah, me too, awesome stuff! On Sat, Apr 11, 2009 at 2:10 PM, Nishantha Pradeep ucscnishan...@gmail.comwrote: Good work and I am impressed. I will find someway to try this out cheers Nishantha On Sat, Apr 11, 2009 at 5:18 PM, mscwd01 mscw...@gmail.com wrote: That's really impressive

[android-developers] Re: Apps labeled as Tetris Clones removed from Android Market

2009-04-13 Thread Mariano Kamp
You also forget Google is not just a US entity. It has registered companies around the world which are not bound by US laws (such as Google UK Ltd.) which could run and operate Market thus giving them the same freedoms as the rest of us outside the jurisdiction of US law. I am not sure that this

[android-developers] Re: Early Look Android 1.5 SDK

2009-04-13 Thread Mariano Kamp
Sounds great. The beauty of a sometimes not totally transparent process is that you can get surprised ;-) On Tue, Apr 14, 2009 at 1:30 AM, Xavier Ducrohet x...@android.com wrote: Hello developers! I'm pleased to announce the release of an early look of the Android 1.5 SDK. More

[android-developers] Finger gestures with current MBP

2009-04-14 Thread Mariano Kamp
Hi, if you don't have a current MBP you can just move along to the next message - nothing to see here. Now that we have the cupcake preview an old issue comes back. I can test finger gestures with all computers, but my main-machine: a current model MacBook Pro. Did anybody find out how to

[android-developers] Re: getting android_id from GoogleLoginServiceBlockingHelper?

2009-04-16 Thread Mariano Kamp
help you but I can't; I work on the Android platform, I am not that familiar with what is going on with the Google apps. On Fri, Mar 20, 2009 at 1:01 PM, Mariano Kamp mariano.k...@gmail.comwrote: On a related note, is there any API today or planned for tomorrow for accessing the user's Google

[android-developers] Re: getting android_id from GoogleLoginServiceBlockingHelper?

2009-04-16 Thread Mariano Kamp
mentioned above? On Fri, Mar 20, 2009 at 10:50 PM, Dianne Hackborn hack...@android.comwrote: Sorry maybe someone else can help you but I can't; I work on the Android platform, I am not that familiar with what is going on with the Google apps. On Fri, Mar 20, 2009 at 1:01 PM, Mariano Kamp

[android-developers] Re: getting android_id from GoogleLoginServiceBlockingHelper?

2009-04-16 Thread Mariano Kamp
/detail?id=1073 then you will get updates if it is worked on. On Apr 16, 5:09 am, Mariano Kamp mariano.k...@gmail.com wrote: Well, did Cupcake bring some functionality that lets non-Google apps access the user's Google credentials or has there been any progress in that direction? Reading your

[android-developers] Re: How to dump the content of sqlite via adb shell command

2009-04-17 Thread Mariano Kamp
That's your content provider ... it might be backed by a DB, but maybe not. Did you go through the Notepad tutorial? http://developer.android.com/guide/tutorials/notepad/index.html It's great and covers both topics. For now: adb shell ls /data/data/yourapppackage/databases On Fri, Apr 17, 2009

[android-developers] Re: Elan sues Apple for multitouch patent infringment... and guess what....

2009-04-17 Thread Mariano Kamp
Yeah, whatever happened to Justin? It's a dangerous life as a sheriff. On Fri, Apr 17, 2009 at 6:30 AM, JP joachim.pfeif...@gmail.com wrote: Duck, there's a new sheriff in town On Apr 16, 5:02 pm, Raphael r...@android.com wrote: Kill thread. Please move your noise over to

[android-developers] Re: Note on Size of Apps

2009-04-17 Thread Mariano Kamp
Is there any way to be notified as an app when it gets uninstalled, so that cleanup can be done for stuff stored on the SD card? On Wed, Apr 15, 2009 at 8:02 PM, Dianne Hackborn hack...@android.comwrote: Correct. The numbers are intended to tell you how much space the app is using in /data,

[android-developers] Re: Early Look Android 1.5 SDK

2009-04-17 Thread Mariano Kamp
It says in http://developer.android.com/sdk/preview/: SDK Known Issues No network access from emulator while running Android 1.1 target Applications can not access the network when running on an Android 1.1 target in the emulator included in the SDK. So, you can develope for 1.1 and 1.5 as

[android-developers] 1.5 preview issues / keyboard not working on lists / preferences not working

2009-04-19 Thread Mariano Kamp
Hi, I fixed a couple issues already to become cupcake compatible, but a couple of issues remain. One thing is that in one of my lists the keyboard still works for navigation, but not to select an item with enter or the Center DPAD push. I will further investigate if I can explicitly

[android-developers] Re: Building different versions of an app -- best practice?

2009-04-20 Thread Mariano Kamp
But isn't the real problem that you would need a totally different package name to upload it to the Android Market? On Mon, Apr 20, 2009 at 2:04 PM, MrSnowflake mrsnowfl...@gmail.com wrote: You can use if-else constructs, as the compiler will leave out any never reached peaces of code.

[android-developers] android:launchMode?

2009-04-20 Thread Mariano Kamp
Hi, I just re-read the documentation [1] on launchMode and still don't get it. Let's say I have the fictional activities Show Albums and Show Picture List. Show Albums is a top level view that can be used to drill down to the Pictures List by firing the intent that is associated with the

[android-developers] Re: android:launchMode?

2009-04-20 Thread Mariano Kamp
Thanks very much. I tried that and it works great, except when I am on the Pictures List Activity (Sub), press Home, press the App icon I'll get back to the Show Albums Activity (Sub). So far so good, but when I press Back I'll get back to the previous Pictures List Activity (Sub). I would have

[android-developers] How stable is the KXML parser? What's your experience?

2009-04-21 Thread Mariano Kamp
Hi, two months ago I migrated from DOM parsing to using the pull parser. I did this to be more memory efficient. It wasn't absolutely necessary though and I currently think about re-writing my code to use DOM (or maybe SAX directly) again. The reason is that I see phenomena that I can't

[android-developers] Re: android:launchMode?

2009-04-21 Thread Mariano Kamp
activity I don't want the back button to navigate back to a previously opened Sub Activity. On Mon, Apr 20, 2009 at 7:11 PM, Mariano Kamp mariano.k...@gmail.com wrote: Thanks very much. I tried that and it works great, except when I am on the Pictures List Activity (Sub), press Home, press the App

[android-developers] SAXParseException: Illegal: ]]

2009-04-22 Thread Mariano Kamp
Hi, yesterday I bitched about all the issues I have with the kXML parser. (http://groups.google.com/group/android-developers/browse_thread/thread/db2c614556cd9fa7/) So now I converted my code to use DOM. And I tried the third example from my referenced mail and it gives me an exception

[android-developers] Re: SAXParseException: Illegal: ]]

2009-04-22 Thread Mariano Kamp
, there are tons of Chinese characters in the e-mail. But this should not be a problem. Could you check if your encoding is correctly set to UTF-8? On Apr 22, 9:55 am, Mariano Kamp mariano.k...@gmail.com wrote: Hey, thanks for showing an interest! No, it's not the whole XML and I should have

Re: Android SDK's parser vs Standard SDK's parser, was: Re: [android-developers] Re: SAXParseException: Illegal: ]]

2009-04-22 Thread Mariano Kamp
, Streets Of Boston flyingdutc...@gmail.com wrote: First try to change your test-case. Instead of ]], do ]]gt;, just to be sure :-) On Apr 22, 10:40 am, Mariano Kamp mariano.k...@gmail.com wrote: Ok, I have a smaller test case now: DocumentBuilder builder

[android-developers] Re: Parsing XML feed with SAX

2009-04-23 Thread Mariano Kamp
I don't know. Did you try a smaller document?How big is it anyway? What does the log say? On Thu, Apr 23, 2009 at 12:28 PM, mobilekid mobilek...@googlemail.comwrote: Just to add to my message, endDocument() doesn't get called... Does that mean that the document is too big too parse?!

[android-developers] Re: Parsing XML feed with SAX

2009-04-23 Thread Mariano Kamp
with the size of the document, but it isn't big at all... Any ideas? On Apr 23, 3:30 pm, Mariano Kamp mariano.k...@gmail.com wrote: I don't know. Did you try a smaller document?How big is it anyway? What does the log say? --~--~-~--~~~---~--~~ You received

[android-developers] Re: Android v. 1.5 = FAIL #2: Directly Manipulating Settings

2009-04-27 Thread Mariano Kamp
Public (shaming) listing of the offending applications. What about the book deal now? I accept paypal payments under the sender's address ;-) On Mon, Apr 27, 2009 at 7:29 AM, Al Sutton a...@funkyandroid.com wrote: Show me a way of forcing a developer of an app to fix poorly written code that

[android-developers] Re: When does my thread die?

2009-01-24 Thread Mariano Kamp
And when implementing stuff as a service where would the actual long running functionality go? In a separate thread? How should I stop that thread? Is acting on Service.onDestroy() the right time and will it definitively be called? How much time do I have in onDestroy()? Is it acceptable behavior

[android-developers] Re: Emulator crashs when accessing sd card settings

2009-01-25 Thread Mariano Kamp
Nope, at least not in my case. I specify one using the sdcard option, but it also fails for the built-in one. Anyway accessing the emulated sdcard works for me. On Sat, Jan 24, 2009 at 10:37 PM, Mark Murphy mmur...@commonsware.comwrote: Jeremy Leibs wrote: Any progress on this? I am having

[android-developers] Re: Application storage data growing

2009-02-07 Thread Mariano Kamp
I guess we're talking about /data/data/yourpackagenamesgoeshere Did you check there? You can use adb -d shell to open a shell on your device and the cd there. adb -d shell cd /data/data/yourpackagenamesgoeshere ls -l Btw. Do you use WebView in your app? It caches stuff until you remove it by

  1   2   3   4   >