Re: [android-developers] point me in the right direction?

2011-11-07 Thread Pepijn Van Eeckhoudt
AFAIK there is no equivalent widget for a UITableView in Android. I emulated it using a ListView and a custom ListAdapter implementation that wraps the tree data model. Pepijn On 07/11/2011 00:09, bob wrote: I'm working on converting an app from iPhone to Android. Here's a screenshot of the

Re: [android-developers] Transactions in a ContentProvider

2011-11-04 Thread Pepijn Van Eeckhoudt
Override ContentProvider#applyBatch, start a transaction on your database, apply all the operations and then commit (or rollback) the transaction. The default implementation delegates each operation to the corresponding ContentProvider method so you can probably do this as: startTransaction

Re: [android-developers] Re: Slowdown when debugger is attached

2011-10-26 Thread Pepijn Van Eeckhoudt
more people would be complaining... Pepijn On 21/10/2011 17:36, Pepijn Van Eeckhoudt wrote: In my project I've implemented a custom view that does a substantial amount of processing when rendering itself. When I attach the debugger to my application I'm experiencing so much slowdown

Re: [android-developers] Re: Slowdown when debugger is attached

2011-10-26 Thread Pepijn Van Eeckhoudt
On 26/10/2011 01:14, Doug wrote: Emulator or device? The emulator is already slow, and it will only get worse if you attach a debugger to it. This is on real devices. I'm currently testing on an HTC Desire but this happens on all our test devices; all of which are rather high end phones and

Re: [android-developers] Slowdown when debugger is attached

2011-10-24 Thread Pepijn Van Eeckhoudt
by this; otherwise more people would be complaining... Pepijn On 21/10/2011 17:36, Pepijn Van Eeckhoudt wrote: In my project I've implemented a custom view that does a substantial amount of processing when rendering itself. When I attach the debugger to my application I'm experiencing so much slowdown

[android-developers] Slowdown when debugger is attached

2011-10-21 Thread Pepijn Van Eeckhoudt
In my project I've implemented a custom view that does a substantial amount of processing when rendering itself. When I attach the debugger to my application I'm experiencing so much slowdown that the application is essentially not useable anymore. Due to the increased time taken by certain

Re: [android-developers] Re: Installing APK + DB

2011-07-05 Thread Pepijn Van Eeckhoudt
On 04/07/2011 03:19, NikolaMKD wrote: Save it as resource in raw folder, load it as resource then try to copy it into app path. It does not need to be inside /databases folder. It can be anywhere (SDcard not recommended) Why is copying onto the sdcard not recommeded? Pepijn -- You received

Re: [android-developers] Line thickness

2011-06-29 Thread Pepijn Van Eeckhoudt
Paint#setStrokeWidth On 28/06/2011 20:23, Brian Hodge wrote: Hey, I've been looking around for a while now and can't really find much of the subject. I've got a sudoku puzzle on the go to try and learn how to use Android. The problem i have is that i want the smaller 3x3 grids to have a thin

Re: [android-developers] LogCat on Intellij IDEA

2011-06-29 Thread Pepijn Van Eeckhoudt
Indeed. In 10.0 it's only in ultimate edition but in 10.5 it's available in the community edition as well. When you're working on an Android project (i.e., a project with at least one Android module in it), there's a tab in the bottom tabbar titled 'Android Logcat' that does exactly what you

[android-developers] Full screen account setup activity

2011-06-28 Thread Pepijn Van Eeckhoudt
When I add a new email account via the 'Accounts Sync' settings screen a full screen activity appears that takes you through the account configuration process. If I do the same thing for my own custom account type, the content view of my account setup activity is displayed in a small dialog

Re: [android-developers] Simulate UI Actions on device

2011-06-14 Thread Pepijn Van Eeckhoudt
On 11/06/2011 20:25, Mark Murphy wrote: On Fri, Jun 10, 2011 at 9:12 AM, Gorav Singaltechi...@gmail.com wrote: Actually, I want to have mobile application running in background. And, I have a java application running on desktop, which will send commands through socket. And, the device

Re: [android-developers] Re: SQLite complex query and handling results

2011-06-10 Thread Pepijn Van Eeckhoudt
You could use the group_concat aggregation function to concatenate the category titles. That way you'll only have a single row per post. Another alternative is to simply not use CursorAdapter but write your own work-alike instead, possibly starting from the CursorAdapter source code. Pepijn

Re: [android-developers] LookUp

2011-06-10 Thread Pepijn Van Eeckhoudt
Have a look at the 'Search' documentation (http://developer.android.com/guide/topics/search/index.html). Not exactly what you're trying to do, but it's close enough that it should give you some inspiration. Pepijn On 10/06/2011 11:21, MOHIT SHARMA wrote: Hi , Can anybody tell , how create a

Re: [android-developers] Simulate UI Actions on device

2011-06-10 Thread Pepijn Van Eeckhoudt
If you're trying to test your own application code you can do this via the Instrumentation API. Pepijn On 10/06/2011 14:34, Mark Murphy wrote: On Thu, Jun 9, 2011 at 3:41 AM, goravtechi...@gmail.com wrote: I want to simulate keyboard events, touch events on screen. And, I don;t want to have

Re: [android-developers] Flipping a draw 9 image horizonally..

2011-06-08 Thread Pepijn Van Eeckhoudt
You need to wrap the Bitmap in a NinePatchDrawable in order to get the stretching behavior. Pepijn On 08/06/2011 13:57, Raj wrote: Hi I am trying to rotate a draw 9 image horiontally. But all the stretching is done. Bitmap bmp =

Re: [android-developers] Which Reference System is used by the Google Maps Api

2011-05-06 Thread Pepijn Van Eeckhoudt
It doesn't seem to be documented but I would assume they are using WGS-84. GeoPoints are as a lon/lat coordinate so that rules out usage of projected grid coordinates. The correct definition of the 'google projection' can be found in epsg:3857. That essentially says to project WGS84 ellipsoid

Re: [android-developers] Phone for development

2011-04-28 Thread Pepijn Van Eeckhoudt
@googlegroups.com *Subject:*Re: [android-developers] Phone for development Thanks Pepijn. That helps a lot. I'll most probably do with a HTC now. Thanks everyone. On Wed, Apr 27, 2011 at 8:45 PM, Pepijn Van Eeckhoudt pep...@vaneeckhoudt.net mailto:pep...@vaneeckhoudt.net wrote: On 27/04/2011 16

Re: [android-developers] Phone for development

2011-04-27 Thread Pepijn Van Eeckhoudt
On 27/04/2011 16:12, Raghav Sood wrote: Okay. I'll check that out. Still can someone suggest a reasonably priced android 2.2 or above phone? Thanks Since no one's giving you any advice I'll give it a try ;) The dev phones I use myself are Motorola Milestone XT720, HTC Desire, Samsung Galaxy

Re: [android-developers] Re: Honeycomb / 3.0 / OpenGL ES / Broken / Again!?!

2011-04-27 Thread Pepijn Van Eeckhoudt
On 27/04/2011 17:37, MichaelEGR wrote: Should I file a bug? I've already spent too much time tracking down the problem to create a separate test case. I'm now not going to have a private beta for I/O as it is due to this delay. So many words and you still didn't actually say what

Re: [android-developers] Re: Honeycomb / 3.0 / OpenGL ES / Broken / Again!?!

2011-04-26 Thread Pepijn Van Eeckhoudt
On 26/04/2011 07:54, Romain Guy wrote: What is the G-Slate you keep referring to?? LG's honeycomb tablet http://www.lg.com/us/mobile-phones/tablets/LG-V909.jsp I guess. Pepijn -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

Re: [android-developers] How to get the text height

2011-03-24 Thread Pepijn Van Eeckhoudt
You can get various text size values either using Paint#getFontMetrics or Paint#getTextBounds. Pepijn On 24/03/2011 08:55, a a wrote: I want to draw a text and rect like following: 1.a, b, c, d are vertex, actually, there is not exist the four vertex. here is just for mark the rectangle. 2.

Re: [android-developers] Re: How to capture key events from View subclass

2011-03-24 Thread Pepijn Van Eeckhoudt
I've never done this myself, but from reading the InputMethodManager documentation I get the impression you need to override View#onCreateInputConnection(EditorInfo) in order to directly interact with an IME. Might be worth a shot... Pepijn On 24/03/2011 13:26, Rich E wrote: On Tue, Mar

Re: [android-developers] SQLite insert optimization

2011-03-23 Thread Pepijn Van Eeckhoudt
You can use ContentProvider#bulkInsert or ContentProvider#applyBatch to do a bunch of operations in one go. Pepijn On 23/03/2011 08:59, ydm wrote: Hello! I have to insert around 100 rows in a sqlite db at once (trough content provider). Is there any way to make it process all the queries at

Re: [android-developers] Re: how to obtain the default font size

2011-03-16 Thread Pepijn Van Eeckhoudt
On 16/03/2011 14:05, guich wrote: Its really a shame that this can't be done. I never found a solution, in any other threads. Boy, i miss Windows Mobile, with their SystemMetrics api. Have you tried reuse the correct style/theme (http://developer.android.com/guide/topics/ui/themes.html)? Bit

[android-developers] Drawing a scaled path without scaling the stroke width

2011-03-11 Thread Pepijn Van Eeckhoudt
In my app I'm drawing polygons using Canvas#drawPath. The polygons are stroked with a stroke width 1. In order to zoom in and out on the polygons I tried setting a scaling affine transform on the canvas, but this causes the stroke width to be scaled as well. At scale 1 and stroke width 5 the

[android-developers] Double precision floating point in renderscript

2011-02-23 Thread Pepijn Van Eeckhoudt
As far as I can tell the current version of renderscript only supports single precision floating point. Is this correct? Pepijn -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] The purpose of resource name mipmap?!

2011-02-15 Thread Pepijn Van Eeckhoudt
http://en.wikipedia.org/wiki/Mipmap On 15/02/2011 10:33, Gary Wang wrote: Dear all, I found the following resource folders are existing in Honeycomb- version Borwser apk. mipmap-hdpi mipmap-mdpi The meaning of mipmap resource is not listed in its SDK's documentation. Can anyone help to

Re: [android-developers] Density independent values through code for views

2011-02-15 Thread Pepijn Van Eeckhoudt
On 15/02/2011 15:03, Deepak Kumar wrote: One of the solution can be multiplying these values with ratio (according to device).Is there any other way to do the same? In code, I define constants in 'dp' and then multiply with DisplayMetrics#density

Re: [android-developers] Re: Careful, Dell Streak 7 ignores manifest setting for Orientation

2011-02-14 Thread Pepijn Van Eeckhoudt
Adding android:configChanges=orientation to activities that handle orientation changes themselves should do the trick. Of couse, it becomes your own responsibility to handle the config change properly then... Pepijn On 14/02/2011 17:13, Kim wrote: Thanks Diane. I see my thinking was wrong. I

[android-developers] Library packaging best practices

2011-02-07 Thread Pepijn Van Eeckhoudt
What is the recommended way of distributing a reusable library (i.e., jar file, assets, documentation, sample code)? One possibility I'm considering is an sdk extra (the same way for instance the google market_licensing library is made available in SDK manager. Is this a supported mechanism

Re: [android-developers] Library packaging best practices

2011-02-07 Thread Pepijn Van Eeckhoudt
On 07/02/2011 13:45, Mark Murphy wrote: On Mon, Feb 7, 2011 at 6:00 AM, Pepijn Van Eeckhoudt pep...@vaneeckhoudt.net wrote: ZIP file, backed by a GitHub repo or the equivalent. It's a closed source project so no Github or the like. One possibility I'm considering is an sdk extra (the same

Re: [android-developers] app causes reboot on DroidX after activity gets destroyed - anybody having similar issues?

2011-02-07 Thread Pepijn Van Eeckhoudt
On 04/02/2011 22:12, mot12 wrote: Any suggestion as to why a phone may reboot are highly welcome. I've only been able to make phones reboot by triggering a crash/exception in a system process. This is standard Android behavior as far as I can tell. This happened to me when I was

Re: [android-developers] app causes reboot on DroidX after activity gets destroyed - anybody having similar issues?

2011-02-07 Thread Pepijn Van Eeckhoudt
what is going on; it is *extremely* helpful in a bug you file since the engineer can very likely tell what the problem is and how to fix it from the log. On Mon, Feb 7, 2011 at 9:15 AM, Pepijn Van Eeckhoudt pep...@vaneeckhoudt.net mailto:pep...@vaneeckhoudt.net wrote: On 04/02/2011 22:12

Re: [android-developers] Re: Grab phonebook-contacts via ContactsContract-API

2011-01-26 Thread Pepijn Van Eeckhoudt
I think AccountManager#setUserData is what you should use to store additional account data. At least that's what I did in my application and it works as I expected. Pepijn Op 26 Jan 2011 om 21:58 heeft Dmitri Plotnikov dplotni...@google.com het volgende geschreven: I think it is just a

Re: [android-developers] Re: performance when passing background data to ui thread

2011-01-26 Thread Pepijn Van Eeckhoudt
I tend to prefer the handler approach over synchronized methods just because it's less easy to shoot yourself in the foot if only a single thread touches your data structures. Performance wise there shouldn't be any fundamental difference between the handler approach and the synchronized

[android-developers] How do you avoid self notification when with ContentProviders

2011-01-25 Thread Pepijn Van Eeckhoudt
I've implemented a custom ContentProviders that calls notifyChange passing in null as the ContentObserver. There doesn't seem to be a way to pass a ContentObserver to a ContentProvider so that's the only option. I would now like to avoid receiving self notifications for changes I make via my

[android-developers] Recommended way of passing callback context data between activities

2011-01-18 Thread Pepijn Van Eeckhoudt
Hi, Quite often when I launch an Activity using startActivityForResult I need to store some context data that will be needed in my onActivityResult implementation. (e.g., a reference to some in memory data that will be modified after the child activity finishes). The data in question is

[android-developers] Recommended way of passing callback context data between activities

2011-01-18 Thread Pepijn Van Eeckhoudt
Hi, Quite often when I launch an Activity using startActivityForResult I need to store some context data that will be needed in my onActivityResult implementation. (e.g., a reference to some in memory data that will be modified after the child activity finishes). The data in question is transient