[android-developers] MapView and SDK 1.0

2008-10-25 Thread Nanard
Hi, I am learning how to use Google Map in an application. I have founded several example with SDK 0.5 0.9, but not with 1.0. It seems there where some changes... I have a connection error : [2008-10-25 09:26:07 - ddmlib]Une connexion établie a été abandonnée par un logiciel de votre

[android-developers] Re: Camera causing crash

2008-10-25 Thread blindfold
That's what I'm afraid of, that the G1 can only capture at full resolution. I do use image manipulation APIs for downscaling whenever possible, but that initial G1 hi-res snapshot presents the bottleneck in performance and memory (failure with OutOfMemoryError on the real G1). I hope that the

[android-developers] Re: Attaching the Eclipse debugger to actual device

2008-10-25 Thread ______
Same problem on Fedora, with a partial solution: Try ls -l /dev/bus/usb/* before and after plugging in the device, and compare that to ls -l /proc/bus/usb/* before and after plugging in. Looking through the source code, I noticed adb only scans /dev/bus/ usb, not /proc/bus/usb. On my Fedora

[android-developers] Re: Unable to update hosts and cacerts.bks

2008-10-25 Thread Anders Rundgren
Obviously I'm not alone... http://groups.google.com/group/android-developers/browse_thread/thread/f9278d120d773c8d/b16ff4bbce56b787 Anders On Oct 23, 7:09 pm, Anders Rundgren [EMAIL PROTECTED] wrote: For those who call local servers it is convenient to be able to update hosts. When I try

[android-developers] Re: scrollTo not functional after setText

2008-10-25 Thread skink
On 25 Paź, 00:00, Romain Guy [EMAIL PROTECTED] wrote: This is probably because the layout has not happened yet. Instead of using postDelayed(), try using post(). It should work. update: post() works as well, i must have passed wrong param to scrollTo thanks Romain for tip! skink On

[android-developers] Re: the highlight of items in ListView

2008-10-25 Thread James
Thanks Romain, this is really what I needed. I tried to figure it out, but it spent me more than half a day and failed. Thanks again. Hi Kevin, this works great. On Oct 25, 12:04 am, Romain Guy [EMAIL PROTECTED] wrote: Sure! On ListView, set android:listSelector=@android:color/transparent.

[android-developers] Problems writing to SD card of physical T-Mobile G1?

2008-10-25 Thread blindfold
In writing a small audio file to the root of the SD card, a T-Mobile G1 was found to fail. The exact same code works fine on the SDK 1.0 r1 emulator with its emulated SD card. Moreover, that same T-Mobile G1 had no problem writing the audio file to internal flash (in my app this is an automatic

[android-developers] Re: MapView and SDK 1.0

2008-10-25 Thread Huebi
You need a valid Map API key by now. Read here: http://android-developers.blogspot.com/2008/10/new-android-maps-api-terms-of-service.html on how to get it. On Oct 25, 9:39 am, Nanard [EMAIL PROTECTED] wrote: Hi, I am learning how to use Google Map in an application. I have founded several

[android-developers] Daemon

2008-10-25 Thread dai
hi, this might be a trivial question but do me a favor please.. Can the android application we develop observe applications' process, cpu performance, memory allocation? Are the android allowed to have kind of this application? Thank you so much

[android-developers] Re: the highlight of items in ListView

2008-10-25 Thread cyntacks
Awesome! Thanks to the both of you. I have spent so much time over the last 6 months focussed on the back end that I am just know coming into the finishing stretch where the UI is becoming the number one issue. So, sorry for the numerous questions, but thanks again for the help! On Oct 24,

[android-developers] Any newbie guide to installing the SDK on Mac OSX?

2008-10-25 Thread monkeyboy
I know you need to download Java before you can get the Android SDK to work, but I am a bit of a noob. Anyone have a guide or tutorial on getting setup to develop for Android on Mac OSX? Thanks. --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Paging a ListView

2008-10-25 Thread Casey Link
Hello, I've implemented a ListView with a custom ArrayAdapter and View type. That works fine, however now I would like to page the listview. That is, if my array has n items in it, I only want to show x items number, where x n. Ideally, as the user scrolls the ListView items will appear and

[android-developers] using repo

2008-10-25 Thread geoff
I'm unclear about the difference between using repo to create a branch and using git to create a topic branch? or do you end up doing both? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Running an activity w/o external communications

2008-10-25 Thread Jose Vasconcellos
I would like to run an activity only if all communication paths (e.g. gsm, wifi, bluetooth) are disabled. Is that possible? A related questions, how to disable wireless communications? Is that not a requirement in order to use android in a plane?

[android-developers] Source Compiling error

2008-10-25 Thread geoff
when i use make in the droid root directory it will preform build tasks for a while before it comes to this : /usr/bin/ld: cannot find -lncurses collect2: ld returned 1 exit status thanks for any advice in advance --~--~-~--~~~---~--~~ You received this

[android-developers] Problems with file permissions on actual G1 platform

2008-10-25 Thread azz710
Folks, I just received my T-Mobile G1 am very pleased, to say the least, and I expect to develop a couple of applications, probably for my own use. Meanwhile, I'm trying to install a couple of non-Android Market, partially developed applications, starting with VNC. Specifically, I'm trying to

[android-developers] Re: If your hosting your own .apk

2008-10-25 Thread brs
It would also be nice to have a list of hosting sites which handle the MIME type for .apk files correctly. Download tab for http://code.google.com projects is one of them. Bernhard On Oct 21, 5:15 am, Al Sutton [EMAIL PROTECTED] wrote: There are a number of reports of people having problems

[android-developers] Help_Appreciated: Sample code for getting data from a web server

2008-10-25 Thread Armanda Lewis
I apologize if this has already been asked, but I am looking for sample code for how to make a call and retrieve info from a web server. I have my PHP/MySql script running, but don't know how to make Android get access to my database on my server. Thanks in advance!!!

[android-developers] Getting Text Value from a org.w3c.dom.Node

2008-10-25 Thread Ramblurr
Hello, Just thought I'd share a little tip I figured out. Dalvik (the Android Java VM) implements an older version of the w3c DOM specification, which doesn't include the getTextContent() method for the Node (and Element) class. This resulted in a compile time error The method getTextContent()

[android-developers] 20081024 What is the lastest on Android Speech Recognition ?

2008-10-25 Thread puppetboy
20081024What is the lastest on Android Speech Recognition ? Is it released ? Is it being deveolped ??? Best Gus --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: Regarding view onKeyDown issue...

2008-10-25 Thread Azatoth
For fix your problem you can override the OnKeyDown event in the class that extends MapActivity ;) On Sep 11, 11:45 am, Wesley [EMAIL PROTECTED] wrote: ya... FYI, most of the times it happen is after I Invoke Touch screen event... the onKeyDown seem not work because of the warning... why???

[android-developers] Re: Problems with file permissions on actual G1 platform

2008-10-25 Thread Justin (Google Employee)
Specifically, when I try to adb install path to androidVNC.apk, I receive the following error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED The error message is saying there is something wrong with your manifest file. Perhaps you are not building against the 1.0r1 SDK? Can you provide pointers to

[android-developers] networking tcp/xmpp

2008-10-25 Thread cslinux
-First of all i'm asking if the android api uses a different networking packages than JAVA's packages on the device layer ? i.e any networking code 'll be easily deployed on an android device, exactly same as the emulator ? -I'm asking how to write mini chat application between adnroid

[android-developers] Re: D-Pad on the emulator does not exist on G1

2008-10-25 Thread Ed
Thanks for the response hackbod. However, the trackball left and right events are not being handled by the G1--using the same code that works in the emulator. It would be nice to replace else if KeyEvent.KEYCODE_DPAD_LEFT with onEvent.TRACKBALL_LEFT or something similar, but it doesn't work

[android-developers] Re: MapView and SDK 1.0

2008-10-25 Thread Azatoth
Hi, in my app it's all right, but I have modified a little bit the code... In my Manifest I have added :         uses-library android:name=com.google.android.maps / this tag is into the application child tag in the manifest?         com.google.android.maps.MapView  android:apiKey=bogus    

[android-developers] How do I use GoogleLoginService?

2008-10-25 Thread androidian
I'm trying to find out how Android gets the user's Google account login details. This is so that I may use their authenticated token in my app which will need it for one of the Google Data services. I assume from the built in GoogleLoginService which I can see in LogCat as well as in the

[android-developers] Re: Media Player Error -38,0

2008-10-25 Thread for android
Any help? I would at least like to know when does the error (-38,0) comes..Atleast that would help i guess..Thanks for ur time On Fri, Oct 24, 2008 at 6:41 PM, for android [EMAIL PROTECTED] wrote: When i am streaming a Mp3 and playing it after sufficint data is there to play I get an errir as

[android-developers] Re: Problems with file permissions on actual G1 platform

2008-10-25 Thread azz710
Dear Justin, Thanks so much for responding. Here's a link to the project page for the VNC Viewer: http://code.google.com/p/android-vnc-viewer/ ...and here's the page for the VNC server: http://code.google.com/p/android-vnc/ Note the latter's instructions simply to move the file to the

[android-developers] Re: Paging a ListView

2008-10-25 Thread Romain Guy
Hi, ListView already works this way :) On Fri, Oct 24, 2008 at 9:58 PM, Casey Link [EMAIL PROTECTED] wrote: Hello, I've implemented a ListView with a custom ArrayAdapter and View type. That works fine, however now I would like to page the listview. That is, if my array has n items in it,

[android-developers] Silicon Valley Free Code Camp Nov 8-9

2008-10-25 Thread Easan
For those interested, Code Camp soon. I see nothing Android-specific in the 115 sessions, but do see 36 Java-related sessions. http://www.siliconvalley-codecamp.com/ easan -- http://www.easankatir.com/ --~--~-~--~~~---~--~~ You received this message because

[android-developers] Re: Attaching the Eclipse debugger to actual device

2008-10-25 Thread ______
FYI there is a better way to do this than setting the OWNER attribute, by using pam authentication to give the console user r/w perms when the device is plugged in. If anyone is still having probs, try this solution: https://bugzilla.redhat.com/show_bug.cgi?id=468532 There is more info there

[android-developers] Can we move Android phone and then the code capture this and do some action?

2008-10-25 Thread AlfredBaudisch
Hello, Sorry if this has been discussed already or is in the documentation, but I don't know the right words to search. What I'm looking for is if Android supports the feature like iPhone for a game: we move / shake the phone and then the code can capture this movement and then e.g move a ball,

[android-developers] Streaming Media

2008-10-25 Thread Ben Dodson
I'm trying to get my web streaming software running on Android. Things seem to work fine for streaming mp3 files, but I can't get playlists working. So far, I've only tried m3u files. Anyone had any luck with playlists? --~--~-~--~~~---~--~~ You received this

[android-developers] Re: quick question on camera preview format

2008-10-25 Thread blindfold
I'm not even sure whether Android's yuv422sp preview format represents any decent standard format, because with a previous SDK M5 RC15 we got a color preview on the emulator screen, whereas nowadays with SDK 1.0 r1 it shows as greyscale only. Moreover, although the preview array for me shows a

[android-developers] Re: If your hosting your own .apk

2008-10-25 Thread Edward Falk
The android won't accept unsigned applications, although self-signed certificates are acceptable. The Eclipse/SDK will automatically sign apps for you with a temporary debugging certificate, but you'll want your own permanent certificate before you release. The debug cert expires after one

[android-developers] Re: ADB via USB

2008-10-25 Thread Vince Castellano
On Oct 24, 12:06 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Yeah. I'm wating for a x64 driver myself :-\ On Oct 23, 12:28 pm, Declan Shanaghy [EMAIL PROTECTED] wrote: But is the driver x64 compatible? Same problem here, wish there was a way to ping google on this so that they can see

[android-developers] Re: Can we move Android phone and then the code capture this and do some action?

2008-10-25 Thread Wiktor
Are you talking about using Accelerometer like here http://pl.youtube.com/watch?v=kw8UJOPnqFY ? On 25 Paź, 19:16, AlfredBaudisch [EMAIL PROTECTED] wrote: Hello, Sorry if this has been discussed already or is in the documentation, but I don't know the right words to search. What I'm looking

[android-developers] Re: Can we move Android phone and then the code capture this and do some action?

2008-10-25 Thread AlfredBaudisch
Found: http://code.google.com/android/reference/android/hardware/SensorManager.html http://code.google.com/p/openintents/wiki/SensorSimulator :) On Oct 25, 2:16 pm, AlfredBaudisch [EMAIL PROTECTED] wrote: Hello, Sorry if this has been discussed already or is in the documentation, but I

[android-developers] Re: Join via ContentProvider

2008-10-25 Thread jtaylor
ExpandableList2. http://code.google.com/android/samples/ApiDemos/src/com/example/android/apis/view/ExpandableList2.html - Juan On Oct 24, 3:05 am, Anm [EMAIL PROTECTED] wrote: I'm struggling to understand how to do a join, if its possible, with the decomposed SQL arguments of the

[android-developers] Re: My application doesn't work...

2008-10-25 Thread Yoshiyuki
This is non-modified version of my error log. [2008-10-26 03:44:06 - Calorie2] -- [2008-10-26 03:44:06 - Calorie2] Android Launch! [2008-10-26 03:44:06 - Calorie2] adb is running normally. [2008-10-26 03:44:06 - Calorie2] Launching: com.gclue.android.Calorie

[android-developers] Re: Can we move Android phone and then the code capture this and do some action?

2008-10-25 Thread AlfredBaudisch
Yes, this kind of thing, thanks. So, Accelerometer and SensorManager. On Oct 25, 3:42 pm, Wiktor [EMAIL PROTECTED] wrote: Are you talking about using Accelerometer like herehttp://pl.youtube.com/watch?v=kw8UJOPnqFY? On 25 Paź, 19:16, AlfredBaudisch [EMAIL PROTECTED] wrote: Hello,

[android-developers] Re: Join via ContentProvider

2008-10-25 Thread jtaylor
ExpandableList2.java has the getChildrenCursor() (in the MyExpandableListAdapter inner class) which has the code for obviously a contentprovider Join. http://code.google.com/android/samples/ApiDemos/src/com/example/android/apis/view/ExpandableList2.html - Juan On Oct 25, 2:47 pm, jtaylor

[android-developers] Problem with ContentResolver

2008-10-25 Thread Ernest Jojart
Hello, I'm trying to insert a new mp3 file to the SDCARD using Content Providers. I'm doing everything as in the tutorial is written in Google page: ContentValues values = new ContentValues(4); values.put(MediaStore.Audio.Media.DISPLAY_NAME, MySong); values.put(MediaStore.Audio.Media.MIME_TYPE,

[android-developers] Re: Paging a ListView

2008-10-25 Thread april
Does your list have expand functionality(WHen user click the item, the item will expand to 2 row. I found expand is not working after I upgrade to 1.0. Do you have same problem? Thanks On Oct 24, 9:58 pm, Casey Link [EMAIL PROTECTED] wrote: Hello, I've implemented a ListView with a custom

[android-developers] Re: how to put application to g phone

2008-10-25 Thread barrie
We try to download our .apk via web site but we got an error message saying the content being downloaded is not supported by the phone. Any idea about it? Thanks On Oct 24, 1:27 am, Kipling Inscore [EMAIL PROTECTED] wrote: On Thu, Oct 23, 2008 at 10:08 AM, barrie [EMAIL PROTECTED] wrote: I

[android-developers] Starting a new Activity

2008-10-25 Thread Mark Wyszomierski
Hi, After an Activity creates a new Activity, is it possible for the new Activity to communicate with the old one at all? Something like: Activity A is being viewed Activity creates activity B, and displays it can B communicate with A at this point? I'm creating activity B with:

[android-developers] Re: quick question on camera preview format

2008-10-25 Thread blindfold
Actually, what I wrote before was when setting PixelFormat.JPEG, for which I noticed that setPreviewSize() took no effect whatsoever and always resulted in a default size of 176 x 144. I now found that if I select PixelFormat.YCbCr_422_SP, which may correspond to yuv422sp from its naming

[android-developers] Re: Starting a new Activity

2008-10-25 Thread Mark Murphy
Mark Wyszomierski wrote: After an Activity creates a new Activity, is it possible for the new Activity to communicate with the old one at all? Something like: Activity A is being viewed Activity creates activity B, and displays it can B communicate with A at this point?

[android-developers] Re: Paging a ListView

2008-10-25 Thread Romain Guy
ExpandableListview works, it is used in the Email app and in Home. On Sat, Oct 25, 2008 at 1:33 PM, april [EMAIL PROTECTED] wrote: Does your list have expand functionality(WHen user click the item, the item will expand to 2 row. I found expand is not working after I upgrade to 1.0. Do you

[android-developers] Re: Starting a new Activity

2008-10-25 Thread Mark Wyszomierski
Ok so I've got a map activity which displays some pins. I have a thread which runs in the background, it will periodically generate new pins to place on this map activity. I guess I can communicate between the 2 via a Handler. From the map activity, the user may create a new Activity to enter

[android-developers] Re: Starting a new Activity

2008-10-25 Thread Mark Murphy
Mark Wyszomierski wrote: From the map activity, the user may create a new Activity to enter some text let's say. Now the map activity is 'paused', but the background thread is still trying to post messages to its Handler. Stop the thread in onPause() and start a fresh thread in onResume().

[android-developers] Re: Require Source Code on Windows

2008-10-25 Thread [EMAIL PROTECTED]
then why is the emulator missing so many applications and APIs? It's especially annoying that it's missing the entire settings section of the OS. And you're wrong, the SDK comes with Adroid 1.0r1, not Android 1.0, as discussed elsewhere on the forum here. On Oct 24, 10:34 am, Romain Guy [EMAIL

[android-developers] Re: Require Source Code on Windows

2008-10-25 Thread Mark Murphy
[EMAIL PROTECTED] wrote: then why is the emulator missing so many applications and APIs? What missing APIs? In terms of applications, most of the ones not in the SDK are commercial applications (e.g., YouTube viewer), if I understand correctly. It's especially annoying that it's missing

[android-developers] RandomAccessFile won't write to an existing file.

2008-10-25 Thread Anton
Hi, I've been trying for days to come up with a workaround to get RandomAccessFile to write to an existing file with no success. I've tried using the methods in RandomAccessFile and FileChannel. Of course I have opened in rw mode. I've made sure I sync / force / close--I've even experimented

[android-developers] Re: Button Up? LongClick?

2008-10-25 Thread cyntacks
Hey Romain, It seems as if you are as big of a geek as me (posting on Saturday night), but I guess that is a good thing! So, I should have mentioned I tried the OnLongClick as well.. I could get it to register the long click, but that was it. Please take a look at my example:

[android-developers] Re: Button Up? LongClick?

2008-10-25 Thread cyntacks
Hey Romain, It seems as if you are as big of a geek as me (posting on Saturday night), but I guess that is a good thing! So, I should have mentioned I tried the OnLongClick as well.. I could get it to register the long click, but that was it. Please take a look at my example:

[android-developers] bootloader and Linux kernel development help

2008-10-25 Thread krishna devarapalli
Hi, I am new to Android platform. I would like to contribute in the bootloader and Linux kernel modules development. Request for pointers for the same. Thanks in advance. Cheers, Krishna --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Re: Starting a new Activity

2008-10-25 Thread hackbod
On Oct 25, 3:38 pm, Mark Murphy [EMAIL PROTECTED] wrote: I'm not 100% certain, but my guess would be the messages queue up and will not get handled until the activity is brought back via onResume(). The Handler and activity in the background will continue running. Note that when we are

[android-developers] Re: How do I use GoogleLoginService?

2008-10-25 Thread hackbod
The SDK API for this is not yet available. I believe we will be providing an API that is compatible with all 1.0 devices, but I have no idea when that will happen. On Oct 25, 8:18 am, androidian [EMAIL PROTECTED] wrote: I'm trying to find out how Android gets the user's Google account login

[android-developers] Easy way to get Google SID

2008-10-25 Thread Eric B
I created this issue in the Android issue tracker, http://code.google.com/p/android/issues/detail?id=1073, but I was wonder (apart from doing it yourself using an HttpClient) if anyone know of how to get a Google SID in Android? Thanks, Eric --~--~-~--~~~---~--~~

[android-developers] Re: Button Up? LongClick?

2008-10-25 Thread Romain Guy
In onClick or onLongClick, the button is not pressed anymore. You need to use your own onTouchEvent/onKeyEvent implementations. On Sat, Oct 25, 2008 at 5:28 PM, cyntacks [EMAIL PROTECTED] wrote: Hey Romain, It seems as if you are as big of a geek as me (posting on Saturday night), but I

[android-developers] Fastest Combination of Http Post/Get and XML parsing libs

2008-10-25 Thread Casey Link
Hello, My Application is consuming some remote REST services. Currently I am using java.net.HttpURLConnection to make the POST/GET requests, and javax.xml.parsers.DocumentBuilder, org.w3c.dom to parse the XML results. I don't have any hard numbers, but it is very slow in the emulator. The main

[android-developers] Lat/Lon Calculation

2008-10-25 Thread Gil
I need to compute the lat/lon for a point which is located 'n' meters south and north of a given location. Is there a class to help with this calculation? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Video Formats in android

2008-10-25 Thread guna
Hi to all, Anyone trying with media player in android which is supporting for other formats? And this is for java experts: Last night i tried for various codecs for media player. And find out JVLC and ffmpeg libraries for supporting different codecs. I want to know the standard procedure

[android-developers] Re: Media Player Error -38,0

2008-10-25 Thread guna
Hi, Coding is better enough to reply for your thread. Because that line is not sufficient to answer by a developer until they met with that same problem. Otherwise google employee should answer for that. Thanks, guna --~--~-~--~~~---~--~~ You received this

[android-developers] Re: How to put apk to G1 Phone

2008-10-25 Thread guna
Hi, Go for slideme.org for insatlling apk... Thanks, Guna On Oct 24, 5:05 pm, nkijak [EMAIL PROTECTED] wrote: Please just follow this thread athttp://groups.google.com/group/android-developers/browse_thread/threa... On Oct 24, 12:18 am, yasmin afrose [EMAIL PROTECTED] wrote: Hi,