Re: [android-developers] Re: Application Crashing OutOfMemory .Restructuring Help Needed

2010-03-23 Thread Jonas Petersson
Yo again, A few clarifying comments to Yahel: Yahel wrote: There is no way anyone is going to actually browse more than a few hundred item in a list. Ever !! I guess it depends what the items are, but in my particular tree 95% of the lists are quite short and being sortabel should help a lot

Re: [android-developers] Re: Application Crashing OutOfMemory .Restructuring Help Needed

2010-03-23 Thread Jonas Petersson
Jim Blackler wrote: i need to show a List of around 8000 to 1 elements at the same time on the UI OK that's mad. How can the user reasonably navigate that many entries in a single list? Search and pagination are your friends here. I would tend to agree, however for my Prisjakt applicatio

Re: [android-developers] Re: USB driver doesn't work with Xperia 10

2010-02-16 Thread Jonas Petersson
zeeshan wrote: Thanks for your reply Jonas, i am using Windows 7. got the USB driver revision 3 by Android setup but it doesn't work with my device Can't help you there - I've only used Windows 7 for as long as it took me to figure out the hardware details needed to install Ubuntu ;-) (And th

Re: [android-developers] USB driver doesn't work with Xperia 10

2010-02-16 Thread Jonas Petersson
Hi zeeshan, zeeshan wrote: i am not able to connect my Android device with debuger, it might be because my driver is not installed yet i am trying install my Sony Ericsson Xperia 10 driver but it doesn't work with my device is anybody know the problem ? Are you on Linux? Try lsusb and add th

Re: [android-developers] Re: Using OS 1.6 and Up , are we penalized on the market ?

2010-01-24 Thread Jonas Petersson
String wrote: On Jan 25, 5:39 am, Carlo wrote: We shall explain and handle case by case our potential users's concerns and educated them about our application. Like previously said, state into the app description the reason why the permission is needed is a good start :) If you don't have roo

Re: [android-developers] Android 2.1 backward Compatability? Urgent Question

2010-01-24 Thread Jonas Petersson
Juan Delgado wrote: a) A rough estimate when to expect 2.1 phones to have this fixed or Not that it concerns me too much, but it's been said a billion times that Google cannnot / will not be responsible for updating specific phones, that is up to manufacturers. Google can only be accountant for

Re: [android-developers] Android 2.1 backward Compatability? Urgent Question

2010-01-24 Thread Jonas Petersson
assume the 2.1 emulator will stay broken for verification purposes, just like the 2.0 still has the search issues fixed in 2.0.1. Best / Jonas On Sat, Jan 23, 2010 at 2:56 PM, Vassilio wrote: On 23 Jan 2010, at 09:34, "Jonas Petersson" wrote: [...] This o

Re: [android-developers] Android 2.1 backward Compatability? Urgent Question

2010-01-23 Thread Jonas Petersson
Dianne Hackborn wrote: Newer Android versions are intended to be backwards compatible with older ones (I won't say always, because bugs happen, but that is the intention). Have you tried running your app under 2.1 in the emulator? 2.1 is not very different from 2.0.1 (currently on Droid), so

Re: [android-developers] Re: ToggleButton image

2010-01-20 Thread Jonas Petersson
Hi all, Mark Murphy wrote: Thanks for the info. However, I still don't understand how to put an image on a toggle button. You can't, at least not in the same fashion that you put an image on an ImageButton. Based on what I am seeing, you will need to: 1. Clone btn_toggle.xml from data/res/d

Re: [android-developers] Re: Google Add-On Maps for 1.5 and higher

2010-01-19 Thread Jonas Petersson
Hi Dianne, Dianne Hackborn wrote: As of 2.0 I believe there is an additional attribute on uses-library that lets you specify that it is optional. This sounds like a really good step. However, I failed to find it mentioned in the docs (maybe I'm just looking in the wrong place). When this wo

Re: [android-developers] Fonts and Arabic support

2010-01-13 Thread Jonas Petersson
Mark Murphy wrote: Yousef Alhashemi wrote: Is it possible to add extra fonts to the emulator? Only by creating your own firmware. Actually, I did some experiments that seem to indicate that with a bit of care you can upload a font that makes Arabic work in the emulator until the next reboot

Re: [android-developers] Re: Nexus 2.1 one sale, WHERE is the SDK!

2010-01-05 Thread Jonas Petersson
Wayne Wenthin wrote: [...] If they continue I may just break down and buy a Mac. At least with Apple you know where you stand... Generally under the foot of Jobs but at least you know it. Heh, I already have a pretty decent MacBookPro and all I can say is that I much prefer running Linux o

Re: [android-developers] onContextMenuClosed() not called under 2.x?

2010-01-04 Thread Jonas Petersson
omewhat on the edge since the View in question is a single fullscreen one (the map), but even so there should be symmetry IMHO - if onContextItemSelected() works, then so should onContextMenuClosed(), right? Best / Jonas Jonas Petersson wrote: > Dear Exp

[android-developers] onContextMenuClosed() not called under 2.x?

2010-01-01 Thread Jonas Petersson
Dear Experts, In one of my applications I programmatically open the context menu when something is clicked in my MapActivity overlay. This works perfectly under 1.x as well as on my 2.0 Milestone. I've used showContextMenuForChild() historically, but openContextMenu() does that same thing. As ex

Re: [android-developers] AutoCompleteTextView doesn't work with android:style/Theme.Light

2009-12-15 Thread Jonas Petersson
Hi Romain and Pooper, Romain Guy wrote: > This has been fixed since 1.5. I just stumbled into this one too and I experience the same as Pooper even under 2.0.1. So either I'm doing something silly or the fix was not correct. I found a bug filed about a week ago (including source): http://code.

Re: [android-developers] How many 1.1 devices are still out there?

2009-11-15 Thread Jonas Petersson
tomei.ninge...@gmail.com wrote: > Are there any developers who switched from 1.1 to 1.5 APIs recently? > Have you heard any complaints from users that are still using a 1.1 > device? Well, my apps should still work for 1.1. According to web server logs all but one (active) users had switched to 1

Re: [android-developers] Re: JSONObject text must begin with '{' at character 1

2009-11-15 Thread Jonas Petersson
Mark Murphy wrote: >> Mark, I may have found the problem, but not sure how I can fix it. The >> log msg for the responseBody is below. Should it be the UTF_8 param? >> thanks >> {"hey": "guy","anumber": 243,"anobject": {"whoa": >> "nuts","anarray": [1,2,"three"], "more":"stuff"},"awesome": >>

[android-developers] Optional permissions (revisited)

2009-11-14 Thread Jonas Petersson
Hi all, I know this was discussed on this list about a year ago, but as far as I could tell it ended up with Dianne saying that it may be done, but was not a priority at the time. Situation: I've had a few requests from users of one of my apps that they would prefer to disable for instance acc

Re: [android-developers] Re: motorola cliq sdk 2.0

2009-11-08 Thread Jonas Petersson
nEx.Software wrote: > You know, actually, come to think of it... It might only be those evil > non-public apis that we all know not to use but still do anyway... > I'll have to look and see if anything I have seen was a public api. I > know that working with the Contacts is incredibly frustrating,

Re: [android-developers] top ListActivity destroyed just after a Search has been initiated from it - was: Back key after Search doesn't return to list in 2.0 as it did in all earlier versions

2009-11-02 Thread Jonas Petersson
was destroyed just when the secondary search screen has popped up. If this is indeed how it is supposed to work in 2.0, what would be best practice to make it work as it did in 1.6? (Preferably still built to work on both pre-2.0 and 2.0+.) Best / Jonas Jonas Petersson

Re: [android-developers] Retreive sourcecode from APK file?

2009-11-02 Thread Jonas Petersson
Zonakusu wrote: > [...] > So now (finally) my question, is it possible for someone to convert or > extract an APK file back to source so he can see the password we > hardcoded in the application. I'm afraid so. There are several tools to get info out of an APK file - not the original source, but

Re: [android-developers] top ListActivity destroyed just after a Search has been initiated from it - was: Back key after Search doesn't return to list in 2.0 as it did in all earlier versions

2009-11-01 Thread Jonas Petersson
lated to this in the release notes, but perhaps there is something between the lines that I have not yet realized. Advice appreciated / Jonas Jonas Petersson wrote: > Hi all, > > I experience something slightly confusing in the 2.0 emulators (tried > several v

[android-developers] Back key after Search doesn't return to list in 2.0 as it did in all earlier versions

2009-10-31 Thread Jonas Petersson
Hi all, I experience something slightly confusing in the 2.0 emulators (tried several variants): One of my apps is somewhat similar to Market in structure in that it is a ListActivity that keeps creating new Intent(this, xxx.class); of itself with various .putExtra(); that presents data in app

[android-developers] Re: 1.6 images for the ADP1 from HTC!

2009-09-29 Thread Jonas Petersson
Hi - my experinces: Keiji Ariyama wrote: > I updated my ADP1 using recovery image. > The update process was succeeded. But an error message has been > displayed when system rebooted. > > LogCat messages are below. > [...] >> 06-21 09:53:35.347: ERROR/DatabaseUtils(152): >> java.lang.SecurityExc

[android-developers] Re: (unofficial) Bluetooth API v. 0.2

2009-09-16 Thread Jonas Petersson
Dianne Hackborn wrote: > Again, this code is using PRIVATE APIs. As we've said repeatedly, doing > so is not safe, and you can expect your code to break in various ways as > a result.[...] Thank you, Dianne. I'm pretty sure that everyone involved in these two Bluetooth projects are very much

[android-developers] Re: (unofficial) Bluetooth API v. 0.2

2009-09-16 Thread Jonas Petersson
Jonas Petersson wrote: > windstorm wrote: >> Anybody tried to use this API on Hero? > > Yes, a friend of mine claims that it works in his Hero (in Sweden). I > specifically asked him to verify this for Stefano so I would tend to > trust him. Ops, I just got word back from

[android-developers] Re: (unofficial) Bluetooth API v. 0.2

2009-09-15 Thread Jonas Petersson
Dianne Hackborn wrote: > On Tue, Sep 15, 2009 at 10:00 AM, windstorm > wrote: > Anyway, I will take a look at NDK and bluez in parallel, while still > prefer to see someone point out the reason of my problem. Using high > level API will always minimize

[android-developers] Re: (unofficial) Bluetooth API v. 0.2

2009-09-15 Thread Jonas Petersson
windstorm wrote: > Anybody tried to use this API on Hero? > > I always met > > connect error: No route to host (113) Yes, a friend of mine claims that it works in his Hero (in Sweden). I specifically asked him to verify this for Stefano so I would tend to trust him. I'm pretty sure someone m

[android-developers] Re: (unofficial) Bluetooth API v. 0.2

2009-09-11 Thread Jonas Petersson
Hi all, Stefano Sanna wrote: > On Fri, Sep 11, 2009 at 6:57 AM, windstorm wrote: >> BTW: one question to all, I saw this sdk from sybase: >> >> http://www.sybase.com/detail?id=1064424 >> >> Anyone tried it before? > > Do you know if there is any trial/demo of it? I've been in contact with them

[android-developers] Re: manually restart an activity

2009-09-08 Thread Jonas Petersson
Dianne Hackborn wrote: > Sorry there isn't really a way to do that right now. > > On Tue, Sep 8, 2009 at 10:58 PM, jonathan > wrote: > > > Is there a way to restart an activity? The reason is that need to > change the theme dynamically, and the activity need

[android-developers] Re: Reuse Hero rounded list item look?

2009-08-30 Thread Jonas Petersson
Mark Murphy wrote: > Jonas Petersson wrote: >> I was kind of hoping that the layout and graphics would be available in >> a place I had not yet found. Grabbing the screen shot is no problem for >> static, but getting the whole look and feel right for highlighting etc >&

[android-developers] Reuse Hero rounded list item look?

2009-08-30 Thread Jonas Petersson
Best / Jonas > On Sun, Aug 30, 2009 at 12:09 PM, Jonas Petersson > wrote: >> Dear experts, >> >> I've been asked to make an app that has a list with items looking >> similar to this snapshot from Hero: >> >> http://www.flickr.com/photos/jaxxdotorg/3640

[android-developers] Re: Activity stack: A B C -> press BACK -> go to A

2009-08-30 Thread Jonas Petersson
fhucho wrote: > my activity stack is ABC, in activity C I press back, and return to B, > then press back again and go to A. What should I do to return to A > directly from C? I guess it depends on the reason for wanting to skip "B". I needed exactly this case yesterday and in my case "B" knows v

[android-developers] Reuse Hero rounded list item look?

2009-08-30 Thread Jonas Petersson
Dear experts, I've been asked to make an app that has a list with items looking similar to this snapshot from Hero: http://www.flickr.com/photos/jaxxdotorg/3640222441/in/set-72157619952823330/ Is there a way to reuse this in any way or do I have to re-design it from scratch?

[android-developers] Re: Getting the user's own email address

2009-08-13 Thread Jonas Petersson
Dear experts, I've attempted to implement what Jeff describes below on 1.1 as well as 1.5 (both real device and emulated), but as far as I can tell it never succeeds. I have the permission to read contact data (otherwise I get an exception). Maybe I've made some very basic mistake. Has anyone

[android-developers] Re: why i cant connect to the internet,i have added the permission.

2009-06-17 Thread Jonas Petersson
Roman wrote: > Your code snippet works fine. Could you post your Manifest file where > you include the Internet permission? > > Furthermore I noticed the exception when you have no data > connectivity. Make sure that you have data connectivity! For the record: I run the emulator an a Linux (Jau

[android-developers] Re: Bluetooth and Serial Port Profile

2009-05-25 Thread Jonas Petersson
Nick Pelly wrote: > 2009/5/20 moa : >> What is the process for it becoming available on real devices? >> >> If an SDK update is released that supports SPP or RFCOMM. Does that >> mean applications compiled on that SDK will run on current cupcake >> devices (like the Magic) without any new firmware

[android-developers] Re: Bluetooth

2009-05-11 Thread Jonas Petersson
Nick Pelly wrote: > On Sun, May 10, 2009 at 9:29 AM, Jonas Petersson > wrote: >> [...] the thing that >> stops me from developing the application my employer (and his customers) >> wants is the lack of ability to receive a file via OBEX (OPP). > > Input as to

[android-developers] Re: Bluetooth

2009-05-10 Thread Jonas Petersson
Nick Pelly wrote: > Mark summed it up pretty well. We don't have support in the SDK for > Bluetooth right now. Getting some Bluetooth API's published in the SDK > is a priority for the Android Bluetooth team. I can't wait to see the > apps you guys come up with! I assume there is not much point t

[android-developers] Re: A Gesture Recognition Library

2009-04-21 Thread Jonas Petersson
Hi again Sydnal, sydnal wrote: > @ Jonas; > > Well I guess it can be considered a shame on my part that I did not > know about xstroke before your post. Anyway I examined the link, > however the way strokes are defined is somewhat different. Xstroke > seems to define strokes using regions which

[android-developers] Re: ReStarting An Activity From A Service

2009-04-20 Thread Jonas Petersson
Hi Mohamed, Mohamed Amir wrote: > I am trying to make an application that show the caller-ID when there > is an incoming call. > And where there is another call, I wanna update the caller-ID shown. Sounds familiar - I do similar stuff in "Zap's Hitta" (see Market). > I have tried OnNewIntent bu

[android-developers] Stressing the Contacts sync to death (acore again...)

2009-04-19 Thread Jonas Petersson
Dear experts, As hinted earlier, I've hacked up a little service called "Zap's Hitta" (available for free on the Market) which basically takes the incoming phone number and pulls various info from public phone catalogs (only 2 implemented so far) to both show more details about who calls you i

[android-developers] Re: How-to start service automatically on system startup and on installation + custom Contacts ContextMenu

2009-04-13 Thread Jonas Petersson
Dianne Hackborn wrote: > To amplify -- just starting your service at boot and leaving it running > all of the time is NOT recommended. It consumes a lot of resources, if > nothing else a whole process sitting there doing nothing (presumably) > most of the time, when that memory could be used f

[android-developers] Re: A Gesture Recognition Library

2009-04-13 Thread Jonas Petersson
Very cool. This reminds me of xstroke on iPaq in the old days. http://www.usenix.org/events/usenix03/tech/freenix03/full_papers/worth/worth_html/xstroke.html It was pretty easy to add new strokes for additional characters in that approach (I recall adding åäö). A glace at the DKN source seems

[android-developers] Re: Analyzed and fixed "...acore has stopped unexpectedly" issue

2009-04-06 Thread Jonas Petersson
Hi fadden, fadden wrote: > On Apr 4, 2:19 am, "Jonas Petersson" wrote: >> In my opinion it would make sense for the acore sync process to handle >> incorrect values by replacing them with HOME/OTHER instead of crashing. >> I have not dug into the source, but I wo

[android-developers] Analyzed and fixed "...acore has stopped unexpectedly" issue

2009-04-04 Thread Jonas Petersson
Hi all, I recently experienced the cyclic - and somewhat random: "Android.process.acore has stopped unexpectedly" problem and googling it mostly came up with nothing and in a few cases "fixed it by wiping the phone". I found that unsatisfactory, so I decided to dig deeper. To me it was pretty

<    1   2