[android-developers] Re: Vertical tabs

2008-11-27 Thread Guillaume Perrot
I have the same problem... I'd like to have vertical tabs in landscape mode to improve the overall layout of my application. I'd also like a vertical Gallery. Why these simple features are not available ? On Oct 16, 12:09 am, Rohit Mordani [EMAIL PROTECTED] wrote: I have the following layout

[android-developers] Re: Vertical tabs

2008-11-27 Thread Guillaume Perrot
I have the same problem. Vertical tabs would be great. Vertical Gallery would also be neat. Especially in landscape mode, a vertical version of these widgets could be extremely useful to improve layout space. On Oct 16, 12:09 am, Rohit Mordani [EMAIL PROTECTED] wrote: I have the following

[android-developers] Re: Long Press - a SubMenu popup - how implement that?

2008-11-29 Thread Guillaume Perrot
Activity.registerContextMenu(View); Then override onContextMenu methods. On Nov 29, 11:12 am, zLarry [EMAIL PROTECTED] wrote: help... On 11月29日, 下午2时02分, zLarry [EMAIL PROTECTED] wrote: Like android bundled contact applicaiton. When I long press a contact, then a sub menu pops up - to

[android-developers] Re: What is the difference between onOptionsItemSelected and onMenuItemSelected?

2008-11-29 Thread Guillaume Perrot
onMenuItemSelected comes from the Window.Callback class. onOptionsItemSelected is introduced by the Activity class (which implements Window.Callback) and is called by the implementation of onMenuItemSelected. So the difference is the abstracting level. Copied from doc: Default implementation of

[android-developers] Re: Long Press - a SubMenu popup - how implement that?

2008-11-30 Thread Guillaume Perrot
Mark, the topic says submenu, but if you look at the first post it does deal with a context menu : When I long press a contact, then a sub menu pops up - to let me 'edit','remove' ... he just called it a submenu (because it looks exactly the same). So the standard way to do this is like I

[android-developers] Re: What is the difference between onOptionsItemSelected and onMenuItemSelected?

2008-12-01 Thread Guillaume Perrot
the onOptionsItemSelected, while Exe 2 uses onMenuItemSelected. I am not quite understand how to get the featurID and pass it to onMenuItemSelected(). On Nov 29, 9:29 pm, Guillaume Perrot [EMAIL PROTECTED] wrote: onMenuItemSelected comes from the Window.Callback class. onOptionsItemSelected is introduced

[android-developers] Re: NumberPicker

2008-12-01 Thread Guillaume Perrot
The only way I know is to extract it from the android source code. http://source.android.com/ Have fun ^^ On Nov 30, 8:47 pm, bw [EMAIL PROTECTED] wrote: Hi, Is there a way to get the NumberPicker widget used in Date and Time pickers? -Ben

[android-developers] Re: ListActivity and progressbars?

2008-12-02 Thread Guillaume Perrot
that have been loaded into tabs for example (where the tabs are created as a separate Activity), I found that it had no effect. Maybe this will resolve the problem. Will On Nov 17, 1:06 pm, Guillaume Perrot [EMAIL PROTECTED] wrote: Your code is quite strange because when you perform UI

[android-developers] Re: How to replicate GUI of Android settings menu

2008-12-04 Thread Guillaume Perrot
Just use a PreferenceActivity and your settings will look the same as the G1. You can describe settings in XML with special tags, you can look at APIDemos. On Dec 4, 1:20 pm, Mark Murphy [EMAIL PROTECTED] wrote: ChisterNordvik wrote: I want to make my settings menu look like the one in

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

2008-12-05 Thread Guillaume Perrot
. If you are not going to use the old intent, you should just use FLAG_CANCEL_CURRENT to first cancel the existing one so it can be replaced with your new one. On Tue, Nov 25, 2008 at 12:29 AM, Guillaume Perrot [EMAIL PROTECTED] wrote: Yes using request codes is the right thing

[android-developers] Re: Out Of Memory issue

2008-12-09 Thread Guillaume Perrot
When we have an OutOfMemoryError (either the MapView or huge images): we have a message (in logs) like The VM won't allow us to allocate x bytes or something like VM budget exceeded I think it's a VM limitation. On Dec 8, 11:09 pm, Mark K [EMAIL PROTECTED] wrote:   I've run into similar

[android-developers] Re: How to: Disable Menu Items at runtime

2008-12-09 Thread Guillaume Perrot
One way to achieve this: @Override public boolean onPrepareOptionsMenu(Menu menu) { super.onPrepareOptionsMenu(menu); MenuItem item = menu.findItem(R.id.my_item); item.setVisible(true); item.setEnabled(false); return true; } You can manipulate the

[android-developers] Re: :: using System.gc();

2008-12-25 Thread Guillaume Perrot
transitions. Keep static images in class variables. Good luck. On Dec 24, 5:15 am, Guillaume Perrot guillaume.p...@gmail.com wrote: I have very short freezes when scrolling a very long list views containing down sampled images (I use BitmapFactory to produce thumbnails in background

[android-developers] Re: Context menu can't be create on MapView.

2008-12-26 Thread Guillaume Perrot
protected boolean isRouteDisplayed() { // TODO Auto-generated method stub return false; } } On 12月26日, 下午8时14分, Guillaume Perrot guillaume.p...@gmail.com wrote: Why don't you override the onCreateContextMenu directly in MapActivity ? On Dec 26, 10:15 am, honglian

[android-developers] Re: Context menu can't be create on MapView.

2008-12-26 Thread Guillaume Perrot
/ /intent-filter /activity /application /manifest On 12月26日, 下午9时56分, Guillaume Perrot guillaume.p...@gmail.com wrote: I have the same kind of code, which is working though. The key difference may be that I call mapView.setLongClickable(true); you should try it. 2008/12/26

[android-developers] GTalk IM on G1 seems to use Smack.

2009-01-14 Thread Guillaume Perrot
For those who were wondering whether the built in GTalk application was using Smack or not, I found those logs with adb bugreport: Cmd line: com.google.process.gapps DALVIK THREADS: main prio=5 tid=3 WAIT | group=main sCount=1 dsCount=0 s=0 obj=0x400143a8 | sysTid=119 nice=0 sched=0/0

[android-developers] Re: RC33 Network Problem

2009-04-14 Thread Guillaume Perrot
know about it. On Feb 17, 10:05 am, Guillaume Perrot guillaume.p...@gmail.com wrote: Yes it's exactly what happens since RC33. Kinda annoying. I have to close sockets in a separate thread when I receive a connectivity event indicating the network is down or we

[android-developers] TCP (XMPP) Keep Alive and T-Mobile

2009-04-14 Thread Guillaume Perrot
Hi, I just wondered which frequency is OK to send whitespace keep alive packets onto a TCP connection to keep it alive on a T-Mobile 3G connectivity (the use case is to maintain an idle XMPP session alive). On SFR in France, we are disconnected if idle for 3 minutes, but I guess T-Mobile's

[android-developers] Issue with attaching an internal text file to gmail

2009-04-17 Thread Guillaume Perrot
I successfully opened gmail with prepopulated content and a file attachment, it worked when I send it but this file was stored on the SDCard. Now I am trying to do the same with a shared application file (with MODE_WORLD_READABLE) but gmail drops the attachment at sending time although I saw it

[android-developers] Re: PendingIntent problem

2009-04-23 Thread Guillaume Perrot
info+fram Use different request codes each time in PendingIntent.getActivity, the documentation is bugged and say this is not in use but they DO work. There is an old discussion on this one:

[android-developers] Re: When does my thread die?

2009-01-24 Thread Guillaume Perrot
If you want to stop a thread that is running long operations, you should read this: http://g.oswego.edu/dl/cpj/cancel.html. In your service onDestroy you should not join your thread, just launch the cancel operation, the trick with all lifecycle methods (including services) is that they are

[android-developers] Re: Sleep on END_CALL keycode, but terminate on HOME?

2009-01-26 Thread Guillaume Perrot
HOME calls onPause then onStop most of the time. BACK do the same but also calls onDestroy after onStop. The Acitivity.finish() function do the same as the BACK button. You can try the following (I didn't test it): You can have a boolean flag that your set when you press your button. Then in

[android-developers] Re: Sleep on END_CALL keycode, but terminate on HOME?

2009-01-26 Thread Guillaume Perrot
HOME calls onPause then onStop most of the time. BACK do the same but also calls onDestroy after onStop (if you didn't override the BACK button behavior and no dialog or menu is being displayed). The Acitivity.finish() function do the same as the BACK button. You can try the following (I didn't

[android-developers] Re: local service getting killed

2009-01-31 Thread Guillaume Perrot
Yes, i ran into the very same problem. From what I understood with documentation and logcat traces, I may be wrong for some details but here's the general idea: My background service (I use startService/stopService to handle an XMPP connection and notifying the user of events when no activity is

[android-developers] Re: Memory leak in BitmapFactory/Gallery?

2009-01-31 Thread Guillaume Perrot
There is bug in BitmapFactory memory allocation, there are tons of threads in this mailing list dealing with that. To sum up: At a normal time when you create an object, the heap size is automatically grown if not sufficient enough (there is an absolute limit of 16MB per process though, you will

[android-developers] Re: texts are not adding to intent for email

2009-02-01 Thread Guillaume Perrot
Maybe a bug with the attached media part. Did you try without it ? On Jan 31, 2:02 pm, jj jagtap...@gmail.com wrote: Hello I am sending image using following. the image successfully send by application. But The subject and text r not getting added to email. I want to add body containing

[android-developers] Re: local service getting killed

2009-02-01 Thread Guillaume Perrot
? Is there a way to tell the system that this process is kind of important, even though it has no foreground activity and should only be killed as a last resort? Bernhard -- Guillaume Perrot Software Engineer at Ubikod BuddyMob developer

[android-developers] Re: Memory leak in BitmapFactory/Gallery?

2009-02-01 Thread Guillaume Perrot
, Guillaume Perrot guillaume.p...@gmail.com wrote: There is bug in BitmapFactory memory allocation, there are tons of threads in this mailing list dealing with that. To sum up: At a normal time when you create an object, the heap size is automatically grown if not sufficient enough

[android-developers] Re: texts are not adding to intent for email

2009-02-01 Thread Guillaume Perrot
From the documentation, I am afraid there is kind of a limitation: Input: getType() is the MIME type of the data being sent. get*Extra can have either a EXTRA_TEXT or EXTRA_STREAM field, containing the data to be sent. If using EXTRA_TEXT, the MIME type should be text/ plain; otherwise it should

[android-developers] Re: MapView disable?

2009-02-01 Thread Guillaume Perrot
I had the problem yesterday, no maps in my phone, even with the standard maps application. It's now working. On Feb 1, 6:48 am, Keiji Ariyama ml_andr...@c-lis.co.jp wrote: Dave, Thank you for your reply. WiFi, 3G/EDGE (what carrier)? Is there anything useful in the log? Maybe a proxy

[android-developers] Re: Android 1.1_r1 SDK released and developer.android.com launched

2009-02-14 Thread Guillaume Perrot
Sadly, the javadoc is not included in the new android.jar, so we can't have the doc in Eclipse anymore when auto-completing... Is there a way to restore that ? On Feb 14, 12:27 am, Mark Murphy mmur...@commonsware.com wrote: DavidLanz wrote: do you guys know what's the different from 1.0.r2 to

[android-developers] Re: Problem with SDK 1.1 - can not see javadoc

2009-02-17 Thread Guillaume Perrot
I have the same problem too, I am considering rolling back to 1.0 since there isn't any API change (except for the marquee in TextView and padding offsets which I don't care). On 16 fév, 23:51, Alexey avolo...@gmail.com wrote: Nope, just switched back to r1.0 On Feb 16, 11:13 am, g1bb

[android-developers] Re: RC33 Network Problem

2009-02-17 Thread Guillaume Perrot
I had the same problem too. Plus when I loose connectivity, it's nearly impossible not to block on socket.close(); It takes forever in that case. I tried both plain and ssl sockets, same behavior in RC33. On Feb 17, 1:23 am, Marc gram...@gmail.com wrote: I've seen inconsistent behavior from

[android-developers] Re: RC33 Network Problem

2009-02-17 Thread Guillaume Perrot
, 7:21 am, Guillaume Perrot guillaume.p...@gmail.com wrote: I had the same problem too. Plus when I loose connectivity, it's nearly impossible not to block on socket.close(); It takes forever in that case. I tried both plain and ssl sockets, same behavior in RC33. On Feb 17, 1:23 am, Marc gram

[android-developers] Re: Android 1.1_r1 SDK released and developer.android.com launched

2009-02-18 Thread Guillaume Perrot
making the swtich because I did not want to loose code autocomplete just yet.. Once again thanks to the Google an OHA Engineers in pushing this out On Feb 15, 4:53 am, nuno nba...@gmail.com wrote: Is anyone looking into the javadoc issue? On Feb 14, 7:17 pm, Guillaume Perrot guillaume.p

[android-developers] Re: Android 1.1_r1 SDK released and developer.android.com launched

2009-02-19 Thread Guillaume Perrot
cannot download it, since the problem with my network, hope you can get it. On Thu, Feb 19, 2009 at 5:27 AM, E. Litwin elit...@rocketmail.com wrote: Any update on the Javadoc issue? On Feb 18, 9:40 am, Guillaume Perrot guillaume.p...@gmail.com wrote: I have 0.8.0.v200809220836-110569

[android-developers] Re: Problem with SDK 1.1 - can not see javadoc

2009-02-19 Thread Guillaume Perrot
SDK have been reuploaded with javadoc, you can redownload it ! 2009/2/18 E. Litwin elit...@rocketmail.com: Can anybody from Google comment on the status of supplying an updated SDK with JavaDoc enabled? On Feb 17, 12:48 am, Guillaume Perrot guillaume.p...@gmail.com wrote: I have the same

[android-developers] Re: Android 1.6 on ADP1 Force close

2009-10-01 Thread Guillaume Perrot
Everything work as expected for me including GTalk and Market. Maybe because I performed a factory reset after upgrade. On Oct 1, 12:30 pm, babaroga_srb mikalac...@gmail.com wrote: Thanks for the reply! I have checked the group you provided, seems that htc placed wrong files for download.

[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: 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] 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: 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] 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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

  1   2   3   >