[android-developers] Re: Open SubMenu programatically

2008-11-24 Thread Guillaume Perrot
, Guillaume Perrot [EMAIL PROTECTED] wrote: I don't think this is the right thing to do. A good UI should not pop the panel menu programmatically, meaning by that the user didn't press the menu button and does not expect the panel to pop (and probably doesn't want to). You may consider using

[android-developers] Re: HttpClient and POST requests

2008-11-23 Thread Guillaume Perrot
http://hc.apache.org/httpcomponents-client/examples.html On Nov 22, 3:37 pm, fala70 [EMAIL PROTECTED] wrote: Hi, I've a problem to translate follow code to org.apache.http.*;            OutputStream pos = new OutputStream();             pos.writeShort(Const.INVOCATION_CODE);            

[android-developers] Re: TabHost and New Activities

2008-11-23 Thread Guillaume Perrot
Activities inside TabAcitivity are not true acitivities, and so have some limitations that I noticed. And of course, no documentation about that: * you can't bind to a service, onServiceConnected will never be called. * window features (only available in the TabActivity). * you can't use most of

[android-developers] Re: Notification details Activity never receives Intent used to fire it

2008-11-21 Thread Guillaume Perrot
I retested my application, I can post two notifications with two pending intents with the same action (but different extra args) and this works only if put different request codes each time... I tested to click them in different orders to check it this really works: it works, the correct extra

[android-developers] Re: Notification details Activity never receives Intent used to fire it

2008-11-21 Thread Guillaume Perrot
Ok, so there is a bug and we are exploiting it. 2008/11/21 Dianne Hackborn [EMAIL PROTECTED] On Fri, Nov 21, 2008 at 2:14 AM, Matthias [EMAIL PROTECTED]wrote: Well, when /do/ PendingIntents match? All I can say is that calling PendingActivity.getActivity() created a new PendingIntent each

[android-developers] Re: Notification details Activity never receives Intent used to fire it

2008-11-21 Thread Guillaume Perrot
Thanks for your answer, it eventually solves the mystery \o/ I quoted it in the Issue 863. http://code.google.com/p/android/issues/detail?id=863 On 21 nov, 23:38, Dianne Hackborn [EMAIL PROTECTED] wrote: Ah you are right, the request code is also part of its identity. For the nitty gritty

[android-developers] Re: Notification details Activity never receives Intent used to fire it

2008-11-20 Thread Guillaume Perrot
I have this bug too, It works better when I put a requestCode in the PendingIntent, but according to the documentation, this parameter is not used... Strange... Even by doing that it sometimes fail, but without that, it surely fails as you both noticed. Here is the way I post my notification:

[android-developers] Re: Notification details Activity never receives Intent used to fire it

2008-11-20 Thread Guillaume Perrot
Google and their terrible documentation, I spent the whole day hunting down a bug that ain't there... great. Now I'll go home and bang my head at the wall for the rest of the day. On 20 Nov., 17:59, Guillaume Perrot [EMAIL PROTECTED] wrote: I have this bug too, It works better when I put

[android-developers] Re: Notification details Activity never receives Intent used to fire it

2008-11-20 Thread Guillaume Perrot
Will the SDK be improved to allow several matching pending intents ? 2008/11/20 Dianne Hackborn [EMAIL PROTECTED] I am really not clear on exactly what you are doing or expecting, but one thing to watch out for -- when you get a PendingIntent, if there is already a PendingIntent matching the

[android-developers] Re: ListActivity and progressbars?

2008-11-17 Thread Guillaume Perrot
Your code is quite strange because when you perform UI operations, it has to be on the main thread, so you normally have to use an Handler to post actions on the UI thread when you are in another thread. I am surprised it works. Plus I checked your CategoryList.java at google code, I didn't find

[android-developers] Re: Wifi communication

2008-11-17 Thread Guillaume Perrot
I don't know about bluetooth support in the SDK, but the G1 does support bluetooth, I can tune it in the settings. On Nov 17, 5:59 am, Prashant Kalkar [EMAIL PROTECTED] wrote: Hi, I am working on an application that need to communicate between two devices. Initially the application was going

[android-developers] Strange WIFI behavior when the G1 screen is blacked/locked (sleeping ?).

2008-11-17 Thread Guillaume Perrot
I implemented a BroadCastReceiver to monitor the connectiviy thanks to the android.net.ConnectivityManager API. When the G1 becomes locked after a couple of minutes and the screen is black I have this logs: 11-17 15:04:03.271: ERROR/ubikim(1849): key=networkInfo , value=NetworkInfo: type: WIFI,

[android-developers] Re: Strange WIFI behavior when the G1 screen is blacked/locked (sleeping ?).

2008-11-17 Thread Guillaume Perrot
)); } On 17 nov, 15:13, Guillaume Perrot [EMAIL PROTECTED] wrote: I implemented a BroadCastReceiver to monitor the connectiviy thanks to the android.net.ConnectivityManager API. When the G1 becomes locked after a couple of minutes and the screen is black I have this logs: 11-17 15:04:03.271: ERROR

[android-developers] Re: Strange WIFI behavior when the G1 screen is blacked/locked (sleeping ?).

2008-11-17 Thread Guillaume Perrot
is for the Wi-Fi radio to shut off some time after the screen blanks, and so the first disconnect is not strange at all. If you were to activate the screen, it would then connect again. On Nov 17, 6:17 am, Guillaume Perrot [EMAIL PROTECTED] wrote: Forgot to mention the logs are mine, to avoid

[android-developers] Re: OnItemLongClickListener!?

2008-11-16 Thread Guillaume Perrot
What is your issue with long clicks ? There's no trick. On Nov 15, 7:54 pm, g1ster [EMAIL PROTECTED] wrote: Anyone has a working example for OnItemLongClickListener on a listview? I have a simple ArrayAdapter listview, but could not get the OnItemLongClickListener to work. Thanks!!!

[android-developers] Re: File Browser

2008-11-15 Thread Guillaume Perrot
You can't read most of the G1 files whether you can in the emulator... On Nov 15, 5:20 am, 心蓝 [EMAIL PROTECTED] wrote: in my program can display all the file! 2008/11/15 Sunit Katkar [EMAIL PROTECTED] Can you share your code? On Thu, Nov 13, 2008 at 9:40 PM, Chihau Chau [EMAIL

[android-developers] Re: ListActivity and progressbars?

2008-11-15 Thread Guillaume Perrot
I have simular issues with TabActivity. On Nov 14, 7:00 pm, aadamson [EMAIL PROTECTED] wrote: I've about pulled out my hair over this one.  Not that it's a huge deal, but I would like to know why this doesn't work? I have a main class that extends listactivity.  In it's oncreate method, I

[android-developers] Re: Before publish: Deactivate any calls to Log methods in the source code - How ?

2008-11-13 Thread Guillaume Perrot
The eclipse plugin should provide an option to remove all logs when exporting unsigned application from Eclipse. It's quite a shame to have to do this ourself if you tell us to do so when releasing. On Nov 13, 10:46 am, hackbod [EMAIL PROTECTED] wrote: You should make a static final boolean

[android-developers] Re: Handle tap on MyLocationOverlay current GPS position

2008-11-10 Thread Guillaume Perrot
Create a MyLocationOverlay subclass, and override dispatchTap(). On Nov 8, 1:33 pm, Stu [EMAIL PROTECTED] wrote: Hi there. I'm having trouble handling a tap on my current location in a MyLocationOverlay. There seem to be functions specifically for this, but I can't seem to handle it

[android-developers] Re: How shall I need design my application when the device be rotated?

2008-11-08 Thread Guillaume Perrot
Check orientation in the manifest file for your activities then override onConfigurationChanged in your activities, this function will be called each time the phone's orientation changes. On Nov 7, 3:02 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi , I mean,  If the device be rotated,

[android-developers] Re: Thread Question

2008-11-07 Thread Guillaume Perrot
:44 pm, Guillaume Perrot [EMAIL PROTECTED] wrote: You should not use the following in your case but there is a simple way to wait for a thread to complete, it's the Thread.join() function. This should be called only in a background thread which need to synchronize with another background

[android-developers] Re: Android on device GPS locate not working - code included

2008-11-07 Thread Guillaume Perrot
is running, but no data is transmitted to my Google map that's on my website where I can track where I am. Cheers Amir On Nov 4, 12:17 pm, Guillaume Perrot [EMAIL PROTECTED] wrote: Did you check if the standard map application manages to display your location ? 2008

[android-developers] Re: Check for new version of applications

2008-11-06 Thread Guillaume Perrot
Because we use a XMPP based application, we chosed Pubsub as a way to notify new versions to the user. The main advantage is that it uses a push model. The user is aware of a new version when he launches the app or in real time if he's online while a new version has just been released. No timer

[android-developers] Re: Thread Question

2008-11-06 Thread Guillaume Perrot
You should not use the following in your case but there is a simple way to wait for a thread to complete, it's the Thread.join() function. This should be called only in a background thread which need to synchronize with another background thread for some reason. You should (i'd say must) never

[android-developers] Re: Yet another HTTPS problem with HttpClient in Android SDK v1.0r1

2008-11-04 Thread Guillaume Perrot
is with the HTTPClient API. 2008/11/4 [EMAIL PROTECTED] [EMAIL PROTECTED] have you success your https connection? I don't know how to do with the not trusted certificate. thx On 23 oct, 09:23, Guillaume Perrot [EMAIL PROTECTED] wrote: Caused by: java.security.cert.CertPathValidatorException: TrustAnchor

[android-developers] Re: Android on device GPS locate not working - code included

2008-11-04 Thread Guillaume Perrot
an approximate location. All the best, Akbur On Nov 2, 11:45 am, Guillaume Perrot [EMAIL PROTECTED] wrote: It can take a while to the G1 to init the gps and return a fix. And you must see the sky for the GPS to work. Your code and permissions seem correct, try using the network

[android-developers] Re: Problems streaming ogg files

2008-11-03 Thread Guillaume Perrot
Ogg files are not supported by android. Android only supports mp3 and m4a files (amr audio codec). I may be wrong but to check you can play your ogg locally with the standard music application. On Nov 2, 10:16 pm, David Given [EMAIL PROTECTED] wrote: I'm trying to stream an ogg file over the

[android-developers] Re: Android on device GPS locate not working - code included

2008-11-02 Thread Guillaume Perrot
It can take a while to the G1 to init the gps and return a fix. And you must see the sky for the GPS to work. Your code and permissions seem correct, try using the network provider to test (which is faster and work in buildings unlike the GPS). Make sure GPS location provider is enabled on the

[android-developers] Re: delete my app on G1

2008-11-02 Thread Guillaume Perrot
Do not uninstall applications from the adb shell, Run the following in a shell: adb -d uninstall applicationpackagename (not the appplication name) On Nov 1, 6:05 am, sd [EMAIL PROTECTED] wrote: I am able to delete my app on the emulator either using adb or the file explorer on ddms. However,  

[android-developers] Re: GTalk (XMPP) service, ADC, android market and wasted months

2008-11-02 Thread Guillaume Perrot
I think it won't be very long to port your code using the smack library. We have used it since M5 because the gtalk API was poor. Thus, old gtalk api was using Smack. On Nov 2, 2:11 am, Steve Oldmeadow [EMAIL PROTECTED] wrote: r a f t wrote: now i really WONDER if using GTalk service was a

[android-developers] Re: No audio picker activity?

2008-11-01 Thread Guillaume Perrot
Actually, there is already intents to capture sound or photo, they're just undocumented bet we use it in our application: mCaptureImageIntent = new Intent(android.media.action.IMAGE_CAPTURE); mCaptureAudioIntent = new Intent(MediaStore.Audio.Media.RECORD_SOUND_ACTION); On 31 oct, 21:17, Alvin

[android-developers] Re: No audio picker activity?

2008-11-01 Thread Guillaume Perrot
I hope when there will be standard intents to replace them once those two intents will break. 2008/11/1 hackbod [EMAIL PROTECTED] Just be prepared for your application to break in the future. These are undocumented because they are not ready for use. On Nov 1, 5:50 am, Guillaume Perrot

[android-developers] Re: Audio recorder format

2008-10-29 Thread Guillaume Perrot
This is the audio codec for catpured sounds. Default is the same as AMR_NB, this is the audio codec generally used in 3gp videos. On Oct 29, 4:47 am, april [EMAIL PROTECTED] wrote: So there is no body doing Audio related coding on Android? On Oct 28, 10:41 am, april [EMAIL PROTECTED] wrote:

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

2008-10-27 Thread Guillaume Perrot
According to me, the fastest combo is to use HttpClient + SAX. SAX: encouraged by the android team, they discourage the use of XmlPullParser unless we import KXml in our source tree and use this implementation. With HttpClient, you can reuse the same socket (keepalive) to make several requests

[android-developers] Re: PreferenceActivity Refresh Problem

2008-10-27 Thread Guillaume Perrot
Few tips I currently use : If you want to clear all settings easiliy: getSharedPreferences(..., MODE_PRIVATE).edit().clear().commit(); This method works well when: * you don't have invisible settings, or you want them to be cleared too. * you have specified default values correctly in the xml

[android-developers] Re: Yet another HTTPS problem with HttpClient in Android SDK v1.0r1

2008-10-23 Thread Guillaume Perrot
org.apache.http.conn.ssl.AllowAllHostnameVerifier ? http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/conn/ssl/AllowAllHostnameVerifier.java?view=markup Sean On Oct 17, 7:07 am, Guillaume Perrot [EMAIL PROTECTED] wrote: On android 1.0 I tried to connect to my

[android-developers] Re: Yet another HTTPS problem with HttpClient in Android SDK v1.0r1

2008-10-23 Thread Guillaume Perrot
Caused by: java.security.cert.CertPathValidatorException: TrustAnchor for CertPath not found. On 23 oct, 10:20, Guillaume Perrot [EMAIL PROTECTED] wrote: Yes I had, though it's not in my sample code. The verification that fails is not the hostname, but later when checking the certificate

[android-developers] MapView gone wild

2008-10-23 Thread Guillaume Perrot
The standard map application works as usual. But today, if you use a map view on your own (or just go to ApiDemos- Views-MapView): you can't see the map, the map stays blank. It was not the case yesterday. All my mates at work using the emulator have this problem too since today. If you activate

[android-developers] Re: Yet another HTTPS problem with HttpClient in Android SDK v1.0r1

2008-10-20 Thread Guillaume Perrot
My server used a valid certificate (authenticated by godaddy.com), you can view the certificate by trying to access https://ubithere.com:5280/http-bind I have the same error when I used a self-signed certificate. On Oct 20, 8:13 am, vel [EMAIL PROTECTED] wrote: I am also facing the same

[android-developers] Re: Yet another HTTPS problem with HttpClient in Android SDK v1.0r1

2008-10-20 Thread Guillaume Perrot
Forgot to say, the aim is to allow to use self-signed server certificates, it does work with trusted ones. On 20 oct, 08:13, vel [EMAIL PROTECTED] wrote: I am also facing the same problem. Can please any one help us. --~--~-~--~~~---~--~~ You received this

[android-developers] Re: Does Android 1.0 support progressive download of music and video files?

2008-10-17 Thread Guillaume Perrot
, Billsen [EMAIL PROTECTED] wrote: Thanks a lot for your response, but I don't know the meaning of hinted here. Could you please provide some info about this? Thanks, Billsen On Oct 15, 7:28 am, Guillaume Perrot [EMAIL PROTECTED] wrote: Yes the MediaPlayer supports progressive download

[android-developers] Yet another HTTPS problem with HttpClient in Android SDK v1.0r1

2008-10-17 Thread Guillaume Perrot
On android 1.0 I tried to connect to my https server which uses a self- signed certificate: Here is my code, which uses a custom hostname verifier: /* Create and initialize HTTP parameters */ HttpParams params = new BasicHttpParams(); ConnManagerParams.setMaxTotalConnections(params, 2);

[android-developers] Re: Does Android 1.0 support progressive download of music and video files?

2008-10-15 Thread Guillaume Perrot
Yes the MediaPlayer supports progressive download. The files must be hinted and be one of the following formats: audio: mp3, m4a (and also amr which is 3gp audio) video: mp4 3gp Many mp4 based files (e.g. all foregoing formats except mp3) you'll find on the web won't be hinted, so they won't work

[android-developers] Re: is there a way to get list item in a list view?

2008-10-12 Thread Guillaume Perrot
The items in a list view are backed by a ListAdapter. You can retrieve the current adapter set on a list view by calling getAdapter(). On Oct 11, 4:11 pm, plargo [EMAIL PROTECTED] wrote: it's been bothering me for a while... --~--~-~--~~~---~--~~ You received

[android-developers] Re: HttpClient, URLConnection, settings, etc...

2008-10-10 Thread Guillaume Perrot
What are you trying to do ? Can you post your code ? For the HttpClient usage, there are several examples at http://hc.apache.org/httpcomponents-client/examples.html I have no best practice for you but concerning my usage: * I only use HttpClient when I need to handle cookies. * For REST API

[android-developers] Re: Is there android 2.0?

2008-10-10 Thread Guillaume Perrot
This is a spam post, and the link is for phishing... On Oct 10, 5:02 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: my friend told me google has android,is this the truth. jim liu a href=http://www.googlemother.com/wpblogs/?p=7281;prototype wtp/a

[android-developers] Re: Object serialization

2008-10-08 Thread Guillaume Perrot
When passing objects in a Bundle, is a Parcelable more efficient than a Serializable ? How much ? On Oct 8, 2:32 am, Josh Roesslein [EMAIL PROTECTED] wrote: It might be okay to use serialization in services since they would normally run for a long period. Probably the only thing on the

[android-developers] Re: MediaRecorder recording video?

2008-10-06 Thread Guillaume Perrot
Does that mean that the T-mobile G1 does not support video recording ? Is it running the public SDK 1.0 as we know it or a custom SDK version ? On Oct 5, 2:28 pm, MrSnowflake [EMAIL PROTECTED] wrote: What is the reason why video recording is not supported? On 28 sep, 23:46, Filipe Abrantes

[android-developers] Re: Activity Lifecycle

2008-10-03 Thread Guillaume Perrot
hackbod, with the finishOnTaskLaunch flag set to true, pressing HOME will finish the activity, calling onDestroy. On Oct 3, 2:59 am, hackbod [EMAIL PROTECTED] wrote: Um...  you should fix your program. :) You can't really rely on onDestroy() for this.  For example, if the user presses home

[android-developers] Re: Bitmap on sdcard decodestream

2008-10-01 Thread Guillaume Perrot
No comment :p On Sep 30, 6:48 pm, Matteo Crippa [EMAIL PROTECTED] wrote: Thanks Romain, you are right! I totally forgot to init it... and it was driving me crazy :( On 30 Set, 18:24, Romain Guy [EMAIL PROTECTED] wrote: The fix is simple, initialize you array photos. In the bug report you

[android-developers] Re: how to disable the back key for the phone

2008-10-01 Thread Guillaume Perrot
If you want to finish an activity when pressing HOME, you can achieve this with the manifest flag: finishOnTaskLaunch = true (you should also look at allowTaskReparenting if you use task affinities). On Oct 1, 12:01 pm, MrSnowflake [EMAIL PROTECTED] wrote: On 1 okt, 04:06, hackbod [EMAIL

[android-developers] Re: How to use my custom library apk file in other applications.

2008-10-01 Thread Guillaume Perrot
There is maybe some workarounds though: * You can provide intents which will be caught by some BroadcastReceiver which will set the result that you can retrieve if you used Activity.sendOrderedBroadcast, though I never tested this function. * You can provide a service with an aidl interface file

[android-developers] SoundRecordingDemo in v1.0

2008-10-01 Thread Guillaume Perrot
I found SoundRecordingDemo in the mailing list files. I tried this because I try to record a sound in one of my activities... First I had to add the RECORD_AUDIO permission in order not to have an error message. Regarding the code, the media scanner should be launched after recording, but I had

[android-developers] Re: SoundRecordingDemo in v1.0

2008-10-01 Thread Guillaume Perrot
Eventually I used a hidden default intent to capture a sound and retrieve the audio file: new Intent(MediaStore.Audio.Media.RECORD_SOUND_ACTION); On 1 oct, 15:12, Guillaume Perrot [EMAIL PROTECTED] wrote: I found SoundRecordingDemo in the mailing list files. I tried this because I try

[android-developers] Re: Remote MP4 video in 0.9 SDK

2008-09-30 Thread Guillaume Perrot
On linux, just use MP4Box test.3gp(or mp4) -hint And it will be streamable and compatible with android. On 26 sep, 09:14, wiki [EMAIL PROTECTED] wrote: Hey Justin! As we have got the 1.0 SDK . will RTSP work on emulator now? Regards On Sep 25, 2:02 pm, Iroid [EMAIL PROTECTED] wrote: I

[android-developers] Re: Need Help with diaplaying Menu

2008-09-30 Thread Guillaume Perrot
The @Override annotation is useful in your case because you will have a compile time error if you mispelled the function name. On Sep 29, 5:48 pm, Dipen [EMAIL PROTECTED] wrote: Thanks Mark. yes, it was spelling error. Also, i was not calling show() on Toast. I am little bit surprise eclipse

[android-developers] Re: Need Help with diaplaying Menu

2008-09-30 Thread Guillaume Perrot
If you override a function with ctrl+space (or by going into menus), the @Override will automatically be added, and you can't mispell the name with auto-completion... On Sep 30, 3:44 pm, Guillaume Perrot [EMAIL PROTECTED] wrote: The @Override annotation is useful in your case because you

[android-developers] Re: Bitmap on sdcard decodestream

2008-09-30 Thread Guillaume Perrot
I also use BitmapFactory.decodeStream on images on the sdcard, but I have no problem. Does your images work with the standard Pictures application ? On Sep 30, 4:29 pm, Matteo Crippa [EMAIL PROTECTED] wrote: Ok, bug filed, but I don't think it could be related to images, i've just tested jpgs

[android-developers] Re: How to use mock location in sdk 1.0????

2008-09-29 Thread Guillaume Perrot
A full discussion about this can be found at http://groups.google.com/group/android-developers/browse_thread/thread/32c0e799290b4854 On Sep 29, 12:49 pm, Guillaume Perrot [EMAIL PROTECTED] wrote: We all got stuck in DDMS controls, check the other threads. There are two conditions for a KML

[android-developers] Re: Activity Lifecycle Question

2008-09-29 Thread Guillaume Perrot
A situation you will often run in to is when another entity (such as the SearchManager or NotificationManager) starts one of your activities. In this case, the Intent.FLAG_ACTIVITY_NEW_TASK flag must be used, because the activity is being started outside of a task (and the application/task may

[android-developers] Re: How to use mock location in sdk 1.0????

2008-09-29 Thread Guillaume Perrot
We all got stuck in DDMS controls, check the other threads. There are two conditions for a KML file to work in DDMS: * the KML file must not be a multi-coordinate styled file (like when you save a direction in Google Earth = it is not supported since v0.9) * in order DDMS controls to work, your

[android-developers] Re: Customizing preferences editor

2008-09-29 Thread Guillaume Perrot
Short answer: EditTextPreference android:key=distance_units_m android:title=Distance android:summary=Summary android:dialogTitle=title android:numeric=integer android:maxLength=4 android:hint=Enter distance (max ) / This EditText can be modified [...] through XML

[android-developers] Re: Customizing preferences editor

2008-09-29 Thread Guillaume Perrot
(), Integer.parseInt(text)) .commit(); } } and use com.ubikod.android.ubikim.settings.EditIntegerPreference instead of EditTextPreference in the XML On 29 sep, 15:02, Guillaume Perrot [EMAIL PROTECTED] wrote: Short answer:   EditTextPreference     android:key=distance_units_m

[android-developers] Re: Customizing preferences editor

2008-09-29 Thread Guillaume Perrot
, defaultValue); } } In the XML you use it with the full class name, e.g. some.package.EditIntegerPreference. Hope that will help. On 29 sep, 15:02, Guillaume Perrot [EMAIL PROTECTED] wrote: Short answer:   EditTextPreference     android:key=distance_units_m     android:title=Distance

[android-developers] Re: How to query for my current location?

2008-09-28 Thread Guillaume Perrot
And you have to manually simulate your location using telnet or DDMS controls in Eclipse (the latter only works if your OS is in english locale). For telnet: telnet localhost 5554 geo fix 2 40 On 28 sep, 04:05, Mark Murphy [EMAIL PROTECTED] wrote: zl25drexel wrote: Hi, sorry i am sure this

[android-developers] Re: intercept incoming and outgoing calls and have customized screen

2008-09-26 Thread Guillaume Perrot
You're right Tauno T, Even if android is forked, the forkers will have to convince some manufacturers to use their fork, otherwise forking Android is useless. Beside, you can make your own patched version of some Android class, but you have to include your patched class version in the project and

[android-developers] Re: Easter eggs

2008-09-26 Thread Guillaume Perrot
dangerous!). Constant Value: android.permission.BRICK' A BRICK Permission?!! http://code.google.com/android/reference/android/Manifest.permission On 11 sep, 10:44, Guillaume Perrot [EMAIL PROTECTED] wrote: http://www.pointgphone.com/easter-egg-android-connaissez-vous-la-repo... Sorry

[android-developers] Re: location is always latitude 0 longitude 0 altitude 10 in v0.9

2008-09-25 Thread Guillaume Perrot
had to delete my spanish locales (with dpgk-reconfigure locales in Debian Lenny) and changed the LANG variable (LANG=en_GB.UTF-8). Regards, Antonio On Sep 24, 12:32 pm, Guillaume Perrot [EMAIL PROTECTED] wrote: I retested a en_GB locale on my Ubuntu 8.04 LTS with Android v1.0. OMFG DDMS

[android-developers] Re: Test Location Providers in 1.0

2008-09-25 Thread Guillaume Perrot
view to send GPS lat and long. The docs say you can use a 'geo' app in the tools folder in the SDK, but it doesn't seem to exist yet. http://code.google.com/android/toolbox/apis/lbs.html On Sep 24, 5:21 am, Guillaume Perrot [EMAIL PROTECTED] wrote: I was wondering too, I had to disable

[android-developers] Re: Google Chrome or WebKit on Android?

2008-09-25 Thread Guillaume Perrot
What about the javascript virtual machine from V8 used by Google Chrome. Does Android use it as well ? On 25 sep, 21:08, jtaylor [EMAIL PROTECTED] wrote: ZDNet has this article. September 24th, 2008 Google Gears now inside Android’s “Chrome Lite”http://blogs.zdnet.com/Burnette/?p=662 -

[android-developers] Re: Test Location Providers in 1.0

2008-09-24 Thread Guillaume Perrot
I was wondering too, I had to disable this function from my application... It seems we can only use DDMS or telnet to simulate location now. On 24 sep, 08:34, Reto Meier [EMAIL PROTECTED] wrote: The ability to create and configure mock location providers that was added in Beta 0.9 doesn't seem

[android-developers] Android V1.0 : DDMS location controls, and telnet geo fix command not working.

2008-09-24 Thread Guillaume Perrot
I tried, like in v0.9 to use the telnet geo command: [EMAIL PROTECTED]:~$ telnet localhost 5554 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Android Console: type 'help' for a list of commands OK geo fix 0 0 OK Then I openened the menu in the standard map application -

[android-developers] Re: Android V1.0 : DDMS location controls, and telnet geo fix command not working.

2008-09-24 Thread Guillaume Perrot
geo fix works but not with 0 0. DDMS still not working. On 24 sep, 12:09, Guillaume Perrot [EMAIL PROTECTED] wrote: I tried, like in v0.9 to use the telnet geo command: [EMAIL PROTECTED]:~$ telnet localhost 5554 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Android

[android-developers] Re: Android V1.0 : DDMS location controls, and telnet geo fix command not working.

2008-09-24 Thread Guillaume Perrot
) On 24 sep, 12:13, Guillaume Perrot [EMAIL PROTECTED] wrote: geo fix works but not with 0 0. DDMS still not working. On 24 sep, 12:09, Guillaume Perrot [EMAIL PROTECTED] wrote: I tried, like in v0.9 to use the telnet geo command: [EMAIL PROTECTED]:~$ telnet localhost 5554 Trying 127.0.0.1

[android-developers] Re: Android V1.0 : DDMS location controls, and telnet geo fix command not working.

2008-09-24 Thread Guillaume Perrot
I made geo fix works with 0 0... I really don't get it... Am I missing something ? On 24 sep, 12:16, Guillaume Perrot [EMAIL PROTECTED] wrote: I sometimes see in my logcat: 09-24 10:15:39.239: ERROR/LocationManagerService(58): isProviderEnabled got exception: 09-24 10:15:39.239: ERROR

[android-developers] Re: location is always latitude 0 longitude 0 altitude 10 in v0.9

2008-09-24 Thread Guillaume Perrot
doesn't reach the emulator - or is set to 0,0). Do you file a bug report at:http://code.google.com/p/android/issues/list (?) - If you don't I'll do it ;-) On 26 Aug., 15:44, Guillaume Perrot [EMAIL PROTECTED] wrote: In the standard maps application, my position is always at latitude 0

[android-developers] Re: .android could not be written 2 home

2008-09-24 Thread Guillaume Perrot
Yes, I encountered this problem with v1.0, I resolved it like this : * Close Eclipse * Save your files under .android if you want (Optional) * Remove totally .android (rm -Rf) * Relaunch eclipse - the error message should not appear and android launching will work from eclipse * Restore your

[android-developers] Re: v0.9, TabActivity, communicate between tabs with intents.

2008-09-24 Thread Guillaume Perrot
-- startActivity() launches a new top- level activity.  You need to explicitly add tabs just like you put your first in the tab host. On Sep 22, 1:09 am, Guillaume Perrot [EMAIL PROTECTED] wrote: Ok, here is a sample project:http://tinyurl.com/test-tabs Two tabs, each tab is an activity

[android-developers] v0.9 icons in sub menu

2008-09-23 Thread Guillaume Perrot
In m5 icon in menu items was displayed both in main menu and in sub menu. But in v0.9 my icons in sub-menu simply disappeared. It is the same thing when the more icon appear when there is too many items: the items in more have no icons in this case. I don't like this way of doing, is there any

[android-developers] Re: switch between activities

2008-09-23 Thread Guillaume Perrot
Do you need the child activity to return a result in your case ? On 23 sep, 09:35, hackbod [EMAIL PROTECTED] wrote: No activities are purely a stack, sorry. On Sep 22, 5:02 pm, chouman82 [EMAIL PROTECTED] wrote: this should be something simple but yet i can't seem to find the answer

[android-developers] Re: Drawable in XML referencing other drawables by state.

2008-09-22 Thread Guillaume Perrot
:16, Romain Guy [EMAIL PROTECTED] wrote: It's probably because MapView doesn't set the state of the bubbles. Have you tried android:state_selected? On Fri, Sep 12, 2008 at 4:00 AM, Guillaume Perrot [EMAIL PROTECTED] wrote: I found two interesting drawables in ApiDemos: selector

[android-developers] Re: Drawable in XML referencing other drawables by state.

2008-09-22 Thread Guillaume Perrot
? selector xmlns:android=http://schemas.android.com/apk/res/android; item android:state_focused=true android:drawable=@drawable/bubble_focused / item android:drawable=@drawable/bubble_normal / /selector On 22 sep, 10:26, Guillaume Perrot [EMAIL PROTECTED] wrote: It's probably because

[android-developers] Re: Drawable in XML referencing other drawables by state.

2008-09-22 Thread Guillaume Perrot
to implement tap listener myself. On 22 sep, 10:37, Guillaume Perrot [EMAIL PROTECTED] wrote: For those who are interested:   @Override   protected boolean onTap(int index)   {     /* Set focus on tapped item so that he's drawn over others */     setFocus(getItem(index));     /* Consume tap event

[android-developers] Re: Drawable in XML referencing other drawables by state.

2008-09-22 Thread Guillaume Perrot
(in this case the one that requires no states) to be after ones with more specific state requirements. On Sep 12, 4:00 am, Guillaume Perrot [EMAIL PROTECTED] wrote: I found two interesting drawables in ApiDemos: selector xmlns:android=http://schemas.android.com/apk/res/android;     item

[android-developers] Re: Drawable in XML referencing other drawables by state.

2008-09-22 Thread Guillaume Perrot
.  So you want the one with the least specific state (in this case the one that requires no states) to be after ones with more specific state requirements. On Sep 12, 4:00 am, Guillaume Perrot [EMAIL PROTECTED] wrote: I found two interesting drawables in ApiDemos: selector xmlns:android=http

[android-developers] Re: Drawable in XML referencing other drawables by state.

2008-09-22 Thread Guillaume Perrot
the first that matches the current state.  So you want the one with the least specific state (in this case the one that requires no states) to be after ones with more specific state requirements. On Sep 12, 4:00 am, Guillaume Perrot [EMAIL PROTECTED] wrote: I found two interesting drawables

[android-developers] Re: Linux emulator, EditText in numeric input mode, how to type '0'

2008-09-20 Thread Guillaume Perrot
No one to help me ? :/ On Sep 14, 11:22 am, Guillaume Perrot [EMAIL PROTECTED] wrote: I didn't found a way to enter 0 on my EditText when it's on numeric input mode='integer' I found that other numbers must be entered thanks to keyboard letters: zer sdf wxc but where the hell is 0

[android-developers] Re: v0.9, TabActivity, communicate between tabs with intents.

2008-09-20 Thread Guillaume Perrot
I am still looking for the answer ;) On Sep 12, 11:57 am, Guillaume Perrot [EMAIL PROTECTED] wrote: No one use intents between tabs on this mailing list ? On Sep 1, 5:22 pm, Guillaume Perrot [EMAIL PROTECTED] wrote: Hi, I want to use TabActivity, What I want to do is to launch a command

[android-developers] Re: onNewIntent in v0.9

2008-09-12 Thread Guillaume Perrot
as expected so when I press Home in a 'secondary' activity and then restart my App again from the Android app menu it will go back to the  'secondary' activity. --- On Aug 29, 12:09 pm, Guillaume Perrot [EMAIL PROTECTED] wrote: about onRestoreSavedInstanceState: I misunderstood the doc, I now

[android-developers] Re: v0.9, TabActivity, communicate between tabs with intents.

2008-09-12 Thread Guillaume Perrot
No one use intents between tabs on this mailing list ? On Sep 1, 5:22 pm, Guillaume Perrot [EMAIL PROTECTED] wrote: Hi, I want to use TabActivity, What I want to do is to launch a command from a tab to another tab. I use startActivity and my activities are flagged singleTop in the manifest

[android-developers] Re: Using the ItemizedOverlay and OverlayItem

2008-09-12 Thread Guillaume Perrot
/bubble_normal / item android:state_focused=true android:drawable=@drawable/bubble_focused / /selector I only see the bubble_normal even if the overlay item is focused. On 11 sep, 15:17, Guillaume Perrot [EMAIL PROTECTED] wrote: I also manually draw titles but I have problem with ordering them

[android-developers] Drawable in XML referencing other drawables by state.

2008-09-12 Thread Guillaume Perrot
I found two interesting drawables in ApiDemos: selector xmlns:android=http://schemas.android.com/apk/res/android; item android:state_pressed=true android:drawable=@drawable/ black_opaque_box / item android:drawable=@drawable/black_box / /selector layer-list

[android-developers] Re: Using the ItemizedOverlay and OverlayItem

2008-09-11 Thread Guillaume Perrot
be great to have a draw method in OverlayItem class to override... On 4 sep, 17:35, Chris Chiappone [EMAIL PROTECTED] wrote: I had to manually draw those inside the onTap method. On Thu, Sep 4, 2008 at 3:51 AM, Guillaume Perrot [EMAIL PROTECTED] wrote: OK overlay items are drawn

[android-developers] What the heck is a task ?

2008-09-10 Thread Guillaume Perrot
In several parts of the API is mentioned the term task: * the singleTask activity launch mode, * a flag to use with intent, * other activity manifest flags * getTaskID in Activity * ActivityManager.RunningTaskInfo and so on... I checked the documentation but I didn't found any clear definition

[android-developers] Re: Using the ItemizedOverlay and OverlayItem

2008-09-04 Thread Guillaume Perrot
OK overlay items are drawn with the setBounds trick. But overlay title or snippet is never drawn even if we tap on it. How to use these overlay items fields ? On Sep 3, 12:09 pm, Peter Stevenson [EMAIL PROTECTED] wrote: Chris Chiappone wrote: Marcel, Thanks for that seems to work as you

[android-developers] Re: How to get the location provider's status?

2008-09-02 Thread Guillaume Perrot
A registered LocationListener object is triggered (onStatusChanged function) when location provider status changes. I don't know if this is the only way to manage that but you can give it a try. On 1 sep, 11:55, Ernest [EMAIL PROTECTED] wrote:       In the new SDK,the api

[android-developers] Re: Problems working with Mocked Location providers

2008-09-02 Thread Guillaume Perrot
There already several topics dealing about that problem, I found no solution but some claim to have made it work... Here some threads to check out: http://groups.google.com/group/android-developers/browse_thread/thread/32c0e799290b4854/a380d181eb3e3165

[android-developers] Re: Where does the emulator look for the SD Card Image File ?

2008-09-01 Thread Guillaume Perrot
Hi, Graeme In run configurations I put this in additional emulator command line options the following line: -sdcard /home/gperrot/.android/sdcard (this is the path of the sdcard I created, this is neither a default directory nor a default file). On Aug 29, 4:55 pm, Bertl [EMAIL PROTECTED] wrote:

[android-developers] Re: Where to download icons?

2008-09-01 Thread Guillaume Perrot
Number of icons (mostly under creative commons license) are hosted at http://www.iconspedia.com/ On Sep 1, 9:38 am, code_android_festival_way [EMAIL PROTECTED] wrote: You can look at: http://www.maxpower.ca/free-icons/2006/03/05/ At this page you will find a summary of icon sets including

[android-developers] Re: Where to download icons?

2008-09-01 Thread Guillaume Perrot
:09, Guillaume Perrot [EMAIL PROTECTED] wrote: Number of icons (mostly under creative commons license) are hosted athttp://www.iconspedia.com/ On Sep 1, 9:38 am, code_android_festival_way [EMAIL PROTECTED] wrote: You can look at: http://www.maxpower.ca/free-icons/2006/03/05

<    1   2   3   >