[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: I ran it on the emulator after Nexus Galaxy users reported the issue. Is this my co

[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: I ran it on the emulator after Nexus Galaxy users reported the issue. Is this my cod

[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 ref

[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 th

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

2010-11-01 Thread Mariano Kamp
in table for which you are retrieving > data you display some toast and close activity or Display some TextView > rather than ListView. > * > On Mon, Nov 1, 2010 at 11:05 PM, Mariano Kamp wrote: > >> Any idea how I can get to the bottom of this? >> >> I am wond

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

2010-11-01 Thread Mariano Kamp
, Romain Guy 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 wrote: > Hi, > I occasionally get exceptions like this one here: > android.database.CursorIndexOutOfBoundsException: Index 0 req

[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 android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.jav

[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 subscribe

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

2010-09-22 Thread Mariano Kamp
} On Tue, May 11, 2010 at 9:08 AM, Mariano Kamp wrote: > 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.U

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 wrote: > Hi. > > using a WebView with Froyo I don't see the YouTube thumbnails anymore. > WebViewClient.shouldOverrideUrlLoading() is not called in Froyo, but was > called

[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 don't.

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

2010-06-29 Thread Mariano Kamp
tring("key")); svs.putString("key", "value2"); assertEquals("value2", svs.getString("key")); } public void testLong() { svs.putLong("key", 100l); assertEquals(Long.valueOf(100l), svs.getLong("key")); } public void testLongWithDefault()

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] 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: Need help with a Java issue

2010-06-23 Thread Mariano Kamp
>> rest of your stack trace, which you chose not to show. But now you >> have a better idea how to narrow this down by yourself, without >> exposing the code to us, I hope. >> >> On Jun 22, 2:59 am, Mariano Kamp wrote: >> > Hey guys. >> > >> >

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 wrote

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

2010-06-22 Thread Mariano Kamp
delighted to learn something new about exceptions. Maybe that's the cue that's missing. > On Jun 22, 2:59 am, Mariano Kamp 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

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

2010-06-22 Thread Mariano Kamp
not verify with complete sources). > 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 > wrote: > > Hey g

[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 c

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

2010-06-14 Thread Mariano Kamp
s(false); > > However I am still getting the issue. Is there another way to > disable? Any help is much appreciated. > > Keith > > On Mon, Jun 14, 2010 at 1:47 PM, Mariano Kamp > wrote: > > Hey Keith, > > I think it would be best to keep the discussion pu

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

2010-06-14 Thread Mariano Kamp
f 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 wrote: > I checked 20 error reports and 100% were from either the HTC Desire or the > HTC Incre

[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 wrote: Hi, did anybody encounter the RuntimeException with the message "Unknown error"? Cheers, Mariano java.lang.RuntimeException: Unknow

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

2010-06-14 Thread Mariano Kamp
but I wouldn't have thought it would 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 wrote: > > Do you guys use the 64 bit d

[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 android.app.ActivityThread

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 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 - for examp

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

2010-06-11 Thread Mariano Kamp
ew Runnable() { > public void run() { >myListAdapter.notifyDataSetChanged(); > } > }); > ... > > > On Jun 3, 2:55 pm, Mariano Kamp wrote: > > Hi. > > > > Just watched Google IO's "World Of ListView" presentation [1]. Awesome > > stuf

[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 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

[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 commente

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 the

Re: [android-developers] App Widget Lifecycle?

2010-06-01 Thread Mariano Kamp
quot;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

[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 -- Yo

[android-developers] Night Mode?

2010-05-27 Thread Mariano Kamp
Hey guys, how does it work? I can see that I can query the UiModeManager for "yes"/"no"/"auto", whereby "auto" means that it is set by time/luminance?! I can then ask the Configuration

[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

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

2010-05-21 Thread Mariano Kamp
elf. Looks like 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 wrote: > > Hi. > > > > In Android 2.1 up

[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 the

[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 wrote: > 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

[android-developers] NewsRob 3.9 Beta

2010-05-17 Thread Mariano Kamp
NewsRob 3.9: 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 orientati

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 wrote: > 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 layou

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

2010-05-12 Thread Mariano Kamp
ar. 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 wrote: > >> (1) >> >> I have an issue with the following code: >> >> getWindo

[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 On

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

2010-05-11 Thread Mariano Kamp
t; > > > 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 wrote: > >> Hmmh, also no answer to this

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

2010-05-10 Thread Mariano Kamp
ou can't define 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 wrote:

[android-developers] On using themes?!

2010-05-08 Thread Mariano Kamp
Hi, I have trouble (example) 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: h

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

2010-05-03 Thread Mariano Kamp
ng a AsyncTask. > > I 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 wrote: > > Thanks

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 wrote: > On Apr 30, 1:22 pm, Mariano Kamp wrote: > > I am wondering if there is any way to debug a SIGS

[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: 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 wrote: > 2010/4/30 Trygve > > @Vaervarsel: >> Did you get it delivered to the door by FedEx, or did you get it by >> Posten (local mail)? >>

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

2010-04-29 Thread Mariano Kamp
digging through > the source for the system theme/style xml files.. available in the Git > repo], something like: @android:color/resourceid .. This will allow > you to use the same colors a theme is using [providing those color > resources are public.. I've never tried this]. >

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

2010-04-29 Thread Mariano Kamp
boosts the scheduling prio which > is totally the wrong thing to do here as the download doesn't need low > latency at all. I just think it would not be a practical problem, because > downloads tend to be I/O bound almost 100% of the time. But I still hope you > see the picture I am t

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

2010-04-29 Thread Mariano Kamp
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 wrote: > Hi, > > I

[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: @android:color/bright_foreground_dark .. @android:color/background_dark .. @android:color/prim

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_ONL

[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 down

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

2010-04-14 Thread Mariano Kamp
. On Mon, Apr 12, 2010 at 10:39 PM, Mariano Kamp wrote: > Skink, > > awesome. That sounds fantastic. I will try that. > > Cheers, > Mariano > > > On Mon, Apr 12, 2010 at 7:45 PM, skink wrote: > >> >> >> On Apr 9, 2:36 pm, Mariano Kamp wrote: >

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

2010-04-13 Thread Mariano Kamp
icture I am trying to convey here? Cheers, Mariano On Tue, Apr 13, 2010 at 1:05 AM, Dianne Hackborn 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 K

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

2010-04-12 Thread Mariano Kamp
on 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 wrote: > Mariano Kamp wrote: > > > > Quoting myself: > > > > And you have done so wonderfu

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: "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 wrote: > > > On Apr 9, 2:36 pm, Mariano Kamp wrote: > > *bump* > > > > On Fri, Apr 2, 2010 at 12:53 PM, Mariano Kamp >wrote: > > > > >

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

2010-04-12 Thread Mariano Kamp
run in the foreground > so should not be requesting to do so. > > > On Mon, Apr 12, 2010 at 10:51 AM, Mark Murphy wrote: > >> Mariano Kamp wrote: >> > Is that a coincidence or does startForeground() mess >> > with the thread's prio or does anything else but w

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

2010-04-12 Thread Mariano Kamp
f1bc903f2e1c4_l1798> reply.recycle(); 1799 <#127f1bc903f2e1c4_l1799> } Which isn't all that more helpful ;-( I don't see that it messes with priorities either. But then I also don't see the actual implementation of making this foreground/background service more unki

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 wrote: Yes, that worked for me too. Actually re-installing the apps on the

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

2010-04-10 Thread Mariano Kamp
't work 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 wrote: > > > Marian

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 >

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 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 someho

[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 user

[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 wrote: > 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? > > C

[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 infor

[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 differ

[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, release=1.6

[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 I

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

2010-03-21 Thread Mariano Kamp
, "Mark Murphy" 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 startForeground(

[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: http://developer.android.com/intl/zh-CN/g

Re: [android-developers] android:layout_marginRight?

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

[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 somethi

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 seem

[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. Th

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 alre

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 we

[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 t

[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(); resultValue.putExtra(AppWidgetManag

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 wrote: > Did you find a solution to your issue? I th

[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 wrote: > Also i ha

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

2010-02-23 Thread Mariano Kamp
looks strangely out 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 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 1

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

2010-02-23 Thread Mariano Kamp
uarantee 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,

[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 re-use/c

[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 ther

[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 wrote: > 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

[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 wrote: > 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

[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: I currently do the filtering in my code, but is there a way

[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 official

[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] 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 w

[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 Application

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 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, I see. That woul

[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 level

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 wrote: > how do you do that? > > I tried: > > > > > > > > > > > > And a bunch of variations of android:path, but I couldn't get it to > only notify me when it was my app. > > tia. > > On Nov 18, 12:58

  1   2   3   4   >