[android-developers] Flavors : I loose my 'R' when I use code in main

2015-01-17 Thread Nanard
Hi, I have an App with 2 flavors : free and full. public class DocumentListActivity extends ActionBarActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.document_list_activity);

[android-developers] Re: AndroidStudio feedback (vs Eclipse)

2015-01-14 Thread Nanard
Le mercredi 14 janvier 2015 02:05:45 UTC+1, Nathan a écrit : | With AndroidStudio well, I'm starting to believe I will leave Android programming ! Is this Android Studio or the migration to Android Studio? Because with new projects, even months ago, I had no hesitation starting

[android-developers] AndroidStudio feedback (vs Eclipse)

2015-01-13 Thread Nanard
Hi, I've been programming since the beginning with Eclipse+SDK. I saw it won't be supported for long, as AndroidStudio became the official dev. platform. I am then trying to migrate all my code into AndroidStudio. I have 2 versions : 1 free, 1 full. Then I'm learning 'the hard way' : using

[android-developers] Re: Migrating to Android Studio

2015-01-13 Thread Nanard
I regret the choice from Google to 'force' us to use AndroidStudio. The Studio is not so bad, after a few hours of practice. But, in my case, I have a lot of difficulties managing my code, the IDE seems to work better if you use the User Interface : menus, mouse, ... If you enter code

[android-developers] Re: Mandriva aapt: /lib/libz.so.1 using latest SDK update

2011-03-20 Thread Nanard
I was on Mandriva 2010 Spring 32 bits. Tried to install more packages. No results. I've tried Ubuntu 32 and 63 bits: both don't install on my laptop. I'm now on Mandriva 64 bits + JDK 64 bits + Eclipse 64 bits. The Android emulator starts OK... but I still have this error msg when compiling. Even

[android-developers] Re: Mandriva aapt: /lib/libz.so.1 using latest SDK update

2011-03-20 Thread Nanard
Hi, Thanks for the answer. The error message in Eclipse/Android : [2011-03-20 21:09:37 - DrawIt] /home/bsegonnes/to_burn/DVD_sauvegarde/ download/Google_Android/android-sdk-linux_x86/platform-tools/aapt: / lib/libz.so.1: no version information available (required by /home/

[android-developers] Mandriva aapt: /lib/libz.so.1 using latest SDK update

2011-03-15 Thread Nanard
Hi, I can't compile my Android app. since last SDK update. What's the solution to get it fixed ? I do have libz installed : [root@Laptop lib]# ll libz* lrwxrwxrwx 1 root root13 2010-12-05 21:56 libz.so.1 - libz.so. 1.2.3* -rwxr-xr-x 1 root root 74760 2010-01-06 15:05 libz.so.1.2.3* But

[android-developers] Give back memory to OS

2010-08-24 Thread Nanard
Hi, My app uses big external libraries (it will take me several months to slowly safely optimize it). Anyway,my app will still be big (8-9Mo once installed). Depending on the file the user opens, it may happend that I get Out Of Memory. I now catch almost all of them, display a message and

[android-developers] Re: Give back memory to OS

2010-08-24 Thread Nanard
I've noticed those log lines : dalvikvm-heap Clamp target GC heap from 16.184MB to 16.000MB So : it seems possible for an application to release memory to the system... What I'd like to do is to execute this 'Clamp' myself and go back to 12MB for instance. -- You received this message

[android-developers] Re: Out of memory and no useful stack trace

2010-04-11 Thread Nanard
You should at least have an idea/logs on the methods which creates OOM, you can encapsulate into a : try { bigMethod(); } catch(java.lang.OutOfMemoryError e) { all objects = null; System.gc(); System.runFinalization(); } Maybe you can also use

[android-developers] Re: Android, send me logs! - code library for detecting force-close and sending logs

2010-02-26 Thread Nanard
Inserting a try {} catch {xxxException ...} in the code an be hard... if the crash occurs in a place we don't expect/suspect of not being stable. A solution for Google team, would be in the Manifest.xml to add field : sendErrorLogsTo=m...@me.com So, for each Force Close we could receive a mail

[android-developers] Re: How to factor code for Free/Paid app versions?

2010-01-20 Thread Nanard
Hi, I manage 1 code for full/free version. In the code I have special comment for all lines I need to switch (comment or uncomment) depending on the version. for instance : if(page = 4) {// DEMO .. // DEMO }// DEMO int numberOfStuff = 10; //

[android-developers] WebKit : how to scoll content from JavaScript ?

2010-01-15 Thread Nanard
Hi, My application uses Webkit to display its content. I use SPAN tags to change characters background. A few char at a time. The char 'selection' moves in the WebKit view. It can then select character which are in a non visible part of the HTML page How can I scroll the WebView display

[android-developers] Re: what is a suitable upper limit for application size?

2010-01-08 Thread Nanard
Hi, I agree about the size limit problem. I think there should be a size limit (to keep RAM for OS other app), but we should be able to check in our code if we are 'near' the allocation limit for our app. Anyway, for your case : would it be possible to REMOVE all images from the .apk, and

[android-developers] [Solved] SDK and Linux 64 bits

2010-01-04 Thread Nanard
Hi, I have installed Mandriva 2010 32 bits :-) Unfortunately 'adb' still had a problem but, it gave me some error messages this time. (all was OK on Mandriva 2009 !) So, I had to manually setup this file : /etc/udev/rules.d/50- android.rules SUBSYSTEM==usb|usb_device,

[android-developers] Re: SDK and Linux 64 bits

2009-12-22 Thread Nanard
Thanks for your replies. So, it seems like it should be possible with Mandriva (they all have more or less same Kernel), but it is badly configured by default... When I run 'dmesg', and plug the phone on USB, I got some message. so the USB link seems OK. It's 'only' that adb doesn't find the

[android-developers] Re: SDK and Linux 64 bits

2009-12-22 Thread Nanard
dmesg message is : sd 4:0:0:0: [sdb] Attached SCSI removable disk usb 1-4: USB disconnect, address 5 usb 1-4: new high speed USB device using ehci_hcd and address 6 usb 1-4: New USB device found, idVendor=0bb4, idProduct=0c02 usb 1-4: New USB device strings: Mfr=3, Product=2, SerialNumber=1 usb

[android-developers] SDK and Linux 64 bits

2009-12-21 Thread Nanard
Hi, I wonder if someday the SDK will run fine on Linux 64 bits. I understand it's not a priority for Google team, but 64bits desktop OS are becoming common... My case : Mandriva 2010 64 bits, Eclipse 64 bits, SDK 1.6 : OK to create code launch emulator. But : - adb never find my phone linked

[android-developers] SDK running OK with Linux/Eclipse 64 bits ?

2009-12-18 Thread Nanard
Hi, I just have upgraded to Mandriva 64bits. I have installed the lasted Eclipse. But it seems it has problems loading 32bits SDK libs : Failed to parse the out of 'adb version' tools/adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file ... Can you

[android-developers] Re: Hide an app from Droid

2009-11-24 Thread Nanard
Hi, I developp an application using SDK 1.6. If I want it to be available on Droid devices, should I set android:targetSdkVersion=4 ? (I heard sales were great due to Droid phones, but I didn't noticed any improvment in my sales, so I'm wondering : is my app. visible on Droids ?) Maybe my

[android-developers] Orientation : onStop onDestroy called from BACK key or not ?

2009-09-17 Thread Nanard
Hi, Each time I switch the orientation of the device, onStop() and onDestroy() are called. They are also called when I close the Avtivity (dismiss()), and when I press 'back' key. In onStop() or onDestroy() methods : how can I know how I can here ? I'd like to run some code when I close the

[android-developers] WebView : can we select text in Java ?

2009-09-17 Thread Nanard
Hi, I'd like to use WebView to display some content (from my Java code or local temp file). I need to select some characters (change background color) of the view. Of course I need to change those selected char. using my Java code. How can it be done ? Can you post a short example ? Thanks

[android-developers] Re: Orientation : onStop onDestroy called from BACK key or not ?

2009-09-17 Thread Nanard
Note that in android you don't actually close activities by choice (I know, it's odd) they get closed when the system runs out of resources. Well I can always call finish() to close my window's Activity. My problem is : I have a thread doing things for my Activity. I am successfull

[android-developers] Re: Orientation : onStop onDestroy called from BACK key or not ?

2009-09-17 Thread Nanard
I have founded ! Thanks I should not rely on onStop() nor onDestroy() to know when I quit my Activity. The only safe way is : @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK) { ... do some cleaning here }

[android-developers] WebView : can we select text in Java ?

2009-09-08 Thread Nanard
Hi, I like WebView component. I would like to be able to select text in the view in my Java code. Is it possible ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: WebView : can we select text in Java ?

2009-09-08 Thread Nanard
OK, thanks. I will check how DOM objects work on Android... --~--~-~--~~~---~--~~ 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

[android-developers] How can I know if I can display a character ?

2009-09-02 Thread Nanard
Hi, My application opens external documents. Most characters are display OK, but a few not. How can I know if the character can be displayed (in a TextView, or other) ? Is there a method in TextView, String, Typeface or other ? --~--~-~--~~~---~--~~ You

[android-developers] Re: Speech Recognition

2009-08-27 Thread Nanard
A question to all VR specialist in this list :-) (and Google guys if they read tis) VR works/will work someday but If I have a phone bought in the US for instance, my phone will reconize American accent. If I develop a VR application for the world. Will my US phone have the

[android-developers] How to : display Button (Views) over a Camera preview ?

2009-08-19 Thread Nanard
Hi, I'd like to have code sample (xml java) of how I can overlay buttons (any view) into a camera video preview. Of course I'd like real Buttons : no bitmap of the button over a video. I need to keep the clicked event, button pressed/up functionality, etc Where can I find such Tutorial ?

[android-developers] Re: How to : display Button (Views) over a Camera preview ?

2009-08-19 Thread Nanard
Thanks for this fast answer ! I will try your code today. --~--~-~--~~~---~--~~ 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

[android-developers] How to make a video of the emulator ?

2009-04-20 Thread Nanard
Hi, I am using Linux (Mandriva). How can I make a video (with sound) of the emulator ? Thanks --~--~-~--~~~---~--~~ 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: How to make a video of the emulator ?

2009-04-20 Thread Nanard
Thanks On 20 avr, 16:21, Mark Murphy mmur...@commonsware.com wrote: I am using Linux (Mandriva).  How can I make a video (with sound) of the emulator ? You could try using Linux screencast software. Search on the following in your favorite search engine: linux screencast You will get

[android-developers] Re: Providing text-to-speech (TTS) capability in my Android application?

2009-03-26 Thread Nanard
If you need more languages, voices, I think a client/server solution would be better. Android app send a request (POST) to a TTS web server. The server sends back a mp3, or a html page with a link to a mp3. You download the mp3 on the SD card, and play it. The problem : finding a FREE TTS

[android-developers] Re: Are you localizing an app? Do you want to be?

2009-03-03 Thread Nanard
Hi Us (developper) have not infinite resources. I have started to translate my application, but I don't know which languages are the most urgent (English, Spanish, German, French). It would be great if on the official Android site, we had a page showing all countries where Android devices are

[android-developers] Re: Are you localizing an app? Do you want to be?

2009-03-03 Thread Nanard
://andappstore.com/ Nanard wrote: Hi Us (developper) have not infinite resources.  I have started to translate my application, but I don't know which languages are the most urgent (English, Spanish, German, French). It would be great if on the official Android site, we had a page showing

[android-developers] Re: Are you localizing an app? Do you want to be?

2009-03-03 Thread Nanard
In the US, I suppose there are a lot of Spanish speaking people which have Android phones also :-) --~--~-~--~~~---~--~~ 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: Are you localizing an app? Do you want to be?

2009-03-03 Thread Nanard
There are online translation services. They are not really good, but for text button/GUI having in english 1 to 3 words, it should be well translated. And also : I (we all) need that for advertisement :-) --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Re: Cookies

2009-03-02 Thread Nanard
Maybe try to search the web for HttpClient an Apache lib. available on Android by default. On 2 mar, 05:00, Marco Nelissen marc...@android.com wrote: On Sat, Feb 28, 2009 at 10:44 PM, Miles Smith mi...@vimae.com wrote: How does one go about setting a cookie? I have an website that sends

[android-developers] Re: speech to text api

2009-03-02 Thread Nanard
Not available. I also need it. Instead, I use free/demo TTS web site : - I search free TTS poducts, some site, have demo page. - I use this URL to post my text, and retrieve a web page with a link to a MP3 speaking my text. - I download it, play it, remove it. Of course the licence said ; it's

[android-developers] Re: Mime Type : how does it works ?

2009-02-27 Thread Nanard
Thanks for the answer. Could you add it for future SDK release ? Several users of my application (MultiReader) asked my to be able to launch my application for instance when they received a mail with a pdf, word, ... document. It would be good also to be able to launch application when we have

[android-developers] Mime Type : how does it works ?

2009-02-26 Thread Nanard
Hi, I have search on this list beginners' list, in anddev.org, ... no clear and full example. I would like to run my app when a file extention is selected (from web browser, file browser, mail, ... : from everywhere in Android) So : can I have a clear example of Manifest/xml and Java code to

[android-developers] How to manage Delay in InputStream ?

2009-02-24 Thread Nanard
Hi I do a POST on a URL on the web. I get back an InputStream. Even using a regular web browser this response comes back with a delay (2-5 sec). In Java, when I finished my post, close OutputStream , and read the response, as nothing as arrived yet : I get nothing and my app thinks the

[android-developers] Generate .apk without debug info in .class

2009-02-03 Thread Nanard
Hi, If I test my application and generate a .apk, or if I use the 'Export unsigned' menu, I get the same application size. How can I remove debug information for my final releases ? I use Eclipse. Thanks. --~--~-~--~~~---~--~~ You received this message because

[android-developers] Re: Android FreeTTS server interfacing, a speech solution for your projects

2008-11-14 Thread Nanard
Some TTS interesting links : TTS included into Android before end of year ? http://androidguys.com/?p=2765#comment-4647 Some Open Source TTS solution : http://www.cstr.ed.ac.uk/projects/festival/ How to use it from Java :

[android-developers] Re: Text to Speech lib from Android Market

2008-11-12 Thread Nanard
I need TTS lib also. Once this lib is available the Android Market could have another killer-application, and Google another reason to get $$. So, Google team : please provide such API/lib :-) --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Geo localization GPS without 3G (internet connection)

2008-11-06 Thread Nanard
Hi, I run Google Map Location API on the emulator. It works fine. But (for G1 users) it is possible to receive GPS coordinates even if the phone is not connected to internet (Google services) ? Another question : has someone estimate the bandwidth taken by GPS data , and by GoogleMap data

[android-developers] Re: new version of 1.0?

2008-10-29 Thread Nanard
When is planned a new SDK ? (or at least a SDK 1.xxx with bug fixes, and a few more features, TTS for instance :-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] MapView and SDK 1.0

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

[android-developers] Re: Android FreeTTS server interfacing, a speech solution for your projects

2008-10-17 Thread Nanard
Great ! Thanks !! I will test it. Where is located the server ? On your PC ? On 'our' PC at home ? Can we have it always on line on the web ? do you know a free web site which allow to upload .war/.ear ? On 17 oct, 12:13, Alvaro Rivas [EMAIL PROTECTED] wrote: Hi Wesley, Yes, the

[android-developers] Android SDK / emulator working fine on Linux 64 bits ?

2008-10-15 Thread Nanard
Hi, I plan to upgrade my PC and move from Mandriva 32bits to Mandriva 64bits. Are Eclispe SDK tools the emulator still working fine ? Any specific remarks on such a platform ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] How to manage free/paying versions ?

2008-08-31 Thread Nanard
Hi, I'd like to provide a free and non free versions of my application. The non-free version, will have additional/optional feature. But the free version will be fully usable (good idea ?) In 'traditionnal' java/jar delivery, I manage that by removing some .class (only present to check the

[android-developers] Question to Android team

2008-08-25 Thread Nanard
Hi, My application needs TTS (text to speech). I don't see any news about that. My question : Do you plan to (on day) add this API in Android (emulator devices) ? Or is it better (and faster) to develop (port) it myself (on the emulator !) Could you give me some help/links in order to do

[android-developers] Re: Text2Speech now hosted at google code

2008-08-25 Thread Nanard
Great idea ! I have no time to help you on this port (or for easy/fast stuff : it's OK). And : I also don't know any thing about speech/sound/grammar/... on this topic. But I will be pleased to test all versions of it :-) My project (for ADC I), is a document speaker. I really needs TTS.

[android-developers] Re: New SDK available - 0.9 SDK beta

2008-08-19 Thread Nanard
No Text to Speech (tts) yet ? --~--~-~--~~~---~--~~ 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 this group, send