[android-developers] Auto hiddable side button bar/tool bar

2011-10-18 Thread Jean-Michel
Hi there, room on screen being fairly expensive on small devices, I would like to implement a button/tool bar that would automatically show and hide from the side of the screen. When the user would tap anywhere on the screen, the bar would unfold and would fold back if there is no user input for a

[android-developers] Re: Auto hiddable side button bar/tool bar

2011-10-18 Thread Jean-Michel
Hi Kostya, I started to play with sliding drawer and it seems it can do the trick. My issue for now is that I cannot set the correct size... I would like the drawer to extend just enough for its content, but it seems pretty random, I tried a number of combination for width and height

[android-developers] Re: How to display search button in actionbar on tablet (app minSdk = 8)

2011-10-10 Thread Jean-Michel
Hi Mark, I cannot get android:showAsAction to be recognised/accepted in my project (minSDK = 8, targetSDK = 11). Eclipse tells me : error: No resource identifier found for attribute 'showAsAction' in package 'android'. Is that supposed to work with projects below 11? That would mean that

[android-developers] Re: How to display search button in actionbar on tablet (app minSdk = 8)

2011-10-10 Thread Jean-Michel
This is proving much harder than I thought... Basically, in order to show a search item in the action bar (or any item) I need to set showAsAction in my menu. In order to do that, I need to build with SDK = 11. If I build with SDK =11, I am at risk of including some code that will fail badly on

[android-developers] Re: How to display search button in actionbar on tablet (app minSdk = 8)

2011-10-10 Thread Jean-Michel
I do fully agree with the process, but apparently, with these requirements (supporting x to honeycomb), we are cornered with using build targets *above* the minSdk level which is really begging for troubles. Google dropped the ball at the last hurdle. If the XML code for tablets (showAsAction,

[android-developers] How to display search button in actionbar on tablet (app minSdk = 8)

2011-10-09 Thread Jean-Michel
Hi guys, I just (late and fairly stupidly) realised that one of the big differences of Honeycomb is the lack of always there standard buttons (home, back, search, menu). Home seems to be there all the time, as well as back (at least it is for my app). I found out how to get my menu back (target

[android-developers] Re: Garbage collector running every second... Normal?

2011-10-07 Thread Jean-Michel
Thank you guys, I will look into this. This stated, after a bit of investigation, I was probably barking at the wrong tree. I have added a saving of a trace file that I have put into a service (thinking that it would not have an impact) but it seems that this is the culprit. The work happens in

[android-developers] Re: Garbage collector running every second... Normal?

2011-10-07 Thread Jean-Michel
No Kris, I just did not think about it, and apparently it does (trigger ANR). I have transformed my service in IntentService and I have not had the problem since. I think it is solved, but it was a bit touch and go I am not 100% suree yet. Thanks JM -- You received this message because you are

[android-developers] Garbage collector running every second... Normal?

2011-10-06 Thread Jean-Michel
Hi guys, my app was all working well, but I have added a few features and now the emulator runs my PC CPU fairly hot, I had a couple of ANR exceptions, and the garbage collector is running every second. I assume this is not really normal. Unless you thinnk it is (right) could you please tell me

[android-developers] Re: Garbage collector running every second... Normal?

2011-10-06 Thread Jean-Michel
Forgot to paste my logcat output : 10-06 18:44:21.072: DEBUG/dalvikvm(6417): GC_EXTERNAL_ALLOC freed 2294 objects / 83544 bytes in 141ms 10-06 18:44:22.350: DEBUG/dalvikvm(6417): GC_EXTERNAL_ALLOC freed 2288 objects / 82976 bytes in 221ms 10-06 18:44:23.360: DEBUG/dalvikvm(6417): GC_EXTERNAL_ALLOC

[android-developers] Re: Garbage collector running every second... Normal?

2011-10-06 Thread Jean-Michel
It is a navigation app. Basiaclly I have a service that gets GPS location every second, stores it in an array, and that array is passed to the display activity thru a bundle (using IPC)... So yes a fairly large amount of data. -- You received this message because you are subscribed to the

[android-developers] Serializable subclass of non-serializable class

2011-10-05 Thread Jean-Michel
(Leg.java:262) .../... Any help will be greatly appreciated. Many thanks in advance, Jean-Michel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from

[android-developers] Re: Serializable subclass of non-serializable class

2011-10-05 Thread Jean-Michel
No, I am serialising to disk. Do you think it could work out? Any idea how to use Parcelable ? Many thanks, Jean-Michel On 5 oct, 16:43, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: Now luckily for you, Location in Android implements Parcelable interface, which could be of help

[android-developers] Re: Serializable subclass of non-serializable class

2011-10-05 Thread Jean-Michel
, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: On 5 October 2011 16:20, Jean-Michel jeanmichel.caz...@gmail.com wrote: No, I am serialising to disk. Do you think it could work out? Any idea how to use Parcelable ? Many thanks, Jean-Michel Jean-Michel, Parcelable is used

[android-developers] Re: Simple database form example

2011-10-03 Thread Jean-Michel
I was afraid it would end up like that... Gone the Delphi days, gone... Gone the Objective-C days, gone... Thanks Steven -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: Simple database form example

2011-10-03 Thread Jean-Michel
Just for the record, Delphi or the Apple dev framewiork do not generate edit dialog, they rather do the opposite. You draw your dialog, bind widgets to your data(source) and the rest of it is automated. You have actually 0 line of code to write to do a simple DB edit form, even a master-detail

[android-developers] Simple database form example

2011-10-02 Thread Jean-Michel
Hi guys, I need to do a simpple form to edit data in my SQLite db and it seems that you need to do pretty everything by hand. I want the user to select records into a listview, then a dialog would open allowing the user to edit data and save it. I am a bit prerplexed that there is not much in

[android-developers] Re: ES File Explorer 1.6.0.6 does not return path in data.getPath() anymore...

2011-10-02 Thread Jean-Michel
Thanks Kostya, but in order to avoid reliance on external package I have now integrated my own file picker. A bit of pain in the sohort term, but probabaly a whise thing to do in the long run. Regards, JM On Fri, Sep 30, 2011 at 4:37 PM, Jean-Michel jeanmichel.caz...@gmail.com  wrote

[android-developers] Permission denial on ACCESS_FINE_LOCATION on Samsung Galaxy (other GPS apps work)

2011-09-30 Thread Jean-Michel
Hi there, just released my first app to beta testers and real life (the one with real users) caught me... One of them has a Samsung Galaxy phone and he cannot launched the application (had something along the lines of application not installed). He sent me his logs and the interesting line seems

[android-developers] Re: Permission denial on ACCESS_FINE_LOCATION on Samsung Galaxy (other GPS apps work)

2011-09-30 Thread Jean-Michel
sure the user has a stock ROM? On Fri, Sep 30, 2011 at 8:32 AM, Jean-Michel jeanmichel.caz...@gmail.com  wrote: Hi there, just released my first app to beta testers and real life (the one with real users) caught me... One of them has a Samsung Galaxy phone and he cannot launched

[android-developers] Re: Permission denial on ACCESS_FINE_LOCATION on Samsung Galaxy (other GPS apps work)

2011-09-30 Thread Jean-Michel
Ok, I was able to reproduce the problem in the emaulator. It only happens on 2.3.3 (or from) and only with an installed app (app pushed from Eclipse is OK). Still have no idea where it comes from... Should I add the individual permissiopns on the activities? Here is my permission file. ?xml

[android-developers] Re: Permission denial on ACCESS_FINE_LOCATION on Samsung Galaxy (other GPS apps work)

2011-09-30 Thread Jean-Michel
application -- you are declaring that anything that tries to launch your application needs ACCESS_FINE_LOCATION. On Fri, Sep 30, 2011 at 12:54 PM, Jean-Michel jeanmichel.caz...@gmail.com wrote: Ok, I was able to reproduce the problem in the emaulator. It only happens on 2.3.3 (or from

[android-developers] ES File Explorer 1.6.0.6 does not return path in data.getPath() anymore...

2011-09-30 Thread Jean-Michel
Hi guys, I used to rely on ES File Explorer in my app to select files and open them but it seems the last version of ES File Explorer has changed and it does not reteurn the path in the calling activity anymore. Any one noticed that ? Any suggestion for an alternative ? I do not need complex

[android-developers] Managing beta testers / beta program

2011-09-28 Thread Jean-Michel
Hi there, I am at the point where I question releasing my application out in the wild, but before that I would like to go through a beta phase with beta testers recruited thru some forum (not my friends from childhood I mean). I am stunned that it seems Google did not plan for this at all... I

[android-developers] Re: Managing beta testers / beta program

2011-09-28 Thread Jean-Michel
it with a control group. It serves no purpose to have a large scale test until you have most of the easy to find bugs out of the system. The general public gets frustrated easily and they'll remember bad experiences and forget good ones. Best to keep the general public out of the test until

[android-developers] Re: Managing beta testers / beta program

2011-09-28 Thread Jean-Michel
I was actually wondering about this kind of things as well. From my quick search, ACRA would send the developper information on an application crash but is there an equivalent tool to capture the logs for example and send them from withiong the application. This can prove useful when the

[android-developers] Re: Defining custom drawables in XML

2011-09-13 Thread Jean-Michel
Erm... I concede, this would create some security challenges, but it is a pity there is such a limitation. Being able to use custom drawables in the XML would certainly simplify the life of a lot of developpers. Thanks for your reply anyway. JM On Sep 12, 9:18 am, Romain Guy

[android-developers] Defining custom drawables in XML

2011-09-12 Thread Jean-Michel
), it feels fairly easy to use introspection and check that name is or not a class from the project that extends Drawable. The same idea could be extended to ShapeDrawable when the name of the shape in unknown. Thanks for your help anyway. Jean-Michel -- You received this message because you

[android-developers] Re: android 1.5: How do we use the AudioTrack class?

2009-05-03 Thread Jean-Michel
Blindfold, I can get onMarkerReached() called for a STATIC AudioTrack instance. A few things you might want to try: - the marker position must be set in frames, not bytes. So make sure you're not giving a marker position that's not beyond your content. For instance if your content is stereo/8bit,

[android-developers] Re: How to use AudioRecord and AudioTrack

2009-05-03 Thread Jean-Michel
Hi there, Looks like sipdroid (www.sipdroid.org) is using AudioTrack and AudioRecord for their SIP client. Go to the Browse source page and look at trunk src org sipdroid media RtpStreamReceiver.java and RtpStreamSender.java, and search respectively for track and record. On Apr 30, 7:07 am,