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
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
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
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
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
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
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
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:
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
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
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
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
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
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
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
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
, 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
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
. ( 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.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
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 =
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
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
[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
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?
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
. 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
(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
, 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
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
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
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
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
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
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
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?
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
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
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
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
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
!
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
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
.
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
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
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
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
... 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
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
) 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
();
}
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
,
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
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
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
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
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
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
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
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
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
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
, 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
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
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
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
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
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));
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
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
. 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
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
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
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
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
- 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
? 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
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
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
.
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
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
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
for uploading jpegs?
My code is below...
Thanks
Anna
method = new PostMethod(url);
try {
Bitmap bitmap;
ByteArrayOutputStream bytes;
byte[] imageData = null
82 matches
Mail list logo