[android-developers] Progress monitor graphic broken with ICS

2011-12-18 Thread Mariano Kamp
Hi, I am wondering if anybody else is seeing this and knows what it is. I use a progress monitor that with ICS now looks like this: [image: Screen shot 2011-12-16 at 4.22.18 PM.png] This is the relevant code: ProgressBar android:id=@+id/background_progress

[android-developers] ICS: Progress monitor graphic broken, Different Padding?

2011-12-18 Thread Mariano Kamp
Hi, I am wondering if anybody else is seeing this and knows what it is. I use a progress monitor that with ICS now looks like this: [image: Screen shot 2011-12-16 at 4.22.18 PM.png] This is the relevant code: ProgressBar android:id=@+id/background_progress

[android-developers] App Broken After Android Refactoring Rename Application Package / android.view.InflateException

2011-02-16 Thread Mariano Kamp
I want to create a new version of my app that caters to the needs of users with Android 1.5/1.6/2.0 devices and move ahead with the normal version of my app. For that I copied my app directory then applied the Rename Application Package refactoring. That helped a lot. So far I mostly had to fix

[android-developers] Q: How to do an expand animation?

2010-11-16 Thread Mariano Kamp
Hi, please consider the following. I have two containers and in between them I want to expand/grow a third container that should show some temporary information. The undo message in the Gmail app is an example for that. It expands between the status bar and the body of the list, thereby pushing

[android-developers] How to debug CursorIndexOutOfBoundsException with ListView?

2010-11-01 Thread Mariano Kamp
Hi, I occasionally get exceptions like this one here: android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0 at android.database.AbstractCursor.checkPosition(AbstractCursor.java:580) at

Re: [android-developers] How to debug CursorIndexOutOfBoundsException with ListView?

2010-11-01 Thread Mariano Kamp
, Romain Guy romain...@android.com wrote: This kind of error usually happens when there's a concurrency issue in the application. On Mon, Nov 1, 2010 at 4:02 AM, Mariano Kamp mariano.k...@gmail.com wrote: Hi, I occasionally get exceptions like this one here

Re: [android-developers] How to debug CursorIndexOutOfBoundsException with ListView?

2010-11-01 Thread Mariano Kamp
: Hello Mariano Kamp, * * *Usually This kind of exception comes when your are not closing cursor mainly when you press home key or End Key .Or doing delete operation on Same table which you are fetching data.* *Be ensure When there is No data in table for which you are retrieving data you

[android-developers] How to find out that the global auto-sync state has been changed?

2010-10-22 Thread Mariano Kamp
Hey guys. Is there any way that my code can be notified / receive a broadcast when the global auto-sync state changes? Cheers, Mariano http://developer.android.com/reference/android/content/ContentResolver.html#getMasterSyncAutomatically() -- You received this message because you are

Re: [android-developers] Re: On using themes?!

2010-09-22 Thread Mariano Kamp
, 2010 at 9:08 AM, Mariano Kamp mariano.k...@gmail.comwrote: Hi Dianne. Thanks very much, almost there. I understand the procedure, it would do what I want, but I run into an exception: D/NewsRobDefaultExceptionHandler( 1839): Caused by: java.lang.UnsupportedOperationException: Can't convert

Re: [android-developers] Licensing

2010-07-27 Thread Mariano Kamp
That's really not all that good. So if I want to have my app listed on an alternative market, because Google doesn't provide all users with access to paid apps, then I cannot use the new mechanism ... unless the alternative market provides a binary compatible lib. Right? Otherwise I would need to

[android-developers] Re: Don't see YouTube thumbnails anymore on Froyo

2010-07-12 Thread Mariano Kamp
Does this code snippet work for anybody else with Froyo? On Tue, Jun 29, 2010 at 8:22 PM, Mariano Kamp mariano.k...@gmail.comwrote: Hi. using a WebView with Froyo I don't see the YouTube thumbnails anymore. WebViewClient.shouldOverrideUrlLoading() is not called in Froyo, but was called

Re: [android-developers] Re: Best httpclient re-use stategy

2010-06-29 Thread Mariano Kamp
), svs.getLong(non-existing-key, -99l)); } } On Fri, Jun 25, 2010 at 10:48 PM, Mariano Kamp mariano.k...@gmail.comwrote: Just a sidenote on an issue that you touch, but not the actual main issue: - Save the cookie (String serialized into SharedPreferences) and create every time a new

[android-developers] Don't see YouTube thumbnails anymore on Froyo

2010-06-29 Thread Mariano Kamp
Hi. using a WebView with Froyo I don't see the YouTube thumbnails anymore. WebViewClient.shouldOverrideUrlLoading() is not called in Froyo, but was called before. Please check out the example below. With Pre-Froyo you would see a YouTube thumbnail two/thirds into the article, with Froyo you

Re: [android-developers] ListView - Row Background Animation

2010-06-25 Thread Mariano Kamp
IMHO the list view doesn't shuffle the rows around, but the views that form these rows are re-used in order to avoid the repeated inflation of the views. Instead you get a previously setup view and you only do the data binding, i.e. set the actual values from your model in the views's text fields,

Re: [android-developers] Re: Best httpclient re-use stategy

2010-06-25 Thread Mariano Kamp
Just a sidenote on an issue that you touch, but not the actual main issue: - Save the cookie (String serialized into SharedPreferences) and create every time a new httpclient instance (then set the cookie to the new instance) = overhead to get the http connection I tried that in my app and

Re: [android-developers] Re: Need help with a Java issue

2010-06-23 Thread Mariano Kamp
that's the cue that's missing. On Jun 22, 2:59 am, Mariano Kamp mariano.k...@gmail.com wrote: Hey guys. This is not an Android issue per-se, but I am puzzled about a Java issue and want to pick your brains. I recently got a couple of bug reports with a NPE that I don't understand

Re: [android-developers] Re: Need help with a Java issue

2010-06-23 Thread Mariano Kamp
Ok, meanwhile a coworker of mine pointed out that this is a known issue with autoboxing (not showing up in the stacktrace), it was just unknown to me. http://javahowto.blogspot.com/2006/07/not-your-typical-npe.html Thanks for your help guys. On Wed, Jun 23, 2010 at 8:39 AM, Mariano Kamp

Re: [android-developers] Re: Need help with a Java issue

2010-06-23 Thread Mariano Kamp
exposing the code to us, I hope. On Jun 22, 2:59 am, Mariano Kamp mariano.k...@gmail.com wrote: Hey guys. This is not an Android issue per-se, but I am puzzled about a Java issue and want to pick your brains. I recently got a couple of bug reports with a NPE that I don't understand

[android-developers] Need help with a Java issue

2010-06-22 Thread Mariano Kamp
Hey guys. This is not an Android issue per-se, but I am puzzled about a Java issue and want to pick your brains. I recently got a couple of bug reports with a NPE that I don't understand and can't reproduce myself. Here is an abbreviated representation of the offending class. I tried to stay as

Re: [android-developers] Need help with a Java issue

2010-06-22 Thread Mariano Kamp
). Specifically i am unsure about databaseHelper. Its just accessed in you example, so could be null. At best give the full file so we can check. Toni On Tue, Jun 22, 2010 at 11:59 AM, Mariano Kamp mariano.k...@gmail.com wrote: Hey guys. This is not an Android issue per-se, but I am puzzled about

[android-developers] Process.setProcessGroup() Unknown error?

2010-06-14 Thread Mariano Kamp
Hi, did anybody encounter the RuntimeException with the message Unknown error? Cheers, Mariano java.lang.RuntimeException: Unknown error at android.os.Process.setProcessGroup(Native Method) at android.app.ActivityThread.handleChangeTopApp(ActivityThread.java:3663) at

Re: [android-developers] Re: Slow Eclipse on OS X

2010-06-14 Thread Mariano Kamp
have such a noticeable effect, and it certainly doesn't have a similar effect on anything else I use (J2EE, Amazon plugin, Subversion, ...) Al. On Jun 13, 8:33 pm, Mariano Kamp mariano.k...@gmail.com wrote: Do you guys use the 64 bit download? On Sun, Jun 13, 2010 at 6:12 PM, David

[android-developers] Re: Process.setProcessGroup() Unknown error?

2010-06-14 Thread Mariano Kamp
I checked 20 error reports and 100% were from either the HTC Desire or the HTC Incredible. On Mon, Jun 14, 2010 at 9:29 AM, Mariano Kamp mariano.k...@gmail.com wrote: Hi, did anybody encounter the RuntimeException with the message Unknown error? Cheers, Mariano java.lang.RuntimeException

[android-developers] Re: Process.setProcessGroup() Unknown error?

2010-06-14 Thread Mariano Kamp
-- root root 2010-06-14 20:10 45 - /dev/ashmem (The version with the bug had a couple of more lines pointing to my currentArticle file). Hope this helps somebody else also. No idea why this only happened to Desire/Incredibles. On Mon, Jun 14, 2010 at 6:37 PM, Mariano Kamp

[android-developers] Re: Delivery Status Notification (Failure)

2010-06-14 Thread Mariano Kamp
. Is there another way to disable? Any help is much appreciated. Keith On Mon, Jun 14, 2010 at 1:47 PM, Mariano Kamp mariano.k...@gmail.com wrote: Hey Keith, I think it would be best to keep the discussion public, so that other may chip in / learn from it. If you agree, please cc

Re: [android-developers] Re: Slow Eclipse on OS X

2010-06-13 Thread Mariano Kamp
Do you guys use the 64 bit download? On Sun, Jun 13, 2010 at 6:12 PM, David Horn pga...@gmail.com wrote: Al, Exactly the same thing happens to me on OS X. I've accepted that I need to restart Eclipse every so often to solve the problem. It's particularly exacerbated if using the XML tools

Re: [android-developers] Re: Using a ListView and an Adapter: How to use notifyDataSetChanged()?

2010-06-11 Thread Mariano Kamp
:55 pm, Mariano Kamp mariano.k...@gmail.com wrote: Hi. Just watched Google IO's World Of ListView presentation [1]. Awesome stuff. I think every Android dev should watch it. One gotcha for me was to use BaseAdapter.notifyDataSetChanged[2]. I checked code that I have written more than

[android-developers] Re: Using a ListView and an Adapter: How to use notifyDataSetChanged()?

2010-06-10 Thread Mariano Kamp
Anybody? :-) On Thursday, June 3, 2010, Mariano Kamp mariano.k...@gmail.com wrote: Hi. Just watched Google IO's World Of ListView presentation [1]. Awesome stuff. I think every Android dev should watch it. One gotcha for me was to use BaseAdapter.notifyDataSetChanged[2]. I checked code

[android-developers] Using a ListView and an Adapter: How to use notifyDataSetChanged()?

2010-06-03 Thread Mariano Kamp
Hi. Just watched Google IO's World Of ListView presentation [1]. Awesome stuff. I think every Android dev should watch it. One gotcha for me was to use BaseAdapter.notifyDataSetChanged[2]. I checked code that I have written more than a year ago and found that I did try to use that, but commented

Re: [android-developers] App Widget Lifecycle?

2010-06-01 Thread Mariano Kamp
this problem? I am facing right now the exact same thing (that onEnabled() is called when the Configuration utility is launched, and not when the actual widget is placed on the home screen). Thanks! Yuvi -- YuviDroid http://android.yuvalsharon.net On Sat, Feb 27, 2010 at 7:51 PM, Mariano Kamp

Re: [android-developers] Android cursor lifetime

2010-06-01 Thread Mariano Kamp
The code you show doesn't contain the issue you describe as there is no code that would use the cursor. It seems strange that you close the database before reading from the cursor. The usual course of events is open the database, create the cursor, read from the cursor, close the cursor, close

[android-developers] AlertDialog's good looks for an Activity?

2010-05-31 Thread Mariano Kamp
I like the looks of the Alert Dialog and wonder if there is any official way to use those looks (icon, title, divider, grey gradient background for the button bar) in an Activity? The Activity does the same thing as a dialog, and uses Theme.Dialog, but must be an Activity. Cheers, Mariano --

[android-developers] Easy way to find out the current activity in unit tests?

2010-05-27 Thread Mariano Kamp
Hi, I want to test an activity that might be already finished() and the control flow has moved on to another activity. Hence in a test I would like to make sure first that I am still on the activity that I want to test. Is there any way to find out what the current activity displayed is or if my

[android-developers] Night Mode?

2010-05-27 Thread Mariano Kamp
Hey guys, how does it work? I can see that I can query the UiModeManagerhttp://developer.android.com/reference/android/app/UiModeManager.html for yes/no/auto, whereby auto means that it is set by time/luminance?! I can then ask the

Re: [android-developers] Re: Multitouch / Pinch To Zoom in Android 2.2?

2010-05-21 Thread Mariano Kamp
they made this easier in 2.2 w/ ScaleGestureDetector, which at a glance looks to be the same as the class in Gallery2. You can read that code to see how its implemented. On May 20, 6:54 pm, Mariano Kamp mariano.k...@gmail.com wrote: Hi. In Android 2.1 update 1 multitouch was silently added

[android-developers] Multitouch / Pinch To Zoom in Android 2.2?

2010-05-20 Thread Mariano Kamp
Hi. In Android 2.1 update 1 multitouch was silently added. Unfortunately it is only available when also the zoom picker is **active**?! I am sure there are cases where that setting makes sense, but it was not possible to separately turn on one or the other. I thought they didn't want to change

[android-developers] NewsRob 3.9 Beta

2010-05-17 Thread Mariano Kamp
NewsRob 3.9: apk http://claudia-und-mariano.net/newsrob390.apk - Images that are wider than the current screen are downsized proportionally so that they fit. This happens for the feed view and the simplified web view. It should work with different screen resolutions, magnifications and

[android-developers] Re: NewsRob 3.9 Beta

2010-05-17 Thread Mariano Kamp
So sorry, I am an idiot. Wrong list. Again, very sorry ;- On Mon, May 17, 2010 at 8:25 PM, Mariano Kamp mariano.k...@gmail.comwrote: NewsRob 3.9: apk http://claudia-und-mariano.net/newsrob390.apk - Images that are wider than the current screen are downsized proportionally so

Re: [android-developers] Layout Issue: Status Bar Space Remains Empty || Status Bar Animation

2010-05-15 Thread Mariano Kamp
Meanwhile I've also seen this layout issue in the emulator. On Wed, May 12, 2010 at 6:58 PM, Mariano Kamp mariano.k...@gmail.comwrote: Ok, I see. That also means that I can't sync my animation to the default hide animation from the status bar, right? Any idea what to do about the layout

[android-developers] Layout Issue: Status Bar Space Remains Empty || Status Bar Animation

2010-05-12 Thread Mariano Kamp
(1) I have an issue with the following code: getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); On my emulator this seems to work fine. The status bar disappears and the empty space is filled with the content view. However on my Nexus

Re: [android-developers] Layout Issue: Status Bar Space Remains Empty || Status Bar Animation

2010-05-12 Thread Mariano Kamp
to the status bar. It's controlled only by the system and lives in a different process and a different window. On Wed, May 12, 2010 at 5:09 AM, Mariano Kamp mariano.k...@gmail.comwrote: (1) I have an issue with the following code: getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN

Re: [android-developers] Re: On using themes?!

2010-05-11 Thread Mariano Kamp
android:angle=270 / /shape Note that com.my.package is your manifest's package name. Also I just wrote this by hand so I won't guarantee it is completely right. :} On Mon, May 10, 2010 at 11:02 AM, Mariano Kamp mariano.k...@gmail.comwrote: Hmmh, also no answer to this question on themes. Maybe

[android-developers] Re: On using themes?!

2010-05-10 Thread Mariano Kamp
abstract colors, but only styles for specific attributes used in the widgets' implementations. And again, if there is any meaningful documentation I would be happy to read it. Just send me the link or name of the book. On Sat, May 8, 2010 at 3:26 PM, Mariano Kamp mariano.k...@gmail.com wrote: Hi

[android-developers] On using themes?!

2010-05-08 Thread Mariano Kamp
Hi, I have trouble (examplehttp://groups.google.com/group/android-developers/browse_thread/thread/5b4ce3e49a1b63d2/) wrapping my head around styles/themes. Can somebody help me or point me to actual documentation? Let's say I have a drawable that I want to use as the background of a layout:

Re: [android-developers] Re: How to debug BadTokenException?

2010-05-03 Thread Mariano Kamp
wouldn't want a toast or progress result/or a force close show up when I receive a call, or trying to use some other app; those make sense only when I am looking at your app. On Dec 19, 10:38 pm, Mariano Kamp mariano.k...@gmail.com wrote: Thanks for your help here. I reas the bug report

Re: [android-developers] Re: How to debug SIGSEV?

2010-05-01 Thread Mariano Kamp
Thanks Fadden. I only got reports on the Incredible. I'll check if the users are able to reproduce it consistently. Cheers, Mariano On Sat, May 1, 2010 at 12:13 AM, fadden fad...@android.com wrote: On Apr 30, 1:22 pm, Mariano Kamp mariano.k...@gmail.com wrote: I am wondering if there is any

Re: [android-developers] Re: Extracting colors from Themes?

2010-04-30 Thread Mariano Kamp
tried this]. -Nick On Apr 29, 2:46 am, Mariano Kamp mariano.k...@gmail.com wrote: Hey Pat. Thanks for your chipping in. No, I could also hardcode the colors and that is what it seems I will have to do. In my particular case it won't make much difference at the moment. For now I

Re: [android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-30 Thread Mariano Kamp
The package is waiting for me at my home too, Frankfurt, Germany. Thanks Google! On Fri, Apr 30, 2010 at 3:00 PM, Vaervarsel vaervar...@gmail.com wrote: 2010/4/30 Trygve trygv...@gmail.com @Vaervarsel: Did you get it delivered to the door by FedEx, or did you get it by Posten (local mail)?

[android-developers] How to debug SIGSEV?

2010-04-30 Thread Mariano Kamp
Hi, I am wondering if there is any way to debug a SIGSEV? I have not much experience with those native crashs. This issue only seems to happen with the HTC Incredible and I would at least guess that my Java code cannot be the actual cause, but maybe there is something I can do to avoid triggering

Re: [android-developers] Re: Extracting colors from Themes?

2010-04-29 Thread Mariano Kamp
] and then grab the colors using Photoshop or any image editing software. Another option, again not programmatic, would be to download the Android source [or you can browse it online in the Git repo] and find the declarations for those colors. -Nick On Apr 26, 3:23 am, Mariano Kamp mariano.k...@gmail.com

Re: [android-developers] Re: Service.startForeground() messes with scheduling?

2010-04-29 Thread Mariano Kamp
these services, but as a trade-off, ensures the user knows about them and is able to explicitly stop them when desired. But like in the API documentation it doesn't mention that the thread/process gets a prio boost when running with the foreground flag. On Tue, Apr 13, 2010 at 6:42 PM, Mariano Kamp

[android-developers] Extracting colors from Themes?

2010-04-26 Thread Mariano Kamp
Hi, I want to use colors from a Theme to apply it to HTML my app is rendering. I am wondering if I can do that? I am looking to use colors like they are specified in themes.xml: item name=colorForeground@android:color/bright_foreground_dark/item .. item

[android-developers] How to use WebView in Offline mode? Can I dynamically revoke permissions?

2010-04-20 Thread Mariano Kamp
Hi, I am want to use JavaScript to process some HTML pages in the background. WebView seems to be a great basis to do this. There is one issue though. I don't want to display the web page and its images/stylesheets right away, so it is a waste of bandwidth when the stylesheets and images are

Re: [android-developers] How to use WebView in Offline mode? Can I dynamically revoke permissions?

2010-04-20 Thread Mariano Kamp
There is one issue though. I don't want to display the web page and its images/stylesheets right away, so it is a waste of bandwidth when the stylesheets and images are downloaded. I am wondering how to tell WebView not to do that. Try setCacheMode(WebSettings.LOAD_CACHE_ONLY) on the

Re: [android-developers] Re: unable to open database file after OS upgrade

2010-04-14 Thread Mariano Kamp
12, 2010 at 10:39 PM, Mariano Kamp mariano.k...@gmail.comwrote: Skink, awesome. That sounds fantastic. I will try that. Cheers, Mariano On Mon, Apr 12, 2010 at 7:45 PM, skink psk...@gmail.com wrote: On Apr 9, 2:36 pm, Mariano Kamp mariano.k...@gmail.com wrote: *bump* On Fri, Apr

Re: [android-developers] Re: Service.startForeground() messes with scheduling?

2010-04-13 Thread Mariano Kamp
Hackborn hack...@android.com wrote: Why do you want to use startForeground()? What is it giving you? If you want your code to run in the background, it is probably not what you want. On Mon, Apr 12, 2010 at 2:04 PM, Mariano Kamp mariano.k...@gmail.com wrote: 1) CPU is not a problem per se. My

Re: [android-developers] Re: unable to open database file after OS upgrade

2010-04-12 Thread Mariano Kamp
2010-04-11 13:12 webviewCache.db -rw-rw app_108 app_108277504 2010-04-11 16:38 newsrob.db And with sqlite3 from the command line: select count(*) from entries; 51 On Sat, Apr 10, 2010 at 9:10 AM, Mariano Kamp mariano.k...@gmail.com wrote: Yes, that worked for me too. Actually re

[android-developers] Re: Service.startForeground() messes with scheduling?

2010-04-12 Thread Mariano Kamp
that it messes with priorities either. But then I also don't see the actual implementation of making this foreground/background service more unkillable. It seems just to be the IPC code. Any ideas? On Thu, Apr 8, 2010 at 6:40 PM, Mariano Kamp mariano.k...@gmail.com wrote: Hi. I updated my app to use

Re: [android-developers] Re: Service.startForeground() messes with scheduling?

2010-04-12 Thread Mariano Kamp
not be requesting to do so. On Mon, Apr 12, 2010 at 10:51 AM, Mark Murphy mmur...@commonsware.comwrote: Mariano Kamp wrote: Is that a coincidence or does startForeground() mess with the thread's prio or does anything else but what is written below? Quoting myself: ...but a persistent

Re: [android-developers] Re: unable to open database file after OS upgrade

2010-04-12 Thread Mariano Kamp
Skink, awesome. That sounds fantastic. I will try that. Cheers, Mariano On Mon, Apr 12, 2010 at 7:45 PM, skink psk...@gmail.com wrote: On Apr 9, 2:36 pm, Mariano Kamp mariano.k...@gmail.com wrote: *bump* On Fri, Apr 2, 2010 at 12:53 PM, Mariano Kamp mariano.k...@gmail.com wrote

Re: [android-developers] Re: Service.startForeground() messes with scheduling?

2010-04-12 Thread Mariano Kamp
Quoting myself: And you have done so wonderfully. What is it your trying to say though? That it is ok to raise the priority when I don't want my process to be killed. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

Re: [android-developers] Re: Service.startForeground() messes with scheduling?

2010-04-12 Thread Mariano Kamp
and the usefulness of this thread is nearing zero now, so I will stop before I waste anymore of everybody's time. Thanks so far. On Mon, Apr 12, 2010 at 10:58 PM, Mark Murphy mmur...@commonsware.comwrote: Mariano Kamp wrote: Quoting myself: And you have done so wonderfully. What is it your

Re: [android-developers] Re: unable to open database file after OS upgrade

2010-04-10 Thread Mariano Kamp
and the phone is rooted, ask the user to clean the app cache, and not install app on SDCard. That resolved all these kind of open database and file corruption issues. Walter On Apr 9, 12:46 pm, Mariano Kamp mariano.k...@gmail.com wrote: Mariano Kamp wrote: I could ask the people

[android-developers] Re: unable to open database file after OS upgrade

2010-04-09 Thread Mariano Kamp
*bump* On Fri, Apr 2, 2010 at 12:53 PM, Mariano Kamp mariano.k...@gmail.comwrote: Hi, recently I very often get error reports from users that upgrade their OS. This includes at least 1.5, 1.6, 2.1 and custom ROMs. Anybody else seeing these? Any idea what to do about it? Cheers, Mariano

[android-developers] Hard to describe ... How to quickly scan through all rows?! How to pass a cursor between two activities?!

2010-04-09 Thread Mariano Kamp
Hi, I have an app that has a list view of messages and a detail view. If you click on a message in the list view the detail view is opened for the message in the row you clicked on. In the detail view you also can go back and forth to other messages. So I pass in the position of the row the

Re: [android-developers] Re: unable to open database file after OS upgrade

2010-04-09 Thread Mariano Kamp
there. So you never had this issue with one of your apps? On Fri, Apr 9, 2010 at 6:39 PM, Mark Murphy mmur...@commonsware.com wrote: Mariano Kamp wrote: *bump* What have you done to gather more info? For example, is the issue that the database is deleted, or that the database exists but somehow

Re: [android-developers] Re: unable to open database file after OS upgrade

2010-04-09 Thread Mariano Kamp
Mariano Kamp wrote: I could ask the people with custom ROMs to check if the db-file is still there. Or add your own exception handler for this, do some experiments, and then send the results to yourself via whatever mechanism you're using to get the stack trace. That's a good idea

[android-developers] Service.startForeground() messes with scheduling?

2010-04-08 Thread Mariano Kamp
Hi. I updated my app to use the new startForeground() method of Service. Now beta testers are complaining about the foreground app going slow. Is that a coincidence or does startForeground() mess with the thread's prio or does anything else but what is written below? Just as an additional

[android-developers] Non-stretchable background images

2010-04-05 Thread Mariano Kamp
Hi, I want to generate background drawables for buttons and I am wondering if there is any way to specify that the button can stretch, e.g. when using fill_parent, but the image in it should not stretch? I want to use the extra space for the touch area, but not have the icons on it look all

[android-developers] unable to open database file after OS upgrade

2010-04-02 Thread Mariano Kamp
Hi, recently I very often get error reports from users that upgrade their OS. This includes at least 1.5, 1.6, 2.1 and custom ROMs. Anybody else seeing these? Any idea what to do about it? Cheers, Mariano One example: -- Time: Fri Mar 26 11:36:41 PDT 2010 -- Android Version: sdk=4,

[android-developers] Proper way to update remote views in notifications?

2010-03-21 Thread Mariano Kamp
Hi, when using the new Service.startForeground() method how do you do updates to remote widgets? What is the right way? Updating the remote views doesn't seem to work. Should I notify again with the same ID instead? I didn't see any documentation on that:

Re: [android-developers] Proper way to update remote views in notifications?

2010-03-21 Thread Mariano Kamp
, Mark Murphy mmur...@commonsware.com wrote: Mariano Kamp wrote: when using the new Service.startForeground() method how do you do updates to... Those two concepts are not strictly tied, AFAIK. A Service would update the app widget the same way regardless of whether or not it called

[android-developers] PendingIntents in Notifications

2010-03-21 Thread Mariano Kamp
I would like to show a notification that displays the progress of an ongoing operation, but at the same time the remote view should contain a cancel button to stop the ongoing operation. I have to specify a contentIntent that is launched when clicking on the notification: If I don't specify that

[android-developers] android:layout_marginRight?

2010-03-17 Thread Mariano Kamp
Hi, I have a small text view (see below) that should span the complete width, except for a margin left and right. No matter what I specify for marginRight, it always gets added to the left side, i.e. the margin left grows and the text view is flush to the right side though. Am I doing

Re: [android-developers] android:layout_marginRight?

2010-03-17 Thread Mariano Kamp
android:textColor=#fff android:background=@drawable/status_background android:visibility=gone/ On Wed, Mar 17, 2010 at 8:43 PM, Romain Guy romain...@android.com wrote: Why are you using width=fill_parent and gravity=center_horizontal? It doesn't make sense. On Wed, Mar 17, 2010 at 12:12 PM, Mariano

[android-developers] Trouble understanding launching intents

2010-03-16 Thread Mariano Kamp
Hi, I have an hypothetical app that has two activities: A (List), B (Details). A can be launched and can itself launch B. I also have a widget that can also launch B via the use of an PendingIntent. Activity B looks at the Intent's extras ie1 and ie2 when created and shows different data then.

Re: [android-developers] Application losing SharedPreferences and Sqlite database on Droid

2010-03-16 Thread Mariano Kamp
I get lots of these (database disk image is malformed). Also unable to open database file, error code 14: unable to open database file, database or disk is full and many more. I can't put my finger on what the issue is though. unable to open database file is my current favorite. It seems to

Re: [android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-06 Thread Mariano Kamp
What kind of confirmation is that? Is that the first mail or a confirmation after you went to their website? I am asking, because I haven't got any email even though I have an app in the Market that would qualify. Should I start to worry or are the first mails sent out incrementally? On Sat, Mar

Re: [android-developers] AccountManager.getAuthToken() problem with more than one app

2010-03-04 Thread Mariano Kamp
This whole Auth 2.0 thing is a total mess. Did you test it on Android 2.0.1 devices? It didn't crash for you there? Can you support hosted accounts? I think I will give up on this until Google documents how to use their implementation (the Google one, not the Android framework). There is just

[android-developers] Need help with Remote Views. Not updating anymore after the first update?

2010-02-28 Thread Mariano Kamp
I have remote views that are updated during their configuration. So far so good. When later on the state they should monitor changes I want to update them again and I use the same code to alter the remote views, but nothing happens. When looking at the remote views in the debugger I can see that

Re: [android-developers] Re: Android, send me logs! - code library for detecting force-close and sending logs

2010-02-28 Thread Mariano Kamp
What's nice about Apple's approach here is that developers don't have to do anything... it's a good way of improving the code quality for *all* apps. I was pretty surprised and happy when it came online a month or two ago because it confirmed that what was crashing across our user base were

[android-developers] Re: Widget does not render on wvga854 ?

2010-02-27 Thread Mariano Kamp
Did you find a solution to your issue? I think I am seeing weird behavior with widgets too, but not constrained to a single skin. I usually don't see updates on the emulator, except sometime. I always see the updates on the devices I test with. On Dec 31 2009, 3:14 am, Chopcsu

Re: [android-developers] Re: Widget does not render on wvga854 ?

2010-02-27 Thread Mariano Kamp
Oh and I forgot to mention that in the emulator the debugger doesn't seem to work anymore since I use widgets. But this might be not related and maybe my emulator just has some defect? On Sat, Feb 27, 2010 at 5:01 PM, Mariano Kamp mariano.k...@gmail.comwrote: Did you find a solution to your

[android-developers] App Widget Lifecycle?

2010-02-27 Thread Mariano Kamp
Hey guys,   I am bit puzzled by an app widget's lifecyle.   When I create a widget my own configuration activity is launched, some data is entered, I store this data some place and call finish on my config activity like this: Intent resultValue = new Intent();

Re: [android-developers] A Widget that looks like a launcher icon?

2010-02-23 Thread Mariano Kamp
NO guarantee about what a shortcut will look like. Other devices (especially ones with custom system UIs like MOTOBLUR or HTC Sense) might have a different look and feel. Or in the next update of Android we might change the way shortcuts are presented. On Mon, Feb 22, 2010 at 1:40 PM, Mariano Kamp

Re: [android-developers] A Widget that looks like a launcher icon?

2010-02-23 Thread Mariano Kamp
of place as it lives with all the other shortcuts on the same home screen. On Tue, Feb 23, 2010 at 9:06 PM, Romain Guy romain...@android.com wrote: Why not make a 1x1 widget with a Gmail like icon? It would be close enough to a shortcut :) On Tue, Feb 23, 2010 at 11:50 AM, Mariano Kamp mariano.k

[android-developers] A Widget that looks like a launcher icon?

2010-02-22 Thread Mariano Kamp
Hi, I would like to write a widget that emulates the look of an application launcher shortcut. In particular I want the white font label on a black, semi-transparent background. As it should look the same as the launcher shortcut I wouldn't like too much to imitate the actual look, but to

[android-developers] Issue with Android 2.0 Account API / getAuthTokenLabel() results in Resources$NotFoundException: String resource ID #0x0

2010-02-16 Thread Mariano Kamp
Hi, using the new Account API to access Google accounts I have code that works with Android 2.1, but breaks with Android 2.0.1. W/ResourceType(16375): No package identifier when getting name for resource number 0x E/JavaBinder(16375): *** Uncaught remote exception! (Exceptions are not

[android-developers] Android 2.0.1 / SDK Level 6 or 7 or what?

2010-02-05 Thread Mariano Kamp
I see changed behavior in WebView on 2.0.1 devices, so I just read up (however little there was - very quick read) on WebSettings.getDefaultZoom(). It says Level 7. I checked the 2.0.1 SDK and it returns Level 6. However when checking for the method getDefaultZoom() with reflection, yay, it is

[android-developers] WebView: How to find out that is scrolled?

2010-01-31 Thread Mariano Kamp
I would like to be notified when the user scrolled in the WebView. Besides WebView.setScrollChanged() being protected this looks like the right method. Unfortunately it doesn't seem to care for user induced scrolling, e.g. scrolling with the keyboard. Any idea? Cheers, Mariano -- You received

[android-developers] Re: How to narrow down PACKAGE_REPLACED, PACKAGE_ADDED?

2010-01-29 Thread Mariano Kamp
Anyone? ;) On Wed, Jan 27, 2010 at 9:27 PM, Mariano Kamp mariano.k...@gmail.comwrote: Hey, I need to listen to the above mentioned actions/events. I am actually only interested in two packages. Now with the current declaration in my manifest my app's process is started every time any app

[android-developers] Re: How to find GoogleLoginServiceConstants.FEATURE_LEGACY_HOSTED_OR_GOOGLE?

2010-01-28 Thread Mariano Kamp
*bump* ;-) On Fri, Jan 22, 2010 at 12:32 PM, Mariano Kamp mariano.k...@gmail.comwrote: Hi, I am trying to use the new Account API to get rid of my homegrown authentication against Google. The recently introduced Account API seems to do the trick, only it is totally undocumented about

[android-developers] How to narrow down PACKAGE_REPLACED, PACKAGE_ADDED?

2010-01-27 Thread Mariano Kamp
Hey, I need to listen to the above mentioned actions/events. I am actually only interested in two packages. Now with the current declaration in my manifest my app's process is started every time any app is installed or replaced: receiver android:name=com.newsrob.PackageChangedReceiver

[android-developers] How to find GoogleLoginServiceConstants.FEATURE_LEGACY_HOSTED_OR_GOOGLE?

2010-01-22 Thread Mariano Kamp
Hi, I am trying to use the new Account API to get rid of my homegrown authentication against Google. The recently introduced Account API seems to do the trick, only it is totally undocumented about the use with Google as provider. Now that the Android 2.1 sources are out I checked if the

[android-developers] Where can the user select different font-sizes?

2010-01-21 Thread Mariano Kamp
Hi, I have requests to offer different font sizes in my app, in particular offer bigger sizes for people with less than perfect vision. Now, I could my own preferences and mechanism for that, but I think that the font-size is more user/phone-specific than app-specific. So what is the proper

[android-developers] Best practice for dealing with assets on different dpi devices?

2010-01-21 Thread Mariano Kamp
My app provides some images in its asset directory. Is there any right way to deal with different resolutions? There doesn't seem to be an asset-hdpi directory ;-) Some of those images are buttons and I would appreciate if they are of the same relative size. -- You received this message because

[android-developers] Initialization Order? ContentProvider vs. Application

2010-01-15 Thread Mariano Kamp
Sometimes less than 1 promille of the database upgrades of my app fail. This in itself would be annoying, but what is worse that I don't get to know about it .. usually. I installed an exception handler in my Application, but it seems that the ContentProvider get initialized before the

[android-developers] VerifyError issue with Android 1.5 devices

2010-01-14 Thread Mariano Kamp
I got an error message from a user that runs Android 1.5. The error reported os a java.lang.VerifyError and it seems to be based on the method setBuildInZoomControls missing. The thing is that this method should be there on an Android 1.5 device and my app's manifest specifies the minimum sdk

Re: [android-developers] VerifyError issue with Android 1.5 devices

2010-01-14 Thread Mariano Kamp
On Thu, Jan 14, 2010 at 5:31 PM, TreKing treking...@gmail.com wrote: I ran into an issue with the Motorola Cliq maps implementation (on 1.5) that wasn't happening on other phones because that device's particular build didn't have the correct implementation of the MyLocationOverlay class. Ah,

Re: [android-developers] Re: PACKAGE_ADDED, PACKAGE_REMOVED and PACKAGE_REPLACED...

2010-01-11 Thread Mariano Kamp
*bump* ;-) On Thu, Nov 19, 2009 at 12:19 AM, sdphil phil.pellouch...@gmail.com wrote: how do you do that? I tried: receiver android:name=com.test.MyApp.UpdateReceiver intent-filter action android:name=android.intent.action.PACKAGE_ADDED/ action

  1   2   3   4   >