[android-developers] Re: widget on lockscreen

2012-10-29 Thread Francois Simard
Hi is this available now? I noticed that SongZa shows a widget on the lock 
screen so that you can quickly change track. Is there any documentation 
about this?

Thanks.

Le mardi 29 juin 2010 11:22:36 UTC-4, manigault a écrit :
>
> Hi all i am developing music player and i want to put some controls 
> when screen is locked. Is there a way to put widget when screen is 
> lock ? The documentation says that "For example, the home screen has 
> one way of viewing widgets, but the lock screen could also contain 
> widgets," but i couldn't find a way to add widget to lockscreen so any 
> ideas ?

-- 
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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Excessive delay setting brightness: 173ms, mask=2

2012-08-27 Thread jean-francois labbe
I've found this error on my nexus S jelly bean logs.
 
E/PowerManagerService(260): Excessive delay setting brightness: 173ms, 
mask=2

it appears every time I turn on or off the screen.

What does it mean?

-- 
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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Problem optimizing views for having a fast scroll

2012-07-04 Thread jean-francois garreau
I finally found the source of all my GC ! it comes from my activity xml 
layout... Indeed for my expandView, I use this : 

  

And if I remove this : android:cacheColorHint="#"  the animation is 
very smooth !

Thanks for your help
   

Le mardi 3 juillet 2012 13:23:24 UTC+2, Kostya Vasilyev a écrit :
>
> A custom view, assuming it's at the root of your item layout, is just as 
> good as a view holder.
>
> Here is what you can do:
>
> - Override onFinishInflate in your item layout root view
> - Call this.findViewById to find children
> - Store them as member variables
> - Access in the adapter's getView, like itemView.mText1, itemView.mText2 
> -- rather than doing itemView.findViewById(...)
>
> -- K
>
> 2012/7/3 jean-francois garreau 
>
>> I already saw that presentation and I can't use the ViewHolder pattern 
>> because i need a customView. 
>>
>> So I'm looking for a way to optimize my CustomView because I don't know 
>> what I'm doing wrong with this view that causing thoses GC
>>
>>

-- 
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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Problem optimizing views for having a fast scroll

2012-07-03 Thread jean-francois garreau
Ok thank you

So first of all i think that as I didn't identify what's causing all my GC 
I will not solves this UI problem. But After, i will try your solutions.

regards

Le mardi 3 juillet 2012 14:45:22 UTC+2, Daniel Drozdzewski a écrit :
>
>
> On 3 July 2012 13:40, Mark Murphy  wrote:
>
>> On Tue, Jul 3, 2012 at 8:37 AM, Daniel Drozdzewski
>>  wrote:
>> > See Mark's comment. If you can get away with one View. If however each 
>> of
>> > those times is clickable, then just set max number of TextViews in each 
>> list
>> > element, as simply removing unused ones by calling 
>> setVisibility(INVISIBLE)
>> > on each one.
>>
>> Or, conceivably, use a URLSpan for the clickable ones.
>>
>>  
> Indeed! - much better choice and View hierarchy becomes much smaller, 
> which is what performance needs.
>
>  
>
>>  --
>> Mark Murphy (a Commons Guy)
>> http://commonsware.com | http://github.com/commonsguy
>> http://commonsware.com/blog | http://twitter.com/commonsguy
>>
>> _The Busy Coder's Guide to Android Development_ Version 3.7 Available!
>>
>> --
>> 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 email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> -- 
> Daniel Drozdzewski
>

-- 
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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Problem optimizing views for having a fast scroll

2012-07-03 Thread jean-francois garreau
Ok I will try that thanks !

But I think the problem is somewhere else  because, I comment all the code 
of my adapter in order to return static string for fix number of child and 
group items and I still have lots of GC So the problem maybe doesn't 
comes finally from my CustomView

I will look deeper into that direction and after, i will look at your 
advice with SpannableStringBuilder

regards

Le mardi 3 juillet 2012 14:24:38 UTC+2, Mark Murphy (a Commons Guy) a 
écrit :
>
> On Tue, Jul 3, 2012 at 7:48 AM, jean-francois garreau 
>  wrote: 
> > Ok so can you please explain me how to do a view like this : 
> > 
> > -- 
> > NameMovie 
> > 1h20min 
> > 11:00am | 2:00pm | 4:00pm | 8:00pm | 10:00pm 
> > - 
>
> That is a single TextView, assuming your lines of dashes are supposed 
> to be the ListView row divider lines (and therefore are not part of 
> your actual row). Use SpannableStringBuilder, along with 
> ForegroundColorSpan and StyleSpan, to handle the color changes and 
> weight (bold vs. not) changes. 
>
> -- 
> Mark Murphy (a Commons Guy) 
> http://commonsware.com | http://github.com/commonsguy 
> http://commonsware.com/blog | http://twitter.com/commonsguy 
>
> _The Busy Coder's Guide to Android Development_ Version 3.7 Available! 
>

-- 
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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Problem optimizing views for having a fast scroll

2012-07-03 Thread jean-francois garreau
Ok so can you please explain me how to do a view like this : 

--
*NameMovie*
1h20min
11:00am | 2:00pm | *4:00pm* | 8:00pm | 10:00pm
-

--
Text(in bold)
SubText(in gray)
Text1 (in gray) Text2 (in gray) Text3 (in bold) Text4 (normal)
-

I won't use viewHolder because my CustomView doesn't inherites from 
LinearLayout, I don't any xml file. I'm using a class that inherites from 
View.

Considerating that I don't know in advance how many Texts in gra, same 
thing for Text in bold and Text normal. AND I have to take care to cariage 
returns .

I first use this model : 







And with the view holder pattern it works but I have low performance for 
the generation of the string : 11:00am | 2:00pm | *4:00pm* | 8:00pm | 
10:00pm because I need to use a HTML paint

So after talking with lots of people I decided to write my own View 
inheriting from View. The problem is : according to time of day, the view 
will show : 
11:00am | 2:00pm | *4:00pm* | 8:00pm | 10:00pm 
and after 11:00am | 2:00pm | 4:00pm | *8:00pm* | 10:00pm
etc.

And according to the couple movie / cinema, I don't have the same number of 
showtimes so I can't say that I will use 4 textView for the showtimes 
because it will be wrong for the next movie to print.

Or maybe I don't have understand how to use the ViewHolderPattern...
In my Adapter, I directly use the viewObjects. How can i use the 
viewHolderPattern if my view inherites from view and don't have any view 
element in it ?

regards


Le mardi 3 juillet 2012 13:20:55 UTC+2, Mark Murphy (a Commons Guy) a 
écrit :
>
> On Tue, Jul 3, 2012 at 7:16 AM, jean-francois garreau 
>  wrote: 
> > I already saw that presentation and I can't use the ViewHolder pattern 
> > because i need a customView. 
>
> That makes absolutely no sense whatsoever. 
>
> - TextView inherits from View 
> - ImageView inherits from View 
> - CheckableTextView inherits from View 
> - your custom View subclass inherits from View 
>
> And: 
>
> - TextView works just fine with the ViewHolder pattern 
> - ImageView works just fine with the ViewHolder pattern 
> - CheckableTextView works just fine with the ViewHolder pattern 
>
> Hence, I am fairly comfortable that for any well-written custom View 
> subclass, the ViewHolder pattern can apply. There should be nothing 
> magic about  your particular subclass of View compared to any other. 
>
> -- 
> Mark Murphy (a Commons Guy) 
> http://commonsware.com | http://github.com/commonsguy 
> http://commonsware.com/blog | http://twitter.com/commonsguy 
>
> _The Busy Coder's Guide to Android Development_ Version 3.7 Available! 
>

Le mardi 3 juillet 2012 13:20:55 UTC+2, Mark Murphy (a Commons Guy) a 
écrit :
>
> On Tue, Jul 3, 2012 at 7:16 AM, jean-francois garreau 
>  wrote: 
> > I already saw that presentation and I can't use the ViewHolder pattern 
> > because i need a customView. 
>
> That makes absolutely no sense whatsoever. 
>
> - TextView inherits from View 
> - ImageView inherits from View 
> - CheckableTextView inherits from View 
> - your custom View subclass inherits from View 
>
> And: 
>
> - TextView works just fine with the ViewHolder pattern 
> - ImageView works just fine with the ViewHolder pattern 
> - CheckableTextView works just fine with the ViewHolder pattern 
>
> Hence, I am fairly comfortable that for any well-written custom View 
> subclass, the ViewHolder pattern can apply. There should be nothing 
> magic about  your particular subclass of View compared to any other. 
>
> -- 
> Mark Murphy (a Commons Guy) 
> http://commonsware.com | http://github.com/commonsguy 
> http://commonsware.com/blog | http://twitter.com/commonsguy 
>
> _The Busy Coder's Guide to Android Development_ Version 3.7 Available! 
>

-- 
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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Problem optimizing views for having a fast scroll

2012-07-03 Thread jean-francois garreau
I already saw that presentation and I can't use the ViewHolder pattern 
because i need a customView. 

So I'm looking for a way to optimize my CustomView because I don't know 
what I'm doing wrong with this view that causing thoses GC

Le lundi 2 juillet 2012 18:11:32 UTC+2, Daniel Drozdzewski a écrit :
>
> On 2 July 2012 12:20, jean-francois garreau <
> jean.francois.garr...@gmail.com> wrote:
>
>> little Up beacause not fixed
>>
>> Le jeudi 28 juin 2012 16:12:35 UTC+2, jean-francois garreau a écrit :
>>>
>>> The problem is : as I'm creating my custom view heriting from View, I 
>>> don't have any findById so the pattent viewHolder won't be useFull for me :(
>>>
>>> And I'm already implemnting it with the view recycling view system. 
>>> Indeed, in my View I use some Paint elements that I keep in the instance of 
>>> my view.
>>>
>>>
> You have to refactor your code, so that you use all suggested 
> optimisations out there, but HolderPattern is a must. Recycling view 
> objects is build into the ListView, so use it, or be slow. Creating new 
> view object per item is going to hurt.
>
> Just read some articles, watch Romain Guy talks from Google IO and see 
> where you have gone wrong.
> http://www.youtube.com/watch?v=N6YdwzAvwOA 
> http://www.vogella.com/articles/AndroidListView/article.html 
>
> Daniel
>
>
>
>
>  
>
>> Le jeudi 28 juin 2012 15:58:53 UTC+2, MagouyaWare a écrit :
>>>>
>>>> Nope... 
>>>> http://lmgtfy.com/?q=android+**viewholder+pattern<http://lmgtfy.com/?q=android+viewholder+pattern>
>>>>
>>>> Thanks,
>>>> Justin Anderson
>>>> MagouyaWare Developer
>>>> http://sites.google.com/site/**magouyaware<http://sites.google.com/site/magouyaware>
>>>>
>>>>
>>>> On Thu, Jun 28, 2012 at 7:50 AM, jean-francois garreau <
>>>> jean.francois.garreau@gmail.**com >wrote:
>>>>
>>>>> You mean  : 
>>>>>
>>>>>
>>>>>
>>>>> public View getChildView(int groupPosition, int childPosition, boolean 
>>>>> isLastChild, View convertView, ViewGroup parent) {
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>   ObjectSubViewNew subView = null;
>>>>>
>>>>>
>>>>>
>>>>>   if (convertView == null) {
>>>>>
>>>>>
>>>>>   subView = new ObjectSubViewNew(mainContext, kmUnit);
>>>>>
>>>>>
>>>>>   } else {
>>>>>
>>>>>
>>>>>   subView = (ObjectSubViewNew) convertView;
>>>>>
>>>>>
>>>>>   }
>>>>>
>>>>>
>>>>>  
>>>>> }
>>>>>
>>>>>
>>>>>
>>>>> ?
>>>>>
>>>>>
>>>>> Le jeudi 28 juin 2012 14:27:14 UTC+2, jean-francois garreau a écrit :
>>>>>
>>>>>> Hi everyone, 
>>>>>>
>>>>>> I have a problem for optimzing my application. More particulary, an 
>>>>>> ExpandListView. I found the scroll animation pretty slow compare to what 
>>>>>> I 
>>>>>> can see on other application. I have done severals optimizations yet but 
>>>>>> now I'm faced to a lack of idea for have a fluent scroll...
>>>>>>
>>>>>> What have done : 
>>>>>>
>>>>>>1. First i start to create CustomView inherting from View
>>>>>>2. I saw that in log I have lots of GC 
>>>>>>3. I have use allocationTracket in DDMS in order to see what are 
>>>>>>the object created who could cause my GC
>>>>>>4. I identify lots of instanciations of String so I've modify my 
>>>>>>model in order to carry all the string i need in order to avoid new 
>>>>>>creations of String 
>>>>>>5. I also try to write a reusable object corresponding to a 
>>>>>>drawable instruction in order to skim throught all instruction during 
>>>>>> the 
>>>>>>draw method
>>>>>>
>>>>>>
>>>>>> In order to gives 

Re: [android-developers] Re: Problem optimizing views for having a fast scroll

2012-07-02 Thread jean-francois garreau
little Up beacause not fixed

Le jeudi 28 juin 2012 16:12:35 UTC+2, jean-francois garreau a écrit :
>
> The problem is : as I'm creating my custom view heriting from View, I 
> don't have any findById so the pattent viewHolder won't be useFull for me :(
>
> And I'm already implemnting it with the view recycling view system. 
> Indeed, in my View I use some Paint elements that I keep in the instance of 
> my view.
>
> Le jeudi 28 juin 2012 15:58:53 UTC+2, MagouyaWare a écrit :
>>
>> Nope... http://lmgtfy.com/?q=android+viewholder+pattern
>>
>> Thanks,
>> Justin Anderson
>> MagouyaWare Developer
>> http://sites.google.com/site/magouyaware
>>
>>
>> On Thu, Jun 28, 2012 at 7:50 AM, jean-francois garreau <
>> jean.francois.garr...@gmail.com> wrote:
>>
>>> You mean  : 
>>>
>>>
>>> public View getChildView(int groupPosition, int childPosition, boolean 
>>> isLastChild, View convertView, ViewGroup parent) {
>>>
>>>
>>>
>>>
>>> ObjectSubViewNew subView = null;
>>>
>>>
>>> if (convertView == null) {
>>>
>>> subView = new ObjectSubViewNew(mainContext, kmUnit);
>>>
>>> } else {
>>>
>>> subView = (ObjectSubViewNew) convertView;
>>>
>>> }
>>>
>>>  
>>> }
>>>
>>>
>>> ?
>>>
>>>
>>> Le jeudi 28 juin 2012 14:27:14 UTC+2, jean-francois garreau a écrit :
>>>
>>>> Hi everyone, 
>>>>
>>>> I have a problem for optimzing my application. More particulary, an 
>>>> ExpandListView. I found the scroll animation pretty slow compare to what I 
>>>> can see on other application. I have done severals optimizations yet but 
>>>> now I'm faced to a lack of idea for have a fluent scroll...
>>>>
>>>> What have done : 
>>>>
>>>>1. First i start to create CustomView inherting from View
>>>>2. I saw that in log I have lots of GC 
>>>>3. I have use allocationTracket in DDMS in order to see what are 
>>>>the object created who could cause my GC
>>>>4. I identify lots of instanciations of String so I've modify my 
>>>>model in order to carry all the string i need in order to avoid new 
>>>>creations of String 
>>>>5. I also try to write a reusable object corresponding to a 
>>>>drawable instruction in order to skim throught all instruction during 
>>>> the 
>>>>draw method
>>>>
>>>>
>>>> In order to gives you all information for helping me with my code, here 
>>>> is a litle piece of functionnal.
>>>>
>>>> My app is an application which gives you the movies showtimes near your 
>>>> position. The expand list show thoses informations :
>>>>
>>>>  *Name Cinema :   [Image]*
>>>>  distance  
>>>> --**--**
>>>> --
>>>> *Movie Name 1 :* time
>>>> passed time 1 | passed time 2 | *nearest time* | 
>>>> futur time 1 | futur time 2 
>>>> --**
>>>> --**-
>>>> *Movie Name 2 :* time
>>>> passed time 1 | passed time 2 | *nearest time* | 
>>>> futur time 1 | futur time 2 
>>>> --**
>>>> --**-
>>>>
>>>>
>>>> etc.
>>>>
>>>> As you can see, on each movie I list all showtimes for the cinema and I 
>>>> have a diferent display according to the current time
>>>>
>>>> In term of Model Object, I have this structure in my adapter : 
>>>>
>>>> ArrayList theaterList; // The list of my cinema
>>>> HashMap mapMovie; // An hashmap which gives me the movie 
>>>> corresponding to an id
>>>>
>>>>
>>>> The problem I'm facing now is that when i look at the log, I still have 
>>>> lots of GC... and when i looked to the allocationTracker i see that :
>&

Re: [android-developers] Re: Problem optimizing views for having a fast scroll

2012-06-28 Thread jean-francois garreau
The problem is : as I'm creating my custom view heriting from View, I don't 
have any findById so the pattent viewHolder won't be useFull for me :(

And I'm already implemnting it with the view recycling view system. Indeed, 
in my View I use some Paint elements that I keep in the instance of my view.

Le jeudi 28 juin 2012 15:58:53 UTC+2, MagouyaWare a écrit :
>
> Nope... http://lmgtfy.com/?q=android+viewholder+pattern
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
> On Thu, Jun 28, 2012 at 7:50 AM, jean-francois garreau <
> jean.francois.garr...@gmail.com> wrote:
>
>> You mean  : 
>>
>>
>> public View getChildView(int groupPosition, int childPosition, boolean 
>> isLastChild, View convertView, ViewGroup parent) {
>>
>>
>>
>>
>>  ObjectSubViewNew subView = null;
>>
>>
>>  if (convertView == null) {
>>
>>  subView = new ObjectSubViewNew(mainContext, kmUnit);
>>
>>  } else {
>>
>>  subView = (ObjectSubViewNew) convertView;
>>
>>  }
>>
>>  
>> }
>>
>>
>> ?
>>
>>
>> Le jeudi 28 juin 2012 14:27:14 UTC+2, jean-francois garreau a écrit :
>>
>>> Hi everyone, 
>>>
>>> I have a problem for optimzing my application. More particulary, an 
>>> ExpandListView. I found the scroll animation pretty slow compare to what I 
>>> can see on other application. I have done severals optimizations yet but 
>>> now I'm faced to a lack of idea for have a fluent scroll...
>>>
>>> What have done : 
>>>
>>>1. First i start to create CustomView inherting from View
>>>2. I saw that in log I have lots of GC 
>>>3. I have use allocationTracket in DDMS in order to see what are the 
>>>object created who could cause my GC
>>>4. I identify lots of instanciations of String so I've modify my 
>>>model in order to carry all the string i need in order to avoid new 
>>>creations of String 
>>>5. I also try to write a reusable object corresponding to a drawable 
>>>instruction in order to skim throught all instruction during the draw 
>>> method
>>>
>>>
>>> In order to gives you all information for helping me with my code, here 
>>> is a litle piece of functionnal.
>>>
>>> My app is an application which gives you the movies showtimes near your 
>>> position. The expand list show thoses informations :
>>>
>>>  *Name Cinema :   [Image]*
>>>  distance  
>>> --**--**
>>> --
>>> *Movie Name 1 :* time
>>> passed time 1 | passed time 2 | *nearest time* | 
>>> futur time 1 | futur time 2 
>>> --**
>>> --**-
>>> *Movie Name 2 :* time
>>> passed time 1 | passed time 2 | *nearest time* | 
>>> futur time 1 | futur time 2 
>>> --**
>>> --**-
>>>
>>>
>>> etc.
>>>
>>> As you can see, on each movie I list all showtimes for the cinema and I 
>>> have a diferent display according to the current time
>>>
>>> In term of Model Object, I have this structure in my adapter : 
>>>
>>> ArrayList theaterList; // The list of my cinema
>>> HashMap mapMovie; // An hashmap which gives me the movie 
>>> corresponding to an id
>>>
>>>
>>> The problem I'm facing now is that when i look at the log, I still have 
>>> lots of GC... and when i looked to the allocationTracker i see that :
>>>
>>> In first position comes android.graphic.Bitmap from method nativeCreate 
>>> and it's corresponding stack is : 
>>>
>>>> android.graphics.Bitmap nativeCreate Bitmap.java -2 true 
>>>> android.graphics.Bitmap createBitmap Bitmap.java 477 false 
>>>> android.view.View buildDrawingCache View.java 6599 false 
>>>> android.view.View getDrawingCache View.java 6450 false 
>>>> android.view.ViewGroup drawChild ViewGroup.java 1571 false 
>>

[android-developers] Re: Problem optimizing views for having a fast scroll

2012-06-28 Thread jean-francois garreau
You mean  : 

public View getChildView(int groupPosition, int childPosition, boolean 
isLastChild, View convertView, ViewGroup parent) {

ObjectSubViewNew subView = null;
if (convertView == null) {
subView = new ObjectSubViewNew(mainContext, kmUnit);
} else {
subView = (ObjectSubViewNew) convertView;
}
 
}

?


Le jeudi 28 juin 2012 14:27:14 UTC+2, jean-francois garreau a écrit :
>
> Hi everyone, 
>
> I have a problem for optimzing my application. More particulary, an 
> ExpandListView. I found the scroll animation pretty slow compare to what I 
> can see on other application. I have done severals optimizations yet but 
> now I'm faced to a lack of idea for have a fluent scroll...
>
> What have done : 
>
>1. First i start to create CustomView inherting from View
>2. I saw that in log I have lots of GC
>3. I have use allocationTracket in DDMS in order to see what are the 
>object created who could cause my GC
>4. I identify lots of instanciations of String so I've modify my model 
>in order to carry all the string i need in order to avoid new creations of 
>String
>5. I also try to write a reusable object corresponding to a drawable 
>instruction in order to skim throught all instruction during the draw 
> method
>
>
> In order to gives you all information for helping me with my code, here is 
> a litle piece of functionnal.
>
> My app is an application which gives you the movies showtimes near your 
> position. The expand list show thoses informations :
>
>  *Name Cinema :   [Image]*
>  distance  
>
> --
> *Movie Name 1 :* time
> passed time 1 | passed time 2 | *nearest time* | 
> futur time 1 | futur time 2 
> 
> -
> *Movie Name 2 :* time
> passed time 1 | passed time 2 | *nearest time* | 
> futur time 1 | futur time 2 
> 
> -
>
>
> etc.
>
> As you can see, on each movie I list all showtimes for the cinema and I 
> have a diferent display according to the current time
>
> In term of Model Object, I have this structure in my adapter : 
>
> ArrayList theaterList; // The list of my cinema
> HashMap mapMovie; // An hashmap which gives me the movie 
> corresponding to an id
>
>
> The problem I'm facing now is that when i look at the log, I still have 
> lots of GC... and when i looked to the allocationTracker i see that :
>
> In first position comes android.graphic.Bitmap from method nativeCreate 
> and it's corresponding stack is : 
>
>> android.graphics.Bitmap nativeCreate Bitmap.java -2 true 
>> android.graphics.Bitmap createBitmap Bitmap.java 477 false 
>> android.view.View buildDrawingCache View.java 6599 false 
>> android.view.View getDrawingCache View.java 6450 false 
>> android.view.ViewGroup drawChild ViewGroup.java 1571 false 
>> android.view.ViewGroup dispatchDraw ViewGroup.java 1373 false 
>> android.widget.AbsListView dispatchDraw AbsListView.java 1545 false 
>> android.widget.ListView dispatchDraw ListView.java 3138 false 
>> android.widget.ExpandableListView dispatchDraw ExpandableListView.java 
>> 229 false 
>> android.view.View draw View.java 7008 false 
>> android.widget.AbsListView draw AbsListView.java 2669 false 
>> android.view.ViewGroup drawChild ViewGroup.java 1646 false 
>> android.view.ViewGroup dispatchDraw ViewGroup.java 1373 false 
>> android.view.ViewGroup drawChild ViewGroup.java 1644 false 
>> android.view.ViewGroup dispatchDraw ViewGroup.java 1373 false 
>> android.view.ViewGroup drawChild ViewGroup.java 1644 false 
>
>
> In second position comes lots of  android.widget.ExpandableListPosition 
> comming from getRecycleCreate the stack is : 
>
>> android.widget.ExpandableListPosition getRecycledOrCreate 
>> ExpandableListPosition.java 121 false 
>> android.widget.ExpandableListPosition obtain ExpandableListPosition.java 
>> 107 false 
>> android.widget.ExpandableListConnector$PositionMetadata obtain 
>> ExpandableListConnector.java 988 false 
>> android.widget.ExpandableListConnector getUnflattenedPos 
>> ExpandableListConnector.java 176 false 
>> android.widget.ExpandableListConnector getItemViewType 
>> ExpandableListConnector.java 464

Re: [android-developers] Question about AccountManager and OAuth authentication with Google App Engine

2012-06-19 Thread Francois Masurel
Hi Nokolay,

Thanx for your answer.

I'm already using OAuth 1.0 with my Android/GAE app.

I guess I'll have to go back to ClientLogin until GAE becomes OAuth 2.0 
compatible.

François

On Tuesday, June 19, 2012 5:58:51 AM UTC+2, Nikolay Elenkov wrote:
>
> On Tue, Jun 19, 2012 at 12:57 PM, Nikolay Elenkov 
>  wrote: 
> > On Mon, Jun 18, 2012 at 7:33 PM, Francois Masurel wrote: 
> >> Hi Mukesh, 
> >> 
> >> Have you found a solution on this? 
> >> 
> >> I'm desperately trying to implement it on my Android app without 
> success. 
> >> 
> > 
> > It seems GAE doesn't currently support OAuth2 for authentication, so you 
> have 
> > to use ClientLogin. You can get an admin token with this tokenType, but 
> that's 
> > not useful for authenticating users (that's what GAE command line tools 
> use to 
> > upload, etc. apps). 
> > 
> > "oauth2:https://www.googleapis.com/auth/appengine.admin"; 
>
> BTW, it does support OAuth 1.0, here's an article describing how to set it 
> up: 
>
>
> http://ikaisays.com/2011/05/26/setting-up-an-oauth-provider-on-google-app-engine/
>  
>

-- 
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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Question about AccountManager and OAuth authentication with Google App Engine

2012-06-18 Thread Francois Masurel
Hi Mukesh,

Have you found a solution on this?

I'm desperately trying to implement it on my Android app without success.

Thanx for your help.

Francois
Bordeaux, France

On Monday, January 9, 2012 8:36:08 AM UTC+1, Mukesh Srivastav wrote:
>
> Hi Rishi,
>
> I had tried the above concept but i couldn't succeeded. I then held up 
> using OAuth 2.0 authentication from the application level. 
>
> I am waiting if some one answer this query.
>
> -- 
> Warm Regards,
> *Mukesh Kumar*,
> Android Consultant/Freelancer,
> India,Hyderabad.
>
> On Sat, Jan 7, 2012 at 2:27 AM, Rishi Arora wrote:
>
>> I have an Android App that currently authenticates with a Google App 
>> Engine App using an AccountManager instance.  I call 
>> AccountManager.getAuthToken() with token type = "ah", as described in Nick 
>> Johnson's blog (
>> http://blog.notdot.net/2010/05/Authenticating-against-App-Engine-from-an-Android-app),
>>  
>> and this works perfectly fine.  The end-user does not have to enter any 
>> credentials in my android app.  The user has a configured Google account in 
>> Android system settings, and through the Account Manager I am able to 
>> authenticate with Google App Engine.
>>
>> I'd like to change this a bit, to use OAuth instead of Google Accounts 
>> API, in Google App Engine configuration.  And with this change, I'm 
>> wondering if there's a way to still not have the user provide credentials 
>> at all, and use the Google account configured in Android system settings to 
>> retrieve an OAuth access token.  Anybody know how to do this?  More 
>> specifically, where do I tell AccountManager what the OAuth consumer key 
>> and consumer secret is?  I have heard that AccountManager supports OAuth 
>> 2.0 3-legged authentication.  This is what I'd like to implement, along 
>> with the requirement that the user should not be asked to provide Google 
>> account credentials, as long as there a Google account configured in 
>> Android system settings.
>>
>> Many thanks in advance.
>> Rishi.
>>
>> -- 
>> 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 email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
>
>
>
>  

-- 
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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] connecter mon htc à gmail par internet

2012-02-21 Thread francois
comment connecter mon htc par internet ?

-- 
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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: 32bit PNG in CS5

2012-02-05 Thread Jean-Francois Im
Set Photoshop to use 8 bits and use File > Save for Web and Devices...
to export your file.

On Sat, Feb 4, 2012 at 18:09, Oliviu Vais  wrote:
> I dont get it. So what do i have to do?
>
> On Feb 4, 10:38 pm, Romain Guy  wrote:
>> In PS 8 bits means 8 bits per channel. So 8 bits * 4 (RGBA) = 32 bits.
>>
>> On Sat, Feb 4, 2012 at 4:07 AM, Oliviu Vais  wrote:
>> > I am trying to make an icon for my android app. In the developers
>> > guide it says: "Launcher icons should be 32-bit PNGs with an alpha
>> > channel for transparency." I've made the icon in CS5 but i cannot save
>> > it as PNG if i select 32 bit. If i select 16 or 8 bit i can save in
>> > PNG. Any ideas?
>>
>> > --
>> > 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 email to
>> > android-developers+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> >http://groups.google.com/group/android-developers?hl=en
>>
>> --
>> Romain Guy
>> Android framework engineer
>> romain...@android.com
>
> --
> 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 email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] 32bit PNG in CS5

2012-02-05 Thread Jean-Francois Im
I think the text in CS5 is a bit misleading, it refers to 32 bit per
channel(ie. 96 bits for R, G and B all together) whereas Android
expects 32 bit total(ie. 8 bit per channel, 32 bits total for R, G, B
and A).

In Photoshop CS5, you can save it as a PNG with an alpha channel using
File > Save for Web & Devices... and making sure the transparency
checkbox is checked.

On Sat, Feb 4, 2012 at 07:07, Oliviu Vais  wrote:
> I am trying to make an icon for my android app. In the developers
> guide it says: "Launcher icons should be 32-bit PNGs with an alpha
> channel for transparency." I've made the icon in CS5 but i cannot save
> it as PNG if i select 32 bit. If i select 16 or 8 bit i can save in
> PNG. Any ideas?
>
> --
> 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 email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Giant Android Device seen at I/O

2011-05-20 Thread Francois Masurel
One is available there and it has a touch screen :

http://www.toutpourlavideo.com/totem-android-p-383.html

Francois

-- 
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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] please help me

2011-03-21 Thread francois jacob
Hi there,

  I'm a french android developer. I've published an app in the market
(DRAWTOOLS). I know french websites where to publish test and reviews
of my app, but i don't know for other countries. That's not so easy to
find... So I'm looking for some people who can help give me links to
such websites, and can help me to publish on those sites (when not in
english language).

  Then I could help you for french publishing and french translation
for your app if you need. I think this could be interresting for both
of us.

Here's the link for my app:
https://market.android.com/details?id=com.zarathoustroy.drawTools

Thanks in advance,
François

-- 
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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] ActivityInstrumentationTestCase2 and FragmentActivity

2011-03-11 Thread Jean-Francois
Hi,

I just started experimenting with the new fragment static API.
Whenever I try to use ActivityInstrumentationTestCase2 with a
FragmentActivity I get a "RuntimeException: Exception during
construction error". Is it supposed to work?

Cheers,
Jean-Francois

-- 
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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Best way to swap activities

2010-08-15 Thread Francois Masurel
Did you try the FLAG_ACTIVITY_NO_HISTORY intent flag ?

Here is a nice article about intent flags :

http://blog.akquinet.de/2010/04/15/android-activites-and-tasks-series-intent-flags/

Francois

On 15 août, 16:04, dm1973  wrote:
> Right now I have 2 activities (A+B) and what I would like is for only
> 1 of them ever to be on the stack (If A shows B, I want the back
> button from B to go to the home screen not A). Is their a good way of
> doing this with activities Or should I change my app to be a bunch of
> views?

-- 
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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Will native libs built with the NDK work with the Nexus One?

2010-01-06 Thread Francois Hamel
Basically is the ARMv7 instruction set somehow an extension of the
ARMv5 or is it completely different? I'd like to get started building
somewhat large components of my game in it since the JVM seems to be
slow as hell from what I've read.

And if anyone did something with it how did you manage to debug/step
into your native lib while debugging your application written in java?
Am I forced to build a Win32 application as well using my lib for
debug purposes?
-- 
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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Dynamically change widget background

2009-07-06 Thread Francois DESLANDES
Hello everybody,



I am working a widget…



I'd like to change my widget background image dynamically, is it possible ?



I tried theme & style, it doesn't want to work. It doesn't show any
background image (see code sample below)



I tried RemoteViews.setImageViewResource on an ImageView filling the widget,
but i doesn't strech my 9patch image correctly (and it doesn't seems to
change background, it add another image).



Is there a solution ?



Additionnal question : is it possible to use an external (sdcard) 9patch
image as background ? if yes : how ?





Thanks











My test with Themes :



-

layout.xml





http://schemas.android.com/apk/res/android";

android:id="@+id/widget"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:focusable="true"

style="?attr/widgetBackground"

>







-

attrbs.xml











-

styles.xml











@style/blackBackground







@style/whiteBackground









@drawable/widget_bg_normal_white





...



-

widget code



public void onUpdate(Context context, AppWidgetManager appWidgetManager,
int[] appWidgetIds) {



// If no specific widgets requested, collect list of all

if (appWidgetIds == null) {

appWidgetIds = appWidgetManager.getAppWidgetIds(new ComponentName(context,
LargeAppWidget.class));

}



context.setTheme(R.style.ThemeKxLight);



// Request update for these widgets and launch updater service

UpdateService.requestUpdate(appWidgetIds);

context.startService(new Intent(context, UpdateService.class));

}

--~--~-~--~~~---~--~~
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 email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: OutOfMemoryError

2009-06-20 Thread Francois

Answering to myself.
After doing a long search for all the *.bat on my C: drive, I have
found it. But it is located in the 1.1 Android SDK. So I guess it is
out of date now.
Does anyone else have an idea?

Thanks, Francois
--~--~-~--~~~---~--~~
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 email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: OutOfMemoryError

2009-06-20 Thread Francois

Hi,

Can you please tell me where is located this dx.bat? I cant find it!

Thanks, Francois
--~--~-~--~~~---~--~~
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 email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] OutOfMemoryError

2009-06-19 Thread Francois

Hello all,

For my project (quite a big project), an Android application create, I
need to compile the sources from a command line. So I have followed
the explanations found in the dev guide.
I have set JAVA_HOME to a short directory name, and created the
project with the Android command.

When I compile the project, with "ant debug" as stated in the doc, it
works fine until it reaches the dex creator.

[echo] Convertine compiled files and external libraries into bin/
classes.dex

It seems to work for like 10 seconds, then it stops with this error:

UNEXPECTED TOP-LEVEL ERROR:
java.lang.OutOfMemoryError: Java heap space

OK, after searching on the internet, I have tried to set the heap of
my Java VM, by changing the ANT_OPTS environement variable to:
set ANT_OPTS=-Xms512m -Xmx1024m (I have tried different values).

I still get the same error.

Is it a known bug? Is there something I can to do avoid it?

Thanks in advance for you advices.

Francois

--~--~-~--~~~---~--~~
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 email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Davik error

2009-06-08 Thread Francois

Hello,

Some of you might remember my previous message. After upgrading to
v1.5, I had the Davik error under Eclipse. I thought it was do to the
compilation in 1.1. No, I was mistaken.
After a lot of hassle, I found out.
The error comes if you have unticked the "build automatically" option
in Eclipse.
If you restore it to automatic build, it works very well.
I must be the only one on earth to untick this option. I prefer it as
it gives more control on the builds.

I hope this can help people in my situation.

Francois

--~--~-~--~~~---~--~~
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 email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Conversion to Davik failed with error 1

2009-05-31 Thread Francois

Hello all,

I am answering to myself here.

If I create a new 1.5 project it works. No more errors.
If I create a new 1.1 project it does not work, I get the error.

So I think there is definitively a bug in the 1.1 platform kit.

Hope this can help anyone facing the same problem!

Francois

--~--~-~--~~~---~--~~
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 email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Conversion to Davik failed with error 1

2009-05-30 Thread Francois

Hello,

I have searched the forums, but none of the solutions proposed cured
my problem.

Since I have upgraded to version 1.5 of the dev kit (and updated my
Eclipse plugin), I cannot compile my project.
I get this error, followed by :

Project 'RuntimeAndroid' is missing required source folder 'gen'
The project cannot be built until build errors are resolved

This is very strange, as after the build (which had errors) I HAVE a
gen folder in my project! And the subdirectories of this gen folder
have been created (com\clickteam\runtime) and a R.java file is present
in the folder with a correct content!

Something is definitively going wrong here.

Can you help me? I am stuck...

Francois
--~--~-~--~~~---~--~~
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 email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] NullPointerException in ViewRoot.draw

2009-05-18 Thread Francois

Hello,

I have a fairly complex application that I ported from Java. I am now
debugging it.
When I launch the code under Eclipse, I get a NullPointerException in
ViewRoot.draw / ViewRoot.performTraversals / ViewRoot.handleMessage /
ViewRoot(Handler).diwpatchMessage at random times when the code runs.
Not always at the same position.
The layout of the application is very simple, I just have a
SurfaceView derived class in the display.
This is strange as I used the same layout in a simple application that
moves a circle on the screen, and I did not get these messages.

Can you help me please?

Thanks, Francois

--~--~-~--~~~---~--~~
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 email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---