[android-developers] Re: Any API to create KML files in Android?

2010-01-23 Thread gjs
Hi, It is pretty easy to write your own, I've done it for kml and kmz files, code was only a about 100 lines or so. Regards On Jan 23, 3:25 pm, Charles charles.wh.c...@gmail.com wrote: I am interested in using the GPS to create a KML file to track my route using Paths

[android-developers] Re: Two onCreate (and onDestroy) invocations on orientation chage

2010-01-23 Thread Zsolt Vasvari
I know it's rude to reply to myself, but I create a very simple demo of this problem. This seems to effect Spinners, but not TextViews. I am not sure how to upload the .apk, but just e-mail me for it. I tested this on Nexus One. Basically, if you just change orientation, it's working fine, but

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

[android-developers] Re: Two onCreate (and onDestroy) invocations on orientation chage

2010-01-23 Thread Zsolt Vasvari
Defect 6223 created. On Jan 23, 5:28 pm, Zsolt Vasvari zvasv...@gmail.com wrote: I know it's rude to reply to myself, but I create a very simple demo of this problem.  This seems to effect Spinners, but not TextViews. I am not sure how to upload the .apk, but just e-mail me for it. I tested

[android-developers] Re: Phone calls recording on 2.0

2010-01-23 Thread appforce.org
Thanks for your reply. -- 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-developers+unsubscr...@googlegroups.com For

[android-developers] Re: Kernel Messages

2010-01-23 Thread perumal316
Meaning I have to use Android NDK? On Jan 14, 1:19 pm, Frank Weiss fewe...@gmail.com wrote: I suppose JNI would be the way to go. On Wed, Jan 13, 2010 at 12:35 AM, perumal316 perumal...@gmail.com wrote: Hi, Any idea how do I show the kernel messages to user? One way is to install

[android-developers] Re: adding a quick add event to the Calendar

2010-01-23 Thread jarkman
Thanks! That's a very handy link. I've succeeded in adding events to the calendar on a Cliq, but my first event (which had no time) seems to have driven the Calendar sync protocol mad. My Calendar no longer syncs any events back to Google Calendar on the web, and the web interface claims I have

[android-developers] Access inbuilt Contacts functionality of phone in my application.

2010-01-23 Thread Pranav
Hi all, I want to access the inbuilt Contacts functionality in my application. If it is possible, than how? Anybody have any idea regarding this way? I really need you help. I would appreciate your help. Thanks. -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: Authentication Credentials

2010-01-23 Thread Brion Emde
Yes, that is full-on OAUTH and is quite elegant from the standpoint of the security that is provided and the ease for the application. Since the authentication is being done on a user's trusted site (Twitter in this case), then the credentials are sent securely back to the application, it's very

[android-developers] Re: MotionEvent and KeyEvent causing excessive garbage collect (GC) calls

2010-01-23 Thread SnowCrash
Thanks for the tip! I'll give it a go. On Jan 20, 9:03 pm, Neil neil.wilkin...@gmx.com wrote: Just ran into this myself. It seems calling event.recycle() in the motion event handler resolves it. Regards, Neil On Jan 6, 3:38 pm, SnowCrash jason.poli...@gmail.com wrote: anybody out

[android-developers] JetPlayer

2010-01-23 Thread Business Talk
Is there any way to control a play position of a JetPlayer? This concept seems to be totally foreign to it's api. I have a requirement to use a SeekBar to control a play position of the player, as it's done with the mp3 players. -- You received this message because you are subscribed to the

[android-developers] Re: newbie question on onDraw

2010-01-23 Thread schwiz
to force onDraw to call you must call invalidate. On Jan 22, 10:23 am, bhupesh bhupeshkha...@gmail.com wrote: All references so far I have seen is that the framework will call onDraw.  Which part of the framework specifically calls onDraw.  Can I control when onDraw gets called or can I call

[android-developers] HttpServerConnection

2010-01-23 Thread Jags
is there a simple example of HttpServerConnection usage in android ? can it be used for posting some data to android device ? i mean get post type ? thanks and regards Jagat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Problems with AccountManager

2010-01-23 Thread Brion Emde
I've researched the earlier threads about AccountManager and still am having problems. I'm trying to extend my Twitter OAUTH demo to use the AccountManager. I've built the beginnings of a class based on AbstractAccountAuthenticator and a Service that seems to do what it is supposed to do. My

[android-developers] Android GCOV instructions

2010-01-23 Thread Roderick Colenbrander
Hi, I wanted to use gcov on Android but I wasn't able to find any success stories. so I decided to experiment a bit and managed to get it working. Here are short instructions on how to use it: 1) Compile your C/C++ code using '-fprofile-arcs -ftest-coverage' 2) Link the code with libgcov and

[android-developers] Clicking individual images in Gridview

2010-01-23 Thread Aniruddh Bajirao
I'm trying to have a gridView with images and on clicking each image, I want to be able to uniquely identify the image that was clicked. Basically the images would be populated dynamically and on clicking each image I want to associate a different behavior. What is the best way to accomplish this?

Re: [android-developers] Re: Any API to create KML files in Android?

2010-01-23 Thread Artak Kalantarian
Is the KML you create compatible with DDMS Location Controls KML import? I found that KML files created by My Tracks cannot be imported into DDMS. They fail without an error message. On Sat, Jan 23, 2010 at 12:30 AM, gjs garyjamessi...@gmail.com wrote: Hi, It is pretty easy to write your

[android-developers] Android 2.1. issues

2010-01-23 Thread Vassilios Kirellous
Hi, I have an Android 1.6 App that works fine on 1.6. I'm sticking with release 1.6 as it seems to be the most common. However, with the advent of Android 2.1, Im worried as apparently there are some bugs in there that prevent apps like mine working on it. I think it would be a great sign of

[android-developers] Re: First HTTP/S requests are slow. [Android 1.5]

2010-01-23 Thread SizzlingSkizzorsProgrammer
Same thing here. The first request (for both POST and GET) takes up to a couple seconds and then all requests afterwards take much shorter (less than half a second!). Any ideas? On Jan 23, 4:31 pm, Yuvi yuvidr...@gmail.com wrote: Hi! I'm developing my first android app, which needs to make

[android-developers] How to center a ImageView vertically in its parent view?

2010-01-23 Thread kknight
My layout design is a TextView with long text and a ImageView to the right of the TextView. I want to center the ImageView in its parent vertically, so I used android:layout_centerVertical=true, but it turned out that the ImageView was aligned to the bottom of its parent. If I don't use

[android-developers] Re: First HTTP/S requests are slow. [Android 1.5]

2010-01-23 Thread SizzlingSkizzorsProgrammer
BTW: Same thing too with URLConnection...even when using new connections each time (not reusing the old connection) On Jan 23, 4:31 pm, Yuvi yuvidr...@gmail.com wrote: Hi! I'm developing my first android app, which needs to make some http and https requests. I'm using the apache HttpClient.

Re: [android-developers] Android 2.1. issues

2010-01-23 Thread Dianne Hackborn
What backward compatibility issue? Have you actually tried running on 2.1 in the emulator? You are going to need to provide a -little- more information for anyone to be able to help you. On Sat, Jan 23, 2010 at 4:39 PM, Vassilios Kirellous vassi...@gmail.comwrote: Hi, I have an Android 1.6

Re: [android-developers] Android 2.1. issues

2010-01-23 Thread Romain Guy
FWIW,we (Android team) have been running 2.1 on our personal phones for weeks/months and we use apps from Market, etc. It is very possible that some apps are affected by changes in 2.1 but there can be two reasons to this: - the app was relying on a faulty behavior pre-2.1 and we fixed that

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

2010-01-23 Thread Romain Guy
The bug reported below was fixed the day it was reported to us. I took care of it personally. Android is unfortunately a *very* complex piece of software (several millions of lines of code) and despite our extensive testing and dogfooding, problems like this might occur in new releases. We are

[android-developers] Can we run a code to ping all machines in my network on Android Emulator ?

2010-01-23 Thread Saurabh Lodha
public static ListString getAllHosts() throws IOException { ListString hostAddresses = new ArrayListString(); InetAddress localhost = InetAddress.getLocalHost(); String ipAddress = localhost.getHostAddress(); for (int

[android-developers] Getting the Manifest Version Code

2010-01-23 Thread dapaintballer331
How do you retrieve the current version code of an app's manifest? I don't need to access another application, I'm talking about My app accessing its own version code. Thanks -Brandon -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Re: Clicking individual images in Gridview

2010-01-23 Thread Kumar Bibek
While populating the GridView, you can set an ID or a TAG to individual images. I guess, that will help. Kumar Bibel On Jan 23, 10:03 pm, Aniruddh Bajirao abaji...@gmail.com wrote: I'm trying to have a gridView with images and on clicking each image, I want to be able to uniquely identify the

[android-developers] Re: Getting the Manifest Version Code

2010-01-23 Thread Kumar Bibek
PackageInfo pInfo = null; try { pInfo = getPackageManager().getPackageInfo(com.beanie.test, PackageManager.GET_META_DATA); } catch (NameNotFoundException e) { e.printStackTrace(); } System.out.println(pInfo.versionCode); Kumar Bibek On Jan 24, 8:48 am,

[android-developers] Emulator DNS/network problems...is there a posted fix?

2010-01-23 Thread ajoburg
I've read many postings about problems getting the Android emulator DNS to work properly in certain situations. I have a simple app that makes an HTTP connection to a server on the Internet. If I use an IP address using the latest version of the emulator it works fine. If I use the domain name it

[android-developers] Re: HttpServerConnection

2010-01-23 Thread Jags
ah, these are the apis for hitting a url and get some info and post data to from m android device, is not it ? I wanna a small http server running on my android device [may be as a service] and hosting small http pages browsable from my PC. for example if my android device is connected to wifi

[android-developers] Re: HttpServerConnection

2010-01-23 Thread Jags
ah, these are the apis for hitting a url and get some info and post data to from m android device, is not it ? I wanna a small http server running on my android device [may be as a service] and hosting small http pages browsable from my PC. for example if my android device is connected to wifi

[android-developers] Re: HttpServerConnection

2010-01-23 Thread lucky4me
See http://code.google.com/p/i-jetty/ On Jan 24, 10:27 am, Jags jag...@gmail.com wrote: ah, these are the apis for hitting a url and get some info and post data to from m android device, is not it ? I wanna a small http server running on my android device [may be as a service] and hosting

[android-developers] Regarding network connectivity on Android.

2010-01-23 Thread Android Development
Hello, Problem Statement: -- I wish to achieve the following: 1. Create a GPRS connection from my application and get the assigned IP address. 2. Send and Receive data through this connection. I can find whether GPRS is in use using TelephonyManager's

[android-developers] Re: Getting the Manifest Version Code

2010-01-23 Thread dapaintballer331
Thanks a lot kumar, I appreciate it! On Jan 23, 11:11 pm, Kumar Bibek coomar@gmail.com wrote: PackageInfo pInfo = null; try {         pInfo = getPackageManager().getPackageInfo(com.beanie.test, PackageManager.GET_META_DATA);         } catch (NameNotFoundException e) {