Re: [android-developers] 7-Day Notification of Google Play Developer Term Violation

2014-09-19 Thread Thierry Legras
/2993242?hl=enref_topic=3453554#ts=2993245,2993352 The second has a contact form On Sep 15, 2014 4:57 AM, Thierry Legras tleg...@gmail.com wrote: Here we go, after 3 years with almost no change in my application description on Google Play I received the violation notification for my

Re: [android-developers] 7-Day Notification of Google Play Developer Term Violation

2014-09-18 Thread Thierry Legras
/troubleshooter/3055196 select App Development Question worth a shot atleast On Sep 17, 2014 4:39 PM, Thierry Legras tleg...@gmail.com wrote: Good point but the next question si how :) I replied to the mail with no luck. Nowhere I could find any contact, just link to guidelines and good

Re: [android-developers] 7-Day Notification of Google Play Developer Term Violation

2014-09-17 Thread Thierry Legras
a écrit : Have you reached out to the Google Play Team? Maybe bring it to there attention for manual review? On Sep 15, 2014 4:57 AM, Thierry Legras tleg...@gmail.com wrote: Here we go, after 3 years with almost no change in my application description on Google Play I received the violation

[android-developers] 7-Day Notification of Google Play Developer Term Violation

2014-09-15 Thread Thierry Legras
Here we go, after 3 years with almost no change in my application description on Google Play I received the violation notification for my application https://play.google.com/store/apps/details?id=com.tlegras.freeboxrec (sorry only available in google play France) This is a notification that your

[android-developers] Advice for a strategic game map

2012-11-10 Thread Thierry Legras
Hi, I am starting the development of a strategy game. For that I would like to develop an interactive galaxy map with objects (basically planets, spaceships). Note this would NOT be a real time game, but a turn by turn game. What is the best way to start knowing I would like a typical mapview

Re: [android-developers] Re: android.text.format.DateFormat.format performance

2011-10-18 Thread Thierry Legras
timemilli) { sTmpCalendar.setTimeInMillis(**time); int hours = sTmpCalendar.get(Calendar.**HOUR_OF_DAY); int minutes = sTmpCalendar.get(Calendar.**MINUTE); return ((hours10)?0:)+hours+:+**((minutes10)?0:)+ minutes; } 2011/10/14 Thierry Legras tle...@gmail.com Thanks Steven! I

Re: [android-developers] Re: android.text.format.DateFormat.format performance

2011-10-17 Thread Thierry Legras
:)+ minutes; } 2011/10/14 Thierry Legras tleg...@gmail.com Thanks Steven! I will try that. As Date.getHours() etc. methods are mentioned as deprecated. I will check with Calendar class as well if it is still faster than DateFormat. Thierry. 2011/10/14 Studio LFP studio@gmail.com

Re: [android-developers] Re: android.text.format.DateFormat.format performance

2011-10-14 Thread Thierry Legras
Thanks Steven! I will try that. As Date.getHours() etc. methods are mentioned as deprecated. I will check with Calendar class as well if it is still faster than DateFormat. Thierry. 2011/10/14 Studio LFP studio@gmail.com It is slow and so is String.format(). I've been messing around with

Re: [android-developers] Re: android.text.format.DateFormat.format performance

2011-10-14 Thread Thierry Legras
No I don't. Time as been converted from string to timemilli on a serveur for efficiency, and I have to convert them back to String when I want to display it. 2011/10/14 Zsolt Vasvari zvasv...@gmail.com Sure, if you don't care about localization issues. On Oct 14, 5:26 am, Thierry Legras

Re: [android-developers] Re: Custom DialogPreference and PreferenceManager.setDefaultValues issue

2011-10-13 Thread Thierry Legras
Okay, I give up. My preference default value will be copied in the preference access code as well: value = sharedPref.getInt(mykey,myDirtyHardcodedDefaultValue ); If ever someone has a better solution, it will be welcome :) Thierry. 2011/10/11 Thierry Legras tleg...@gmail.com Hi Ibendlin

[android-developers] android.text.format.DateFormat.format performance

2011-10-13 Thread Thierry Legras
Hi, I am optimizing the critical parts of my code, and I coming to some ResourceCursorAdapter bindView method. Though the method is quite long, I saw on traceview that only 2 lines are taking 40% of the time in traceview; those are call to DateFormat:

Re: [android-developers] Re: Custom DialogPreference and PreferenceManager.setDefaultValues issue

2011-10-11 Thread Thierry Legras
Hi Ibendlin, Thanks for helping me :) I don't think the problem is in SeekBarPreference.onSetInitialValue() function itself as it is never called (I have put a log in it to check). There is certainly an issue somewhere in my implementation; when setDefaultValues is called, only SeekBarPreference

[android-developers] Custom DialogPreference and PreferenceManager.setDefaultValues issue

2011-10-10 Thread Thierry Legras
Hi, I have integrated a custom DialogPreference (SeekBarPreference from http://android.hlidskialf.com/blog/code/android-seekbar-preference). But I can't make the call to PreferenceManager.setDefaultValues correctly initialize the preference to defaut value. After looking at android source, I

[android-developers] Re: AdapterView.OnItemSelectedListener.onItemSelected called with out of date position argument!

2011-03-02 Thread Thierry Legras
= false; // required mSpinner.setSelection(mPosition); } else { mPosition = position; ... // do usual stuff } } 2011/2/25 Thierry Legras tleg...@gmail.com Hi, I have a strange behavior in a very specific case and wonder if the issue comes from my code

Re: [android-developers] Re: AdapterView.OnItemSelectedListener.onItemSelected called with out of date position argument!

2011-03-02 Thread Thierry Legras
the exact sequence of events. -- Kostya 02.03.2011 12:52, Thierry Legras пишет: Okay, as I could not find a way to fix that smoothly, I just used a flag ignoreNextOnItemSelected like described hereafter. Seems to me a dirty hack :( // called from another activity context

Re: [android-developers] Re: AdapterView.OnItemSelectedListener.onItemSelected called with out of date position argument!

2011-03-02 Thread Thierry Legras
with that very same code in AdapterView. Thanks again for this tip! BTW your blog looks like a goldmine to me, I think I will re-use your IP address EditText :) Thierry. -- Kostya 02.03.2011 14:21, Thierry Legras пишет: Hi Kostya, Thanks to try to help to sort this out. unfortunatly I don't

[android-developers] AdapterView.OnItemSelectedListener.onItemSelected called with out of date position argument!

2011-02-25 Thread Thierry Legras
Hi, I have a strange behavior in a very specific case and wonder if the issue comes from my code or not. I have a TabActivity A with 2 tabs: - Tab 1 content is created as a view with a spinner in it - Tab 2 content is an activity B. I want at some point when Tab2 is selected to switch to Tab 1

[android-developers] NullPointerException with Strange backtrace not going into my code

2011-02-23 Thread Thierry Legras
Hi, I have got from time to time crash reports with such backtrace: java.lang.NullPointerException at android.widget.PopupWindow$PopupViewContainer.dispatchKeyEvent(PopupWindow.java:1350) at android.view.ViewRoot.deliverKeyEventToViewHierarchy(ViewRoot.java:2368) at

Re: [android-developers] NullPointerException with Strange backtrace not going into my code

2011-02-23 Thread Thierry Legras
on it... 2011/2/23 Miguel Morales therevolti...@gmail.com Are you sure you're not messing with the UI from another thread? On Wed, Feb 23, 2011 at 2:39 AM, Thierry Legras tleg...@gmail.com wrote: Hi, I have got from time to time crash reports with such backtrace

Re: [android-developers] Re: How to stream video to android device over HTTP.

2011-01-24 Thread Thierry Legras
is annoying, so still looking into that part. Other than that it all works like it should. Tested on two HTC phones so far. Need to test on more. Regards Anthoni On Jan 23, 10:30 pm, Thierry Legras tleg...@gmail.com wrote: After digging here and there for some times... It turns out

[android-developers] Re: How to stream video to android device over HTTP.

2011-01-23 Thread Thierry Legras
device Sound only/HTTP: compatible with VLC, compatible with 3G network, compatible with all android device Thierry. 2010/12/20 Thierry Legras tleg...@gmail.com Hi, I would like to stream video files to Android device, and intend to integrate playback in my application. I first tried to use

[android-developers] SQLiteDiskIOException in SQLiteDatabase.delete

2011-01-12 Thread Thierry Legras
Hi, In my application, in very very rare cases, some users get this kind of exception: Caused by: android.database.sqlite.SQLiteDiskIOException: error code 10: disk I/O error at android.database.sqlite.SQLiteStatement.native_execute(Native Method) at

Re: [android-developers] How to stream video to android device over HTTP.

2010-12-21 Thread Thierry Legras
stream. I used VideoView class to do that successfully. 2010/12/20 Thierry Legras tleg...@gmail.com Hi, I would like to stream video files to Android device, and intend to integrate playback in my application. I first tried to use flash video streaming, which works pretty nice on my HTC Hero

[android-developers] How to stream video to android device over HTTP.

2010-12-20 Thread Thierry Legras
Hi, I would like to stream video files to Android device, and intend to integrate playback in my application. I first tried to use flash video streaming, which works pretty nice on my HTC Hero which integrated flash player, but now on Floyo ROM it does not work any more. I guess HTC player is

[android-developers] Modularity: advises to develop an applicatin plugin that could access application Sqlite, preferences, ...

2010-11-15 Thread Thierry Legras
Hi, I want to add a big feature to an application i am developping, but as this feature interest few people and is quite independant from the main part, I would like to put that in a seperate plugin application. Does anyone knows any design patterns, snippets, reference examples about such

Re: [android-developers] Re: Adding separators to a ListView

2010-11-15 Thread Thierry Legras
Hi, I found something that highlights Kostya solution including a trick to avoir header to appear selected: http://thebogles.com/blog/2010/02/section-headers-for-android-listviews/ This seems straightforward to follow ... except that i can't get previous record. Unfortunately the

Re: [android-developers] Re: Adding separators to a ListView

2010-11-15 Thread Thierry Legras
Could you please share the way you grab the previous row from within setViewValue? :) 2010/11/15 Kostya Vasilyev kmans...@gmail.com Ok, so I had a cursor-based ListView laying around, and decided to try and practice what I preach :) Got it working in just a few minutes, actually. The

Re: [android-developers] Modularity: advises to develop an applicatin plugin that could access application Sqlite, preferences, ...

2010-11-15 Thread Thierry Legras
Thanks TreKing. This seems a very good start. I will try that. Thierry. 2010/11/15 TreKing treking...@gmail.com On Mon, Nov 15, 2010 at 5:09 AM, Thierry Legras tleg...@gmail.com wrote: - that separate plugin application should be able to access some tables in the main application DB

Re: [android-developers] Re: sqlite

2010-10-29 Thread Thierry Legras
That certainly works, but that might double the processing time, doesn't it? 2010/10/28 Bret Foreman bret.fore...@gmail.com Do an update and check how many rows got updated. If 0, then insert a new row. If 1, do nothing. If more than 1, throw an exception. -- You received this message

Re: [android-developers] sqlite

2010-10-28 Thread Thierry Legras
Hi Henridk, I have the same issue and I think that can not be solved with insert facility which is only for basic usage. Instead we have to use query or rawquery in such way: http://stackoverflow.com/questions/531035/how-to-do-if-not-exists-in-sqliteI have not tried it yet, wut will soon do.

Re: [android-developers] Re: Maintaining Aspect Ratio of Background Image

2010-09-17 Thread Thierry Legras
Thanks Bret. Will do something like that. I hope Android will have more options to define a background with multiplication of terminals and upcoming pads. Thierry. 2010/9/17 Bret Foreman bret.fore...@gmail.com I made a landscape and a portrait version of my background image and designed

Re: [android-developers] Re: Maintaining Aspect Ratio of Background Image

2010-09-16 Thread Thierry Legras
Hi, I have the same issue. Indeed it seems quite a common request without any easy solution. Anyone has a code snippet based on Frank suggestion (or other solution)? Thanks for any help, Thierry. 2010/7/7 Daniel Lew danle...@gmail.com I hadn't considered that, but then you can't reference the

Re: [android-developers] Problem in SimpleDateFormat MMM return month number

2010-08-06 Thread Thierry Legras
Thanks for this workaround that shoud be acceptable for my application which is useful only france! I fear this kind of bug has few chances to be fixed in htc desire firmware as updates are rare and monolythics. Thierry. Le 5 août 2010 14:16, { Devdroid } webnet.andr...@gmail.com a écrit : On 3

Re: [android-developers] Problem in SimpleDateFormat MMM return month number

2010-08-02 Thread Thierry Legras
Hi Sasikumar, Could you find a solution to this problem? I have been reported same issue on HTC Desire 2.2 new update and also on some custom ROM. The format i use is this one: final static SimpleDateFormat sDisplayDayFormat = new SimpleDateFormat( d M); and later set it in a

[android-developers] Re: How to change TabWidget default grey color

2010-07-22 Thread Thierry Legras
Self answering :) As far as I could read (have not tried it yet), tabHost.getChildTabViewAt(int pos).setBackgroundColor(int resid) should do it (Donut and later) Thierry. 2010/7/18 Thierry Legras tleg...@gmail.com Hi, What is the supported way to set tabwidget color? I tried

[android-developers] How to change TabWidget default grey color

2010-07-18 Thread Thierry Legras
Hi, What is the supported way to set tabwidget color? I tried this: tabHost.getTabWidget().setBackgroundColor(somecolor) It does what i want on 1.5 1.6 device e.g. it changes the color of he space between tabs *and also *the tabs color. On 2.1, it only changes the color of the space behind

Re: [android-developers] Re: Change background after an Orientation change

2010-06-24 Thread Thierry Legras
I have the similar issue, the answer is interesting but i am wondering if i can avoid specifying an alternate landscape layout just for that in my case: indeed i don't want to have 2 different background pictures for horizontal/vertical layout but just to fit to screen with height/width ratio

Re: [android-developers] Re: Change background after an Orientation change

2010-06-24 Thread Thierry Legras
argggh, the layout-land folder does not work. i guess it is because i have added android:configChanges=orientation in my manifest. ok i had better reread this article from the beginning twice :-| http://www.androidguys.com/2008/10/14/rotational-forceson-your-android-app/ 2010/6/24 Thierry Legras

[android-developers] Activity within TabActivity: onResume not always called when tab selected?

2010-06-13 Thread Thierry Legras
Hi, I have a TabActivity with 3 tabs: - tab A is created with a TabContentFactory, - tabs B C are created as Activity. When I switch from B to C, B activity is resumed (onResume called). But when i switch from A to B, onResume is NOT called. Unfortunately i need B to be aware that it has been

[android-developers] Re: Activity within TabActivity: onResume not always called when tab selected?

2010-06-13 Thread Thierry Legras
(); // } I will try that. Thierry. 2010/6/13 Thierry Legras tleg...@gmail.com Hi, I have a TabActivity with 3 tabs: - tab A is created with a TabContentFactory, - tabs B C are created as Activity. When I switch from B to C, B activity is resumed (onResume called). But when i switch from

[android-developers] Re: Activity within TabActivity: onResume not always called when tab selected?

2010-06-13 Thread Thierry Legras
that onResume is not called. It would be a much nicer solution. Thierry. 2010/6/13 Thierry Legras tleg...@gmail.com Maybe I have found something: From TabActivity, set a OnTabChangedListener, then the listener is called: String tabTag = getTabHost().getCurrentTabTag(); if tabTag.isEqual(TAB_B

Re: [android-developers] Re: How can i vertically align items in RelativeLayout?

2010-06-10 Thread Thierry Legras
-droid.blogspot.com On Jun 10, 3:00 am, Thierry Legras tleg...@gmail.com wrote: Hi, As i am facing limitation of layout depth in my application, i am replacing some LinearLayout with RelativeLayout. However i am stopped by a supposely very simple issue (but apparantly without clean

Re: [android-developers] StackOverflowError in UI redraw

2010-06-10 Thread Thierry Legras
. 2010/6/7 Mark Murphy mmur...@commonsware.com Thierry Legras wrote: I am facing rare StackOverflowError in my application during UI redraw. Does it mean memory is exhausted? It means that stack space is exhausted. How can i fix this? Your UI probably has too many layers in its

Re: [android-developers] Re: StackOverflowError in UI redraw

2010-06-09 Thread Thierry Legras
the crash on 1.5. On Jun 8, 3:45 pm, Thierry Legras tleg...@gmail.com wrote:LuLu Thanks all for your help. Indeed, i am using Tabs with activities! I don't like the idea to switch to views-in-tabs design :( i found that the activities-in-tab approach allows to have a better modularity

[android-developers] How can i vertically align items in RelativeLayout?

2010-06-09 Thread Thierry Legras
Hi, As i am facing limitation of layout depth in my application, i am replacing some LinearLayout with RelativeLayout. However i am stopped by a supposely very simple issue (but apparantly without clean solution regarding that

Re: [android-developers] Re: StackOverflowError in UI redraw

2010-06-08 Thread Thierry Legras
on 1.5, 1.6+ is fine. On Jun 7, 9:16 pm, Thierry Legras tleg...@gmail.com wrote: Hi, I am facing rare StackOverflowError in my application during UI redraw. Does it mean memory is exhausted? How can i fix this? And finally how can i be sure the issue will be definitevly fixed?? Any

[android-developers] StackOverflowError in UI redraw

2010-06-07 Thread Thierry Legras
Hi, I am facing rare StackOverflowError in my application during UI redraw. Does it mean memory is exhausted? How can i fix this? And finally how can i be sure the issue will be definitevly fixed?? Any advice would be welcome :) Thierry. Here is the backtrace: 06-07 15:11:20.318

Re: RE : Re: [android-developers] starting an application with Android 1.5

2010-05-12 Thread Thierry Legras
; } } // handle not found case Any shorter and faster way (and compatible with 1.5) to do it is welcome :) 2010/5/12 Thierry Legras tleg...@gmail.com Hi Mark, Yes sorry, my mail was not clear but you got it. I was really sure this was available from 1.6. It seems I need to have a rest! I will try

[android-developers] starting an application with Android 1.5

2010-05-11 Thread Thierry Legras
Hi, How can i start an application just knowing the package name, not the classname? Ok, there is Intent.setComponent solution would be what i need ... if it was compatible with 1.5 :( I guess i have to play with getPackageManager() but how can i use it? Thanks for any help, -- Thierry. --

RE : Re: [android-developers] starting an application with Android 1.5

2010-05-11 Thread Thierry Legras
: Thierry Legras wrote: How can i start an application just knowing the package name, not the clas... There is no concept in Android of start an application. There is start an activity, even start an activity that appears in the Launcher. Ok, there is Intent.setComponent solution would be what i need

Re: [android-developers] Re: SQLite concurrent access best practices

2010-05-09 Thread Thierry Legras
db.BeginTransaction db.RunCommand(insert or update etc.) db.CommitTransaction catch db.RollbackTransaction Evgeny On Sun, May 9, 2010 at 8:18 AM, Senthil ACS acs@gmail.com wrote: For insert() and update(), have it under synchronized blocks. On May 8, 5:40 pm, Thierry Legras tleg

[android-developers] SQLite concurrent access best practices

2010-05-08 Thread Thierry Legras
Hi, I have an application with several tables, each being updated by AsyncTask fired by different Activities and used by UI with SimpleCursorAdapter. Though i am not developping a game, I would like to avoid to interrupt the user as mush as possible. Has SQLite is not multiaccess proof, what is

Re: [android-developers] is charset decoding terminal dependant?? (UTF8/iso-8859-1 question)

2010-04-06 Thread Thierry Legras
charset-newbie ;) Thierry. 2010/2/13 Thierry Legras tleg...@gmail.com Thanks for your reply. yes this is a java.lang.String. Indeed all i want to do is to correctly display the string in some View. Ok i got the point about java String being 16 bits. If so, and as it is not well displayed, i

Re: [android-developers] How to prevent animation when starting new task?

2010-03-08 Thread Thierry Legras
Hi, I have the same issue as you but did not find any solution either :( . In my case i use a TabHost where each tab has its own activity and at some point i need to switch to another tab from one tab activity. As it is not possible to do that from a tab activity, the best way i found is to

[android-developers] is charset decoding terminal dependant?? (UTF8/iso-8859-1 question)

2010-02-13 Thread Thierry Legras
Hello, I'm having troubles to correctly display strings with é è ... characters extracted from an html page (iso-8859-1). I am reading the html page as iso-8859-1 (using xerces XMLInputSource(null, null, null, myHTTPRequestContent, iso-8859-1), searching and extracting some specific strings with

Re: [android-developers] Re: Help needed with parsing some XML data !

2010-02-13 Thread Thierry Legras
Hi, I have a similar problem. I am parsing iso-8859-1 html page with a sax parser but having trouble to display it on _some_ devices (characters é è ... are replaced by random symbols). On some devide i have to use myString.getBytes(iso-8859-1) to display it correctly, and on some other devices,

Re: [android-developers] is charset decoding terminal dependant?? (UTF8/iso-8859-1 question)

2010-02-13 Thread Thierry Legras
Thanks for your reply. yes this is a java.lang.String. Indeed all i want to do is to correctly display the string in some View. Ok i got the point about java String being 16 bits. If so, and as it is not well displayed, i guess this means it was not properly created at first. Maybe this issue

[android-developers] Re: bug in Spinner.setSelection when called twice?

2010-02-06 Thread Thierry Legras
Hi, I think i found the solution: a call to ArrayAdapterCharSequence.notifyDataSetChanged fixed the problem. Thierry. 2010/2/3 Thierry Legras tleg...@gmail.com Hi, I saw several people reporting an issue with Spinner.setSelection that does not seem to work as expected on the second call

[android-developers] bug in Spinner.setSelection when called twice?

2010-02-03 Thread Thierry Legras
Hi, I saw several people reporting an issue with Spinner.setSelection that does not seem to work as expected on the second call: the item selection is correctly updated in the list subframe, but not in the text displayed when the spinner is closed Anbody knows a workarround? Thierry. On 4

[android-developers] ContextMenu on TableLayout: how to get selected item position?

2010-01-22 Thread Thierry Legras
Hi, ContextMenu seems quite handy as long as we are using an AdapterView as we can easily get selected item position in onContextItemSelected from AdapterContextMenuInfo.position Any idea how we can achieve something similar in a TableLayout? In my TableLayout, i have some TableRow and i would

Re: [android-developers] Re: applying style to textview

2010-01-11 Thread Thierry Legras
Thanks for your answer indeed i was a bit imprecise; in the xml way only setting the background color does not work. i tried also to use this way item name=android:colorBackground@color/myblue/item item name=android:windowBackground@color/myblue/item like mentionned in your link