[android-developers] Notifications on 4.1 Jelly Bean: how to check they are enabled?

2012-07-25 Thread Guillaume Perrot
Hi, I need to check in my application if the user disabled system notifications for my application. I can't find any information in the documentation about that. Regards, -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this grou

[android-developers] How to detect 3rd party applications

2011-02-03 Thread Guillaume Perrot
I could'nt find a way in the API to filter applications returned by the package manager in order to show only "3rd party" ones. Is there a way to do that ? I am currently relying on a simple blacklisting algorithm, but I may have missed something in the documentation. -- You received this message

[android-developers] Re: List of all instantiated Activities

2010-06-02 Thread Guillaume Perrot
I already made something similar (limited to the current activity) and I did not find another way to access the activity instance. To limit errors, I made my modifications in life cycle callbacks and users have to inherit my Activity classes (I made a full set for convenience, there are 9 Activity

[android-developers] Detect Emulator on Android 2.2

2010-05-26 Thread Guillaume Perrot
Since Android 2.2, we can read the ANDROID_ID from the emulator which is always 9774D56D682E549C It breaks a lot of existing code that used to test if the ANDROID_ID was null to check whether the device was an emulator or not. I need a future proof way to test a device is an emulator. -- You rec

Re: [android-developers] Re: What is exactly an ANDROID_ID ?

2010-03-15 Thread Guillaume Perrot
This is indeed a good idea. Instead of PRODUCT, I would rather use MODEL + BRAND as a prefix to the ANDROID_ID (before rehashing it to obtain an hex string with always the same length such as SHA1). 2010/3/15 Wayne Wenthin > If you use it while using items like android.os.Build.PRODUCT or someth

Re: [android-developers] Re: What is exactly an ANDROID_ID ?

2010-03-15 Thread Guillaume Perrot
I guess we'll have to use some hashing technique of many values like explained on another thread, but I don't like this solution... Thanks for the answer anyway. 2010/3/15 Mark Murphy > Guillaume Perrot wrote: > > In my job, I have to use a unique device ID that is not the IM

Re: [android-developers] Re: What is exactly an ANDROID_ID ?

2010-03-15 Thread Guillaume Perrot
of course. > > http://groups.google.com/group/android-developers/msg/42aceb303e8b42f6 > > On Feb 12, 5:16 am, Guillaume Perrot wrote: > > > > Is it related to > > > > google apps ? > > > > > Not that I am aware of. > > &

[android-developers] Re: ANDROID_ID always null on devices

2010-03-15 Thread Guillaume Perrot
Yeah but what about devices without WIFI ? On 3 fév, 16:26, Gregg Reno wrote: > How about using the WIFI MAC address in cases where the ANDROID_ID is > null?  I believe it should be unique for each device: > >         WifiManager manager = (WifiManager) getSystemService > (Context.WIFI_SERVICE);

[android-developers] Re: What is exactly an ANDROID_ID ?

2010-02-12 Thread Guillaume Perrot
> > Is it related to > > google apps ? > > Not that I am aware of. I asked this question since we can read in the doc: "Identical to that obtained by calling GoogleLoginService.getAndroidId();" which sounds strange. Spoofing android_id could grant access to the Google account of someone else ? --

[android-developers] What is exactly an ANDROID_ID ?

2010-02-12 Thread Guillaume Perrot
I could not find in documentation any information about how the ANDROID_ID is generated. Is it related to some carrier or some constructor ? Is it related to google apps ? Are we allowed to store these values on application servers without breaking any privacy policy ? (it does not require permissi

[android-developers] Re: controling the user language

2010-01-29 Thread Guillaume Perrot
To switch to german in an application: Resources res = getResources(); Configuration config = new Configuration(res.getConfiguration()); config.locale = Locale.GERMANY; res.updateConfiguration(config, res.getDisplayMetrics()); On 29 jan, 05:03, Frank Weiss wrote: > Check this > thread:http://ww

[android-developers] Re: Is there any way to let the app know whenever any media file is inserted into the sdcard?

2009-12-26 Thread Guillaume Perrot
It seems there is no standard intent for that particular events. But you could watch mount/unmount via broadcast receivers and then use FileObserver while the sdcard is mounted, it should make the trick. On 26 déc, 06:51, manoj wrote: > Hi all, > > is there any way to let my app know whenever a m

[android-developers] Re: Which one is more efficient, ImageView.setImageBitmap(bitmap) or ImageView.setImageDrawable(drawable)?

2009-12-25 Thread Guillaume Perrot
When using a drawable backed by a bitmap (BitmapDrawable), it makes no difference (just some abstraction). If you use a bitmap resource (R.drawable. ) it may be wise to use setImageDrawable rather than managing the bitmap decompression yourself. According to me setImageBitmap is to use when you loa

[android-developers] Re: How getting an APK's signature outside of Android (e.g. with jarsigner or another tool)

2009-12-10 Thread Guillaume Perrot
Thanks to the Android Source Code, I wrote a little J2SE program that prints all the signatures of a JAR file (also works with APKs) as returned by the PackageManager in Android with the Signature.toCharsString() format. On 10 déc, 11:50, Guillaume Perrot wrote: > In Android we can get

[android-developers] How getting an APK's signature outside of Android (e.g. with jarsigner or another tool)

2009-12-10 Thread Guillaume Perrot
In Android we can get the signatures of a package with getPackageManager().getPackageInfo(packageName, PackageManager.GET_SIGNATURES).signatures; We can print a signature by calling signatures.toCharsString(); How to get the same string with jarsigner or another tool from the APK file ? -- Yo

[android-developers] Re: toast

2009-12-01 Thread Guillaume Perrot
And you can try mToast.getView().setVisible(View.GONE) for the current one. On 1 déc, 06:30, Suchand Ghosh wrote: > what code base you r using? there should be function to hide toast. Hide > generally post a msg to mHandler to hide the Toast. > > On Tue, Dec 1, 2009 at 10:50 AM, Greg Donald wrot

[android-developers] Re: toast

2009-12-01 Thread Guillaume Perrot
There are only two possible durations, the integer parameter refers to the possible constants which are LENGTH_LONG and LENGTH_SHORT. According to me, cancel() just cancels pending toasts in queue, this may not work on the current one. On 1 déc, 06:30, Suchand Ghosh wrote: > what code base you r

Re: [android-developers] Re: Automatic permissions in my T-Mobile G1

2009-11-27 Thread Guillaume Perrot
Thanks for the answer, it make sense now ^^ 2009/11/27 Dianne Hackborn > > http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#DONUT > > On Thu, Nov 26, 2009 at 4:53 PM, Guillaume Perrot < > guillaume.p...@gmail.com> wrote: > >> READ_PHONE

Re: [android-developers] Re: Automatic permissions in my T-Mobile G1

2009-11-26 Thread Guillaume Perrot
READ_PHONE_STATE is not a new permission, is it ? 2009/11/26 Dianne Hackborn > I just replied to this. It's because a of 1.6 these are new permissions > that old applications must be automatically given for compatibility. > > > On Thu, Nov 26, 2009 at 8:34 AM, Guillaume Pe

[android-developers] Re: Automatic permissions in my T-Mobile G1

2009-11-26 Thread Guillaume Perrot
Same thing happens with the HTC Magic. Both phones are on Donut. I have also have this on Donut emulator but not on cupcake emulator. On 26 nov, 17:26, Guillaume Perrot wrote: > When I run any application from Eclipse on my real G1 device (a retail > one, this is not a dev phone), I am g

[android-developers] Automatic permissions in my T-Mobile G1

2009-11-26 Thread Guillaume Perrot
When I run any application from Eclipse on my real G1 device (a retail one, this is not a dev phone), I am granted the READ_PHONE_STATE and WRITE_EXTERNAL_STORAGE even if i don't declare them in the AndroidManisfest.xml. I actually can call TelephonyManager.getDeviceID () to retrieve the IMEI and I

[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 wrote: > Thanks for the reply! > > I have checked the group you provided, seems that htc placed wrong > files for download. > Hopefully it will

[android-developers] Re: manually restart an activity

2009-09-09 Thread Guillaume Perrot
Try simulating a configuration change you don't handle in manifest, your activity will be restarted with the standard save/restore state mechanism. On Sep 9, 9:02 am, Dianne Hackborn wrote: > Another possible one -- call startActivity() to start a new instance of your > activity and then call fi

[android-developers] Re: How to keep service alive?

2009-07-30 Thread Guillaume Perrot
Jul 19, 11:49 pm, Dianne Hackborn wrote: > > > > > The onPause() method in this example is broken, because if > > > shouldStopService() returns false then it won't unbind, and the next > time > > > the activity gets resume it will then go and re

[android-developers] Re: How to keep service alive?

2009-07-19 Thread Guillaume Perrot
Actually I use a local service without aidl, I allocate a dummy binder (new Binder()) in onBind(). This service manages an XMPP connection, even if no screen is shown to user (there is an ongoing notification with a life cycle corresponding to the service's one, and so I guess my use of Service.set

[android-developers] Re: How to keep service alive?

2009-07-19 Thread Guillaume Perrot
I was not aware of the overhead issue with a "local" Binder, I thought this case was optimized. I hope the Android team will work on this so that we won't have to reinvent the wheel. I will look at your code once it'll be available, this sounds interesting. 2009/7/19 Mark Mu

[android-developers] Re: How to keep service alive?

2009-07-19 Thread Guillaume Perrot
Using both startService and bindService is handy to wait for the onServiceConnected callback before requesting a singleton reference that is set in the service's onCreate. If you do this just after the startService, the reference will be null. The startService is needed for the service to continue

[android-developers] Re: About the oneway keyword in AIDL

2009-07-17 Thread Guillaume Perrot
That is not a problem in my use case [?] 2009/7/17 Marco Nelissen > > On Fri, Jul 17, 2009 at 7:20 AM, Guillaume > Perrot wrote: > > > > Hello, > > I found in Android source code an interesting but undocumented keyword > > for aidl: "oneway" (before

[android-developers] Re: java.net.SocketException: Connection reset

2009-07-17 Thread Guillaume Perrot
The most probable reason is a NAT/gateway timeout caused by idleness. If you can confirm that this is actually the cause, you'll have to implement a keep alive mechanism (and use an alarm manager and a wake lock). On Jul 17, 4:17 pm, zeeshan wrote: > Hi Dear, > > i got this (java.net.SocketExcep

[android-developers] About the oneway keyword in AIDL

2009-07-17 Thread Guillaume Perrot
Hello, I found in Android source code an interesting but undocumented keyword for aidl: "oneway" (before void in a function). As it sounds, the generated code uses the corresponding flag http://developer.android.com/reference/android/os/IBinder.html#FLAG_ONEWAY when performing the remote transacti

[android-developers] Re: Are Binder objects leaked ?

2009-07-16 Thread Guillaume Perrot
It appears that I have to wait some minutes before I can see the finalize trace of my binder, but it eventually happens. Maybe some sort of timeout in android code. 2009/7/16 Guillaume Perrot : > > I eventually saw finalize() (just once) on the Binder object after > many tests. >

[android-developers] Re: Are Binder objects leaked ?

2009-07-16 Thread Guillaume Perrot
pool solution. However I thought soft references were freed only when the VM is near out of memory which was not my case in my test (only 2MB allocated, 4MB in total heap). Could anyone explain me the life cycle of a binder object ? On Jul 16, 10:16 am, Guillaume Perrot wrote: > I am developing an

[android-developers] Are Binder objects leaked ?

2009-07-16 Thread Guillaume Perrot
I am developing an android service using aidl. I realized that the objects returned in Service.onBind() are never freed (e.g. finalize() is never called) even after onUnbind() and onDestroy() and playing with the eclipse GC button. I checked that the memory leak did not come from my Binder impleme

[android-developers] Re: Using Intent to view specific App in Android Market

2009-07-13 Thread Guillaume Perrot
The aim is not to automatically install the app. The goal is to go to the application's market page directly (instead of that annoying search screen with the only result). I am very surprised that there is no official URI to do that, why such a design choice ? Some time ago we could do that wi

[android-developers] Building with ant and multiple source folders

2009-07-02 Thread Guillaume Perrot
When building an Android project with ant, we can define some properties in a build.properties file. There is the attribute source-folder but we can only specify one folder. How to deal with several source folders ? --~--~-~--~~~---~--~~ You received this message be

[android-developers] Re: The app got crashed on SDK 1.5 which is working fine on SDK 1.0

2009-05-28 Thread Guillaume Perrot
I have the same problem with tabactivity but it's quite random and rare. I'll try to simplify the layout... On 11 mai, 18:51, hina naz wrote: > *How to earn money please visit my site * > > *http://latesttechnologyinfo.com/* --~--~-~--~~~---~--~~ You received this

[android-developers] Re: Unable to remove default launching of an application.

2009-05-23 Thread Guillaume Perrot
Thanks. According to me, it would be useful to have both the uninstall and the clear data button. Thus the documentation is quite confusing with this flag. 2009/5/23 Mark Murphy > > > But my second question remains unsolved: there is an interesting flag in > > the > > Manifest: > > android:allow

[android-developers] Re: Unable to remove default launching of an application.

2009-05-23 Thread Guillaume Perrot
For a quick example, download Astro File Manager, click on a image file, you should see 2 actions: * ASTRO Image Viewer * View Picture (standard) And a check box "Use by default for this action", I choosed "View Picture". If you check it, a text explains (ok it does not "tell", don't play on words.

[android-developers] Re: Unable to remove default launching of an application.

2009-05-23 Thread Guillaume Perrot
I have the same bug for all non standard applications, whatever the phone I tested. What's going on with this feature ? On 6 mai, 15:40, Guillaume Perrot wrote: > "I go to the application settings, but the "clear defaults" button is > always enabled" -> I meant

[android-developers] Re: Unable to remove default launching of an application.

2009-05-23 Thread Guillaume Perrot
I have the same bug for all non standard applications, whatever the phone I tested. What's going on with this feature ? On 6 mai, 15:40, Guillaume Perrot wrote: > "I go to the application settings, but the "clear defaults" button is > always enabled" -> I meant

[android-developers] App often crash with virtual keyboard.

2009-05-19 Thread Guillaume Perrot
Since cupcake we have a crash with one of our EditText widget when using a virtual keyboard in landscape, it's random but happens often: 05-19 11:01:54.819: ERROR/AndroidRuntime(21788): Uncaught handler: thread main exiting due to uncaught exception 05-19 11:01:55.019: ERROR/AndroidRuntime(21788)

[android-developers] Re: Dev Phone can not see paid apps using the 1.1 holiday release

2009-05-14 Thread Guillaume Perrot
I can see paid applications in France with ADP1 / Cupcake recovery image! On 1 avr, 15:50, Eric wrote: > The HTC 1.1 image and instructions that you have linked to is what I > originally put on the phone and still could not see any paid apps, even my > own which are not copy protected.  After se

[android-developers] Re: Unable to remove default launching of an application.

2009-05-06 Thread Guillaume Perrot
"I go to the application settings, but the "clear defaults" button is always enabled" -> I meant always disabled. On 6 mai, 15:39, Guillaume Perrot wrote: > Example: > I have a button which starts an activity with GET_CONTENT audio/* > I have a menu with choice

[android-developers] Unable to remove default launching of an application.

2009-05-06 Thread Guillaume Perrot
Example: I have a button which starts an activity with GET_CONTENT audio/* I have a menu with choices: Music Track or Sound Recorder and a checkbox. I check the box, it tells me that I can clear the setting in Application -> Manage Applications. I launch the Music Track with the box checked. I go

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

2009-05-05 Thread Guillaume Perrot
ys set their keep alive interval to: > > private static final long KEEP_ALIVE_INTERVAL = 1000 * 60 * 28; > > I'm assuming their optmized for the T-Mobile G1. > > On May 5, 5:13 am, Guillaume Perrot wrote: > > Nobody can answer me ? > > I am still forced to leave the set

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

2009-05-05 Thread Guillaume Perrot
Nobody can answer me ? I am still forced to leave the setting to 30s and it drains users battery. On 14 avr, 11:55, Guillaume Perrot wrote: > 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-

[android-developers] android.intent.extra.videoQuality not working for image capturing

2009-05-04 Thread Guillaume Perrot
When looking at the documentation, we can see that the intent whose action is ACTION_IMAGE_CAPTURE can have the EXTRA_VIDEO_QUALITY argument: "The name of the Intent-extra used to control the quality of a recorded video. This is an integer property. Currently value 0 means low quality, suitable f

[android-developers] Re: Eclipse + cupcake + other android projects in build path = VerifyError

2009-04-30 Thread Guillaume Perrot
Android lib projects would be a good feature. But why not having a dependency system between APKs like debian packages ? 2009/5/1 Xavier Ducrohet > > Hello, > > Editing the .classpath is a good solution. Let me explain why. > > ADT supports referenced projects so that you can have library projec

[android-developers] Re: Eclipse + cupcake + other android projects in build path = VerifyError

2009-04-30 Thread Guillaume Perrot
This sounds like a great workaround, so I'll try that next week. Thanks for the tip. 2009/4/30 JMoger > > I've got a working solution to this similar to your hint about J2SE > projects. Assuming your lib project is an android project, modify > the .project file to remove all Android builders an

[android-developers] Re: Eclipse + cupcake + other android projects in build path = VerifyError

2009-04-30 Thread Guillaume Perrot
Eric Chen, what is that build.xml file ? And what exaclty did you modify in the .classpath and the manifest files ? Handtwerk, I don't know if the problem also affects the Ant tool chain or just the Eclipse one, someone should test that. (When I say switching to J2SE projects, it only affects the r

[android-developers] Re: Eclipse + cupcake + other android projects in build path = VerifyError

2009-04-29 Thread Guillaume Perrot
The JDK is clearly not the problem here, I don't know what he's talking about as there are several causes that can trigger a VerifyError but in this discussion we deal with the latest ADT Eclipse plugin release. The problem here is that the ADT plugin tries to upload the referenced android projects

[android-developers] Re: Eclipse + cupcake + other android projects in build path = VerifyError

2009-04-29 Thread Guillaume Perrot
I did not understand your solution Eric Chen, could you explain exactly what you modified ? 2009/4/29 Eric Chen > I fixed the problem just by modifying .classpath, AndroidManifest.xml and > adding build.xml > > Best Regards > > Eric Chen > > > > On Wed, Apr 29, 200

[android-developers] Re: Eclipse + cupcake + referenced projects in build path = VerifyError

2009-04-29 Thread Guillaume Perrot
oid.jar uses a full path (a pain if you have an SCM and different > setups) and b/ you need to update it each time you update the SDK > (which you probably don't do that often.) > > R/ > > > On Tue, Apr 28, 2009 at 8:02 AM, Guillaume Perrot > wrote: > > > &

[android-developers] Re: Eclipse + cupcake + other android projects in build path = VerifyError

2009-04-29 Thread Guillaume Perrot
Evan JIANG wrote: > > Well, I met the same issue. > > Does anyone have any idea about this? > > > Best regards, > > On Tue, Apr 28, 2009 at 11:14 PM, Guillaume Perrot > > wrote: > >> We have an application cut into 3 android projects: > >> * Projec

[android-developers] Re: Eclipse + cupcake + referenced projects in build path = VerifyError

2009-04-28 Thread Guillaume Perrot
t; Inder > > On Tue, Apr 28, 2009 at 8:02 AM, Guillaume Perrot > > wrote: > > > In the previous SDK releases, we have our application cut into 3 > > android projects: > > * Project REAL (the real android project) > > * Project LIB1 (a non executable android pr

[android-developers] Eclipse + cupcake + other android projects in build path = VerifyError

2009-04-28 Thread Guillaume Perrot
We have an application cut into 3 android projects: * Project REAL (the real android project) * Project LIB1 (an android project without any activity, just to make android reusable classes) * Project LIB2 (same as LIB1) LIB1 and LIB2 are android projects rather than J2SE ones because LIB1 and LIB2

[android-developers] Eclipse + cupcake + referenced projects in build path = VerifyError

2009-04-28 Thread Guillaume Perrot
In the previous SDK releases, we have our application cut into 3 android projects: * Project REAL (the real android project) * Project LIB1 (a non executable android project, just to make android reusable classes) * Project LIB2 (same as LIB1) LIB1 and LIB2 are android projects rather than J2SE on

[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: http://groups.google.com/group/android-developers/browse_thread/thread/ad855bb57042c2bd/ee143afcddd65982?hl

[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 in

[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 timeout

[android-developers] Re: RC33 Network Problem

2009-04-14 Thread Guillaume Perrot
m the > > > > server). > > > > > On Feb 17, 11:19 am, Gil wrote: > > > > > > Unfortunately, watching the network state will not always work because > > > > > it does not account for end-to-end TCP connectivity. The server may > > >

[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 : > > Can anybody from Google comment on the status of supplying an updated > SDK with JavaDoc enabled? > > On Feb 17, 12:48 am, Guillaume Perrot > wrote: >> I have the same problem too,

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

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

[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 wrote: >> >> >> >> > Is anyone looking into the ja

[android-developers] Re: RC33 Network Problem

2009-02-17 Thread Guillaume Perrot
; the router to simulate a connection problem). In RC30 and earlier >> > > version as well as the latest emulator version (SDK 1.1) read throws >> > > an exception after approximately 30 seconds after the connectivity is >> > > lost. My code uses an infinite timeo

[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 wrote: > I've seen inconsistent behavior from RC30 on in this rega

[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 wrote: > Nope, just switched back to r1.0 > > On Feb 16, 11:13 am, g1bb wrote: > > > Anyone fi

[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 wrote: > DavidLanz wrote: > > do you guys know what's the different from 1.0.r2 to 1.1r1? > > is there

[android-developers] Re: Over-the-air upgrade WTF

2009-02-12 Thread Guillaume Perrot
When RC30 was installed on my phone (OTA update some months ago), my home and dial buttons totally stopped working. And the screen was not locking anymore. I did a factory reset in Settings -> SD card & phone storage -> Factory reset, and it solved the issue (backup all your data before, you can

[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 wrote: > Dave, > > Thank you for your reply. > > >> WiFi, 3G/EDGE (what carrier)? Is there anything useful in the log? > >> Maybe a proxy failure? > > I d

[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 sho

[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 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 some hyperlink, I

[android-developers] Re: local service getting killed

2009-02-01 Thread Guillaume Perrot
t; to claim resources. Is that what is going on here? > > > > 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 > >

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

2009-02-01 Thread Guillaume Perrot
> > -Mike > > > On Jan 31, 8:14 am, Guillaume Perrot 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

[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 c

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

[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 t

[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 onPa

[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 call

[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

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

2008-12-26 Thread Guillaume Perrot
droid:apiKey="0xliHXBcaVPd0uSCbaQpTRJRFCgsjKu7z0Gsjsw" /> > > > > > > http://schemas.android.com/apk/res/android"; > package="android.demo" > android:versionCode="1" > android:versionName="1.0.0"> > a

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

2008-12-26 Thread Guillaume Perrot
KeyEvent.KEYCODE_X) { >mapView.getController().zoomOut(); >return true; >} > >return super.onKeyDown(keyCode, event); > } > > @Override >protected boolean isRouteDisplayed() { >// TODO Auto-generated method stub

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

2008-12-26 Thread Guillaume Perrot
Why don't you override the onCreateContextMenu directly in MapActivity ? On Dec 26, 10:15 am, "honglian...@gmail.com" wrote: > hi all >     I want to create a context menu when LongClick is hitted. As > result mapview is opened successfully; but the LongClick got no > response. Would you like to

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

2008-12-25 Thread Guillaume Perrot
er would not > necessarily expect smooth transitions. Keep static images in class > variables. Good luck. > > On Dec 24, 5:15 am, Guillaume Perrot wrote: > > I have very short freezes when scrolling a very long list views > > containing down sampled images (I use BitmapFactory to

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

2008-12-24 Thread Guillaume Perrot
I have very short freezes when scrolling a very long list views containing down sampled images (I use BitmapFactory to produce thumbnails in background that are placed in RAM cache but there is still a problem). When I look at the logs, each mini UI freeze corresponds to a garbage collector log, t

[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 visibili

[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 p

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

2008-12-05 Thread Guillaume Perrot
; >> On 25 Nov., 19:24, "Dianne Hackborn" <[EMAIL PROTECTED]> wrote: >> > It may or may not be the right thing to do. If you are not going to use >> the >> > old intent, you should just use FLAG_CANCEL_CURRENT to first cancel the >>

[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 An

[android-developers] Re: ListActivity and progressbars?

2008-12-02 Thread Guillaume Perrot
f you try to call this from Activities 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"

[android-developers] Re: How to add menu item dynamically

2008-12-01 Thread Guillaume Perrot
You can describe/inflate menu in XML, though it's almost not documented. I discovered that when looking at the ApiDemos source code. Menu (panel and context ones) layouts are to put in the res/menu folder. According to me the best way to teach how to use them is to look at the ApiDemos source cod

[android-developers] Re: TabHost and New Activities

2008-12-01 Thread Guillaume Perrot
A working code: public class UbikIMActivity extends TabActivity [...] @Override protected void onCreate(Bundle icicle) { super.onCreate(icicle); [...] /* Create tabs */ Resources resources = getResources(); TabHost tabHost = getTabHost(); /* Create home tab */ TabSp

[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: What is the difference between onOptionsItemSelected and onMenuItemSelected?

2008-12-01 Thread Guillaume Perrot
red. Exercise 1 uses 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: > > onMe

[android-developers] Re: submenu

2008-11-30 Thread Guillaume Perrot
Did you look at the SubMenu class ? On Nov 29, 1:42 pm, jalandar <[EMAIL PROTECTED]> wrote: > Hi > > I want to add submenu to menu item , I mean when i select menu item > there should be submenu for that menu item. Is anybody have sample for > this. > > regards > jagtap --~--~-~--~~--

[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 pr

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

[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 lay

  1   2   3   >