[android-developers] Lonje chat-free mobile app

2016-07-03 Thread Anna Vasilyev
Lonje chat-free mobile app for everybody. Just install an application, which is compatible with all mobile devices, and connect with every piece of the world. Share you feelings, posts, images, text or links with people around neighborhood or in every other country. www.lonje.com

[android-developers] How to install several versions of activity from one Eclipse project?

2011-07-08 Thread Anna
Hello all! I need your advise. I'm writing an application in Eclipse. Every time, when I run the activity from Eclipse, it is reinstalling. Question is: Is it possible to preserve previous versions of activity in device? Or do I need to create the new project each version of activity? Thank you

[android-developers] Re: What's wrong with this location code?

2010-04-16 Thread Anna PS
On Apr 16, 12:45 am, JP joachim.pfeif...@gmail.com wrote: On Apr 15, 8:35 am, Anna PS annapowellsm...@googlemail.com wrote: Yet in my log files, I can still see the Android NetworkLocationProvider logging onCellLocationChanged events. Is this a bug in my code? Without diving into your

[android-developers] What's wrong with this location code?

2010-04-15 Thread Anna PS
Woe - I'm still struggling to write some code that can reliably get me an accurate location fix. I have written some code that I thought would (i) register with any available location listener (ii) at onLocationChanged events, check the location fixes for age and accuracy (iii) once a suitable

Re: [android-developers] Re: OutOfMemoryError: how best to transfer large video files into a byte array?

2010-04-09 Thread Anna Powell-Smith
Why are you reading the entire file into a byte array? That sounds right there like the OutOfMem error. Because it's the only way that I know to get from a content Uri to the byte array that I use to create the FilePart element of the multipart message. It is possible to create the FilePart

Re: [android-developers] Re: OutOfMemoryError: how best to transfer large video files into a byte array?

2010-04-09 Thread Anna Powell-Smith
On 9 April 2010 18:19, Gubatron gubat...@gmail.com wrote: I suppose when you say FilePart, you mean this org.apache.commons.httpclient.methods.multipart.FilePart I'm thinking along these lines after looking at that API (I haven't tested this) final File theFile = new

Re: [android-developers] Re: OutOfMemoryError: how best to transfer large video files into a byte array?

2010-04-09 Thread Anna Powell-Smith
On 9 April 2010 19:35, Anna Powell-Smith annapowellsm...@googlemail.comwrote: On 9 April 2010 18:19, Gubatron gubat...@gmail.com wrote: I suppose when you say FilePart, you mean this org.apache.commons.httpclient.methods.multipart.FilePart I'm thinking along these lines after looking

[android-developers] OutOfMemoryError: how best to transfer large video files into a byte array?

2010-04-08 Thread Anna PS
Apologies for cross-posting with StackOverflow, but I'm getting a bit desperate. I'll cross-post any final answer too. Please could anyone suggest an approach for transferring a 2MB video from a ContentResolver into a Bytestream, without running out of memory? See question:

[android-developers] Re: OutOfMemoryError: how best to transfer large video files into a byte array?

2010-04-08 Thread Anna PS
1. Why are you using a ContentProvider? Because that seemed to be the best way to get from a content URI (returned from the Android video camera intent) to a byte stream. Happy to do it another way, though. 2. What are you doing with the 2MB byte array when you get it on the ContentResolver

[android-developers] Re: OutOfMemoryError: how best to transfer large video files into a byte array?

2010-04-08 Thread Anna PS
I suspect your problem is not in reading the InputStream, but rather in how FilePart does what it does. Since that isn't part of Android, it was probably developed without tight memory constraints in mind. If you hand it 1 KB chunks each time, it is probably going to allocate a 1 KB byte

[android-developers] Re: OutOfMemoryError: how best to transfer large video files into a byte array?

2010-04-08 Thread Anna PS
On Apr 8, 11:00 pm, Mark Murphy mmur...@commonsware.com wrote: Anna PS wrote: OK, I see. Although, I do get the OutofMemoryError on the byteBuffer.write(buffer, 0, len), well before I do anything with the FilePart. That doesn't make sense. What are you doing with the 1 KB you read

[android-developers] Try/except handling for PostMethod?

2010-04-06 Thread Anna PS
Hi all I'm using a PostMethod, and wondering what try/except handling I should use. The exception handling here seems to work okay in most scenarios, but is there anything I might be missing? In particular, I'm wondering whether this handles the network connection going down midway through the

[android-developers] Check if an IntentService is already running?

2010-04-06 Thread Anna PS
Sorry for the newbie question, but does anyone know how I can check whether an IntentService is already running? I'm starting an IntentService from onCreate within a normal Activity, and that means that if the user minimises and maximises the application, it gets called twice. I'm wondering if I

[android-developers] Re: Getting location from within an IntentService?

2010-04-06 Thread Anna PS
Thanks Mark... On Apr 2, 3:52 pm, Mark Murphy mmur...@commonsware.com wrote: Anna PS wrote: But - is it possible to get a location fix from within an IntentService? It would be difficult, because IntentServices want to shut down as soon as onHandleIntent() completes (if there are no more

[android-developers] Re: Check if an IntentService is already running?

2010-04-06 Thread Anna PS
On Apr 6, 2:52 pm, Mark Murphy mmur...@commonsware.com wrote: Sorry for the newbie question, but does anyone know how I can check whether an IntentService is already running? I'm starting an IntentService from onCreate within a normal Activity, and that means that if the user minimises

[android-developers] Re: Get unique ID of phone - Settings.Secure.ANDROID_ID not working on N1?

2010-04-05 Thread Anna PS
I figured this out. Just generate a random string (using Java UUID) and save it in Settings. That's enough to distinguish each user :) On Mar 27, 5:49 pm, Anna PS annapowellsm...@googlemail.com wrote: Yes, I really wanted to avoid TelephonyManager because it has particularly scary-looking

[android-developers] Getting location from within an IntentService?

2010-04-02 Thread Anna PS
, then start an upload - without the user having to hang around keeping the application open? This must be a common problem, so it would be good to get a clear answer. many thanks Anna -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Getting all of a long string in DDMS?

2010-03-29 Thread Anna PS
Hi all, I'm getting a server response back in ddms, here's my code: InputStream responseStream = method.getResponseBodyAsStream(); responseString = convertStreamToString(responseStream); // standard function for InputStream String

[android-developers] Re: Getting all of a long string in DDMS?

2010-03-29 Thread Anna PS
. ( i.e: read bytes size -1) i.e read the data till you got end of stream. then convert it to String and display better way is to read block by block and display. May be this will help you. Thank you On Mar 29, 3:43 pm, Anna PS annapowellsm...@googlemail.com wrote: Hi all

[android-developers] Re: Get unique ID of phone - Settings.Secure.ANDROID_ID not working on N1?

2010-03-28 Thread Anna PS
=android.permission.READ_PHONE_STATE/ in the manifest. Ken On Mar 25, 6:28 am, Anna PS annapowellsm...@googlemail.com wrote: Odd - I posted this message yesterday and got sent a copy, but it doesn't seem to have shown up in the group... Here it is again. This seems to be a bit of a vexed issue

[android-developers] Unique ID of phone?

2010-03-26 Thread Anna PS
This seems to be a bit of a vexed issue: see http://groups.google.com/group/android-developers/browse_thread/thread/3f4ae5cdf792ce00 Like the person who started that thread, I need to get a unique ID for a device, without using scary permissions for TelephonyManager. I've tried id =

[android-developers] Get unique ID of phone - Settings.Secure.ANDROID_ID not working on N1?

2010-03-26 Thread Anna PS
Odd - I posted this message yesterday and got sent a copy, but it doesn't seem to have shown up in the group... Here it is again. This seems to be a bit of a vexed issue: see http://groups.google.com/group/android-developers/browse_thread/thread/3f4ae5cdf792ce00 Like the person who

[android-developers] Re: EXTRA_OUTPUT problem with video camera - breaks 'retake' and 'delete' buttons

2010-03-16 Thread Anna PS
Any ideas, anyone? wondering if this is an Android bug, or if I'm doing something wrong. Seems to work fine when taking photos, just not videos. On Mar 12, 7:27 pm, Anna PS annapowellsm...@googlemail.com wrote: NB here's my traceback: 03-12 19:25:57.948: INFO/ActivityManager(936): Starting

[android-developers] Passing a Uri to the video camera - causes Retake and Play buttons to crash

2010-03-13 Thread Anna PS
[I thought I posted this yesterday, but it hasn't shown up in the group, so apologies if it posts twice.] I'm trying to pass a Uri to the video camera as EXTRA_OUTPUT. The file shoots and saves OK at the Uri I give it, but unfortunately pressing the 'Retake' or 'Play' buttons crashes the

[android-developers] Getting from a Uri to a byte array...?

2010-03-13 Thread Anna PS
Hi all I want to get from an Android Uri (of the kind returned by onActivityResult) to a simple byte array, in order to upload a file as part of a multipart message. Can anyone provide an example of how to get from a Uri to a byte[] array? My current code (below) is almost there, but falls down

[android-developers] Re: Getting from a Uri to a byte array...?

2010-03-13 Thread Anna PS
Android? On Mar 13, 11:23 am, Anna PS annapowellsm...@googlemail.com wrote: Hi all I want to get from an Android Uri (of the kind returned by onActivityResult) to a simple byte array, in order to upload a file as part of a multipart message. Can anyone provide an example of how to get from

[android-developers] EXTRA_OUTPUT problem with video camera - breaks 'retake' and 'delete' buttons

2010-03-12 Thread Anna PS
. Any ideas how I can do this without crashing the camera? Thanks Anna -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android

[android-developers] Re: EXTRA_OUTPUT problem with video camera - breaks 'retake' and 'delete' buttons

2010-03-12 Thread Anna PS
(ZygoteInit.java:860) 03-12 19:25:57.968: ERROR/videocamera(5482): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) 03-12 19:25:57.968: ERROR/videocamera(5482): at dalvik.system.NativeStart.main(Native Method) On Mar 12, 7:23 pm, Anna PS annapowellsm...@googlemail.com wrote: Hi all

[android-developers] Upload error icon in status bar?

2010-03-09 Thread Anna PS
, like you get if you try to upload a video to YouTube using the inbuilt intent, and I can't find it in R.drawables (checking on http://androiddrawableexplorer.appspot.com/ ). Anna -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Re: Security question: can Android source be decompiled and read?

2010-03-03 Thread Anna PS
who has your app can get access to the details, and also allows you to update the login details without the need to force an app update on all your users. Al. On Mar 2, 6:23 pm, Anna PS annapowellsm...@googlemail.com wrote: Hi there So I would like to store a username and password

[android-developers] Security question: can Android source be decompiled and read?

2010-03-02 Thread Anna PS
be decompiled and read once I've released an app on the Market? If yes, would encrypting it help? Or would anyone who decompiled the app also be able to work out the encryption method? Thanks for your advice. Anna -- You received this message because you are subscribed to the Google Groups

[android-developers] File upload in background: thread/service/AIDL...?

2010-03-01 Thread Anna PS
services by definition run in a different thread? thanks, Anna -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android

[android-developers] Re: File upload in background: thread/service/AIDL...?

2010-03-01 Thread Anna PS
uploading code - that wouldn't change anything, I assume it's possible to pass a filename to a Service class as an argument? Many thanks for your help. Anna On Mar 1, 4:03 pm, Mark Murphy mmur...@commonsware.com wrote: Anna PS wrote: should it be a LocalService or a RemoteService, as per the API

[android-developers] Re: File upload in background: thread/service/AIDL...?

2010-03-01 Thread Anna PS
the Service for anything else. Does that sound OK? So the most communication I would need is (i) pass a filename to the Service, and (ii) go back to the main application once the upload is complete. Anna On Mar 1, 5:07 pm, Mark Murphy mmur...@commonsware.com wrote: Anna PS wrote: Also, I need to pass

[android-developers] Re: File upload in background: thread/service/AIDL...?

2010-03-01 Thread Anna PS
Superb - thank you :) On Mar 1, 5:31 pm, Mark Murphy mmur...@commonsware.com wrote: Anna PS wrote: Nothing, really. I just want to upload a file in the background, with an icon in the status bar, and update the icon when the upload is complete. I might possibly want to call the main

[android-developers] Authenticating with Youtube: ClientLogin?

2010-02-27 Thread Anna PS
I'm writing an Android app that, among other things, uses the GData libraries to upload videos shot with the camera to Youtube (code below). However, I'm a bit confused about how to authenticate my users. Can I simply assume that they are already signed in to Youtube, since they're using Android?

[android-developers] Re: Authenticating with Youtube: ClientLogin?

2010-02-27 Thread Anna PS
to hash it? Thanks! Anna On Feb 27, 3:07 pm, Anna PS annapowellsm...@googlemail.com wrote: I'm writing an Android app that, among other things, uses the GData libraries to upload videos shot with the camera to Youtube (code below). However, I'm a bit confused about how to authenticate my users

[android-developers] Call data

2010-02-17 Thread Anna Gabi
Is there a way to manipulate the data (voice) of an in/outcoming call, so it would be possible to do some DSP(digital signal processing) on the data. Thanks a lot. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

Re: [android-developers] Got 12 Google Wave invitations to use, let me know if you need

2009-11-09 Thread Anna Khotina
Hi Dave! I'd love one, thanks! - anna.khot...@gmail.com 2009/11/9 dave dayong...@gmail.com: Hi all, I just got 12 Google Wave invitations to use, please let me know if you need one. Cheers. Dave -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Checking the user's country

2009-09-12 Thread Anna PS
Thanks Roman, very helpful. Actually, it turns out that the dynamic method is what I need after all. best wishes, Anna On Sep 12, 3:24 am, Roman ( T-Mobile USA) roman.baumgaert...@t- mobile.com wrote: What do you mean with user's country? Static methods: - You could use the phone number

[android-developers] Checking the user's country

2009-09-11 Thread Anna PS
Hi Anyone know how to check the user's country? I'm looking for a way that's faster than using GPS and reverse geocoding. (I need the country where the phone is registered, not their current location, in any case.) Is there any constant in the settings? Thanks, Anna

[android-developers] App opens previous activity - but only intermittently

2009-07-24 Thread Anna PS
! Thanks very much, Anna -- Code used in the EditPage activity to save edits when the Back key gets pressed. Works fine, apart from bug described above. // Save everything when the Back key gets pressed public boolean onKeyDown(int keyCode, KeyEvent event

[android-developers] Re: App opens previous activity - but only intermittently

2009-07-24 Thread Anna PS
Thanks for the suggestions both - they sound plausible. Yusuf, I like creative, very polite :) Anyway I'll try using finish() and see if it fixes the problem... Cheers Anna On Jul 24, 7:56 pm, Yusuf T. Mobile yusuf.s...@t-mobile.com wrote: That's a creative way to work with Android lifecycle

[android-developers] Age of GPS data (continued)

2009-07-21 Thread Anna PS
. Thanks Anna --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android

[android-developers] Re: Some G1 phones getting device not found with adb...

2009-07-21 Thread Anna PS
I had the same problem. Blowing in the connectors, then killing and restarting ADB worked for me :) On Jul 15, 7:00 pm, Richard Schilling richard.rootwirel...@gmail.com wrote: I did resolve the BATTERY_CHANGED events issue - it was in my application design.  Search for BATTERY_CHANGED to see

[android-developers] Re: Age of GPS data (continued)

2009-07-21 Thread Anna PS
of the application, and so the fix is probably out of date. Thanks, Anna On Jul 21, 4:29 pm, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: I just did a test. location.getTime() 1248184334000 System.currentTimeMillis() 1248184346934 It appears as if the GPS tracks time down to the second

[android-developers] Re: Strange bug in GPS fix - please help!

2009-07-20 Thread Anna PS
shouldn't have been trying to do in the first place? :) best wishes, Anna On Jul 16, 10:51 pm, Mark Murphy mmur...@commonsware.com wrote: Anna PS wrote: Sorry, I guess I'm being dim. Should I add some code inside the onLocationChanged method itself to check the accuracy? And then just check

[android-developers] Why does DDMS sometimes only show one line of logs?

2009-07-16 Thread Anna PS
... usually happens after a force close. Instead of showing the usual 30 lines or so of logs + scrollable history, it only shows a single line or a couple of lines. Very annoying! The only fix that I can find is to restart DDMS. Anyone have any ideas? Thanks Anna

[android-developers] Re: Strange bug in GPS fix - please help!

2009-07-16 Thread Anna PS
is running. On Jul 16, 10:09 pm, Anna PS annapowellsm...@googlemail.com wrote: Hi there, I'm having a weird problem with GPS accuracy. Basically, I check the GPS accuracy in a background thread after the user clicks a report button, and show the accuracy in a progress dialog, changing second

[android-developers] Re: Strange bug in GPS fix - please help!

2009-07-16 Thread Anna PS
) gets the location, (ii) checks that the accuracy is okay, and (iii) if it isn't okay, shows the user a progress dialog until the accuracy improves enough to be acceptable. best wishes, Anna On Jul 16, 10:17 pm, Mark Murphy mmur...@commonsware.com wrote: Anna PS wrote: Basically my question

[android-developers] Re: Strange bug in GPS fix - please help!

2009-07-16 Thread Anna PS
(); } On Jul 16, 10:27 pm, Anna PS annapowellsm...@googlemail.com wrote: Thanks Mark. When you say using the LocationListener, what exactly do you mean? Is there a way that I can poll the listener directly - I know that there is an onLocationChanged event, but does that help me? Basically

[android-developers] Re: Update message - how to check whether app has run before?

2009-06-26 Thread Anna PS
, Anna On Jun 25, 5:17 pm, Anna PS annapowellsm...@googlemail.com wrote: Hi all, I want to show anupdatemessagefor a new release - the first time the user opens the updated version of my app, a pop-up dialog should appear, saying what's new, with an OK button. After the user has read it once

[android-developers] Re: Update message - how to check whether app has run before?

2009-06-26 Thread Anna PS
to the setting name. On Jun 26, 12:40 pm, Anna PS annapowellsm...@googlemail.com wrote: Actually, I have realised that won't work, because it will also show the first time the app is installed. It should only show uponupdate. So, the question still stands. How can I check whether a user has

[android-developers] Re: Update message - how to check whether app has run before?

2009-06-26 Thread Anna PS
duh - that should be boolean hasSeenUpdateVersion = settings.getBoolean( hasSeenUpdateVersion + vc, false); of course :) On Jun 26, 6:08 pm, Anna PS annapowellsm...@googlemail.com wrote: Thank you - good thinking. For the benefit of others

[android-developers] Update message - how to check whether app has run before?

2009-06-25 Thread Anna PS
sophisticated way of doing it, or if that's the way to go :) thanks! Anna --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com

[android-developers] Re: How can I give my paid app away for free to some users?

2009-06-18 Thread Anna PS
Ah - that's a shame. Discount coupons would definitely be a nice feature to have on the Market... On Jun 18, 12:06 am, Yuri Ammosov - Sadko Mobile y...@sadko.mobi wrote: DO NOT REFUND. Refund UNINSTALLS the program. YA On Jun 17, 2:17 pm, Anna PS annapowellsm...@googlemail.com wrote

[android-developers] How can I give my paid app away for free to some users?

2009-06-17 Thread Anna PS
the alternative would be to give them a direct download, but then they won't get updates through the Market. It'd be nice to know how to do this, and how to give discount codes as well. Any ideas anyone? Thanks! Anna --~--~-~--~~~---~--~~ You received this message because

[android-developers] Re: How can I give my paid app away for free to some users?

2009-06-17 Thread Anna PS
appengine to host my license server (small servlet) use deviceId and check every time user launches your app you can give discount based on deviceId On Jun 17, 6:17 am, Anna PS annapowellsm...@googlemail.com wrote: Hi all So I'm about to put a paid app on the Market

[android-developers] DDMS - lost the tag column?

2009-06-11 Thread Anna PS
to get it back? I've tried right-clicking the columns, looking through the menus, etc - no joy. Thanks! Anna --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] Re: DDMS - lost the tag column?

2009-06-11 Thread Anna PS
to u is to try separate all the cols to the extreme and u might jus end up looking at ur tag col... if u do find a concrete sol, please do reply. cheers. On Thu, Jun 11, 2009 at 4:18 PM, Anna PS annapowellsm...@googlemail.comwrote: This is an incredibly dumb question. So, apologies

[android-developers] Justify a TextView?

2009-06-03 Thread Anna PS
Hi all, I can see this question has been asked a couple of times before, but with no answer. How do I set the text in a TextView to be justified? That is, I would like it to look like the left-hand example here: http://en.wikipedia.org/wiki/Justification_(typesetting) Thanks, Anna

[android-developers] Log in to an application?

2009-05-21 Thread Anna PS
, how secure will that be? Could any user with root access get into the application? How about a user without root access, but with USB access? Thanks, hope this makes sense, please post questions here if not. cheers! Anna --~--~-~--~~~---~--~~ You received

[android-developers] Re: Log in to an application?

2009-05-21 Thread Anna PS
with root access steals your phone would be fine. cheers Anna --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe

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

2009-05-14 Thread Anna PS
Hi, I'd like to retrieve the user's own email address, as configured in their Gmail application (purpose: just so I can pre-fill a form field for 'Your email'). Is this possible in Android, maybe through one of the ContentProviders, or would it breach privacy in some way? thanks, Anna

[android-developers] Uploading an image in a multipart message - sample code

2009-05-10 Thread Anna PS
the background thread communicates problems with the upload to the main thread using variables. I'm sure there must be a neater way to do it. If you figure out a way to improve the code, please post suggestions here! cheers, Anna - private static final int

[android-developers] Re: Get image URI from camera?

2009-05-07 Thread Anna PS
to the byte output stream bitmap.compress(Bitmap.CompressFormat.JPEG, 80, imageByteStream); // Turn the byte stream into a byte array imageByteArray = imageByteStream.toByteArray(); Thanks again, Anna On May 7, 1:14 am, Mark Murphy mmur...@commonsware.com wrote: Anna PS

[android-developers] Re: Get image URI from camera?

2009-05-07 Thread Anna PS
1. Thumbnail display. When I go back to the first screen of the application, I want to show an ImageView of the jpeg that the user has just taken. Current code, which doesn't work because it's not looking in the SD card:    bmp = BitmapFactory.decodeStream(openFileInput(photo.jpg));

[android-developers] Get image URI from camera?

2009-05-06 Thread Anna PS
help? Thanks, Anna --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android

[android-developers] Re: Get image URI from camera?

2009-05-06 Thread Anna PS
a common problem :( Anna --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email

[android-developers] Re: Get image URI from camera?

2009-05-06 Thread Anna PS
. I'm assuming the only way is via a URI? Is there another way? Sorry to be so clueless, just finding the whole Camera class very confusing. I do believe that this is a common problem. Thanks for your help. Anna --~--~-~--~~~---~--~~ You received this message because

[android-developers] Re: Get image URI from camera?

2009-05-06 Thread Anna PS
Thanks Mark (sorry to have two separate threads going on here). I'll take a look at the code in your book. If I succeed, I'll post my code here for others to use. Links from other readers also much appreciated. Best wishes, Anna On May 7, 1:03 am, Mark Murphy mmur...@commonsware.com wrote

[android-developers] Re: Layout question - how to replicate what the iPhone does...

2009-04-28 Thread Anna PS
Thank you Jon, this is exactly what I needed! best wishes, Anna On Apr 28, 5:43 am, Jon Colverson jjc1...@gmail.com wrote: On Apr 27, 10:01 pm, Anna PS annapowellsm...@googlemail.com wrote: How would I even start to create a home screen that looks like this in Android? Essentially I need

[android-developers] Layout question - how to replicate what the iPhone does...

2009-04-27 Thread Anna PS
anyone help? I'm really struggling to know what to do! Thank you for your help! Anna --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers

[android-developers] Re: Error installing ADT 0.9

2009-04-23 Thread Anna PS
I had the same problem and this worked for me. Use wget with the -c option to resume downloads. On Apr 22, 10:52 am, chris christian.fo...@gmail.com wrote: It seems the download server is occupied/busy and resets the connections quite often. I recommend downloading the file using a program

[android-developers] Re: GPS accuracy problems

2009-02-12 Thread Anna PS
- at the same moment in time! Maybe I do just need to use Skyhook in order to get a reliable GPS fix. Anna On 11 Feb, 18:26, Ludwig ludwigbrinckm...@gmail.com wrote: It is notoriously difficult for GPS chips to get a good fix in built-up areas. 'Seeing the sky' is a bit loose a formulation: ideally

[android-developers] GPS accuracy problems

2009-02-11 Thread Anna PS
? Have I implemented the listener/check in the wrong way (which feels like the likely explanation), or is it that GPS in Android isn't good enough to write mapping applications? Does anyone else have experience of this? Best, Anna -- //cut-down version

[android-developers] Re: Age of GPS data

2009-02-09 Thread Anna PS
Thanks. Yes, it works much better with requestLocationUpdates set to 0. For the benefit of anyone reading and reusing code, requesting location updates drains the battery very quickly, so remember to unregister the LocationListener whenever you pause the application. Code below. Anna

[android-developers] Re: Age of GPS data

2009-02-04 Thread Anna PS
need to warn the user if it isn't. Hence the polling to make sure it's up to date. (I run the polling in a background thread.) I've pasted my listener code below, that I call from onCreate... do you suggest any changes? thanks, Anna //This function called from onCreate... public

[android-developers] Re: Age of GPS data

2009-02-01 Thread Anna PS
. The code feels a bit dubious, but it seems to do the job. Anna long locationTime = location.getTime(); long currentTime = System.currentTimeMillis(); timeDifference = (currentTime - locationTime) / 1000

[android-developers] Age of GPS data

2009-01-22 Thread Anna PS
to warn the user about this. It's possible to check the age of the data on the iPhone I believe, is it possible in Android? thanks! Anna --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Re: Errors when POSTing a jpeg

2008-12-17 Thread Anna PS
this posthttp://www.anddev.org/setting_up_multipart_messages_using_the_default... Also check the length of the image part since for me it was always zero. On Dec 14, 5:49 pm, Anna PS annapowellsm...@googlemail.com wrote: Hi, I'm trying to POST a jpeg image as part of a multipart

[android-developers] Errors when POSTing a jpeg

2008-12-15 Thread Anna PS
for uploading jpegs? My code is below... Thanks Anna method = new PostMethod(url); try { Bitmap bitmap; ByteArrayOutputStream bytes; byte[] imageData = null