[android-developers] Re: Menu Not Showing

2013-07-24 Thread Felix Garcia Lainez
Thanks!! I haven't thought about this solution... Works like a charm!!

On Wednesday, July 24, 2013 2:30:51 PM UTC+2, Piren wrote:
>
> instead of trying to somehow trick the system to duplicate the same menu 
> item, just add those yourself.
> keep the ones you want to show as icons as you do them now (but better yet 
> use "always" to prevent from the duplicate to show in the overflow menu,), 
> then add copies of those to the menu with "never".
>
>
>
>
> On Wednesday, July 24, 2013 2:07:02 PM UTC+3, Felix Garcia Lainez wrote:
>>
>> BTW, if I set some menu item property to android:showAsAction="never" then 
>> it is shown in overflow menu (It is the expected behavior). What I don't 
>> know if it is very standard or possible is to show all actions in overflow 
>> menu and actionbar buttons independently of the number of items, etc
>>
>> On Wednesday, July 24, 2013 10:00:01 AM UTC+2, Piren wrote:
>>>
>>> everything you need to know is here:
>>> http://developer.android.com/guide/topics/ui/menus.html
>>>
>>> On Tuesday, July 23, 2013 9:45:39 PM UTC+3, Felix Garcia Lainez wrote:
>>>>
>>>> Hi,
>>>>
>>>> The case is that I have several activities in which I use actionbar 
>>>> successfully, showing different actions on top (with icons), but when I 
>>>> click on menu key (galaxy s4) then the menu options is not shown... I 
>>>> don't 
>>>> know really if this is the desired behavior but I would like to have both 
>>>> available, as in my device I can't see long texts on action bar options...
>>>>
>>>> I am creating the menu in the following way (I have also other menus in 
>>>> other activities created with onPrepareOptionsMenu)
>>>>
>>>> @Override
>>>>
>>>> public boolean onCreateOptionsMenu(Menu menu) 
>>>>
>>>> {
>>>>
>>>> MenuInflater inflater = getMenuInflater();
>>>>
>>>> inflater.inflate(R.menu.my_menu, menu);
>>>>
>>>> //super.onCreateOptionsMenu(menu);
>>>>
>>>> return true;
>>>>
>>>> }
>>>>
>>>>
>>>> And the content of my_menu is this
>>>>
>>>>
>>>> 
>>>>
>>>> http://schemas.android.com/apk/res/android";>
>>>>
>>>> >>>
>>>>   android:icon="@drawable/ic_menu_save"
>>>>
>>>>   android:title="@string/menu_save" 
>>>>
>>>>   android:showAsAction="ifRoom"/>
>>>>
>>>> 
>>>>
>>>>
>>>>
>>>> What I have found is that if I add more items to the menu (4 or 5) then 
>>>> it works... 
>>>>
>>>>
>>>> Am I missing something? Is this the desired behavior? If it is the 
>>>> case, how could I take advantage of showing both kind of menus?
>>>>
>>>>
>>>> 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@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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Menu Not Showing

2013-07-24 Thread Felix Garcia Lainez
BTW, if I set some menu item property to android:showAsAction="never" then 
it is shown in overflow menu (It is the expected behavior). What I don't 
know if it is very standard or possible is to show all actions in overflow 
menu and actionbar buttons independently of the number of items, etc

On Wednesday, July 24, 2013 10:00:01 AM UTC+2, Piren wrote:
>
> everything you need to know is here:
> http://developer.android.com/guide/topics/ui/menus.html
>
> On Tuesday, July 23, 2013 9:45:39 PM UTC+3, Felix Garcia Lainez wrote:
>>
>> Hi,
>>
>> The case is that I have several activities in which I use actionbar 
>> successfully, showing different actions on top (with icons), but when I 
>> click on menu key (galaxy s4) then the menu options is not shown... I don't 
>> know really if this is the desired behavior but I would like to have both 
>> available, as in my device I can't see long texts on action bar options...
>>
>> I am creating the menu in the following way (I have also other menus in 
>> other activities created with onPrepareOptionsMenu)
>>
>> @Override
>>
>> public boolean onCreateOptionsMenu(Menu menu) 
>>
>> {
>>
>> MenuInflater inflater = getMenuInflater();
>>
>> inflater.inflate(R.menu.my_menu, menu);
>>
>> //super.onCreateOptionsMenu(menu);
>>
>> return true;
>>
>> }
>>
>>
>> And the content of my_menu is this
>>
>>
>> 
>>
>> http://schemas.android.com/apk/res/android";>
>>
>> >
>>   android:icon="@drawable/ic_menu_save"
>>
>>   android:title="@string/menu_save" 
>>
>>   android:showAsAction="ifRoom"/>
>>
>> 
>>
>>
>>
>> What I have found is that if I add more items to the menu (4 or 5) then 
>> it works... 
>>
>>
>> Am I missing something? Is this the desired behavior? If it is the case, 
>> how could I take advantage of showing both kind of menus?
>>
>>
>> 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@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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Menu Not Showing

2013-07-24 Thread Felix Garcia Lainez
Yes, I have read but still have this doubt. Also read actionbar guide and I 
didn't see any reference to this specific issue...

Please could you give me a response? 

Thanks so much!

On Wednesday, July 24, 2013 10:00:01 AM UTC+2, Piren wrote:
>
> everything you need to know is here:
> http://developer.android.com/guide/topics/ui/menus.html
>
> On Tuesday, July 23, 2013 9:45:39 PM UTC+3, Felix Garcia Lainez wrote:
>>
>> Hi,
>>
>> The case is that I have several activities in which I use actionbar 
>> successfully, showing different actions on top (with icons), but when I 
>> click on menu key (galaxy s4) then the menu options is not shown... I don't 
>> know really if this is the desired behavior but I would like to have both 
>> available, as in my device I can't see long texts on action bar options...
>>
>> I am creating the menu in the following way (I have also other menus in 
>> other activities created with onPrepareOptionsMenu)
>>
>> @Override
>>
>> public boolean onCreateOptionsMenu(Menu menu) 
>>
>> {
>>
>> MenuInflater inflater = getMenuInflater();
>>
>> inflater.inflate(R.menu.my_menu, menu);
>>
>> //super.onCreateOptionsMenu(menu);
>>
>> return true;
>>
>> }
>>
>>
>> And the content of my_menu is this
>>
>>
>> 
>>
>> http://schemas.android.com/apk/res/android";>
>>
>> >
>>   android:icon="@drawable/ic_menu_save"
>>
>>   android:title="@string/menu_save" 
>>
>>   android:showAsAction="ifRoom"/>
>>
>> 
>>
>>
>>
>> What I have found is that if I add more items to the menu (4 or 5) then 
>> it works... 
>>
>>
>> Am I missing something? Is this the desired behavior? If it is the case, 
>> how could I take advantage of showing both kind of menus?
>>
>>
>> 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@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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Obfuscating Android Library Project

2013-07-23 Thread Felix Garcia Lainez
But how can I do it directly in the project? I know I can use Proguard as 
and standalone app, but I think that it doesn't work in Android Library 
Projects...

On Sunday, July 21, 2013 8:52:17 AM UTC+2, Piren wrote:
>
> I haven't tried to obfuscate a jar file after it is made, but you 
> can definitely obfuscate it when you build the library project. Just 
> remember to put up rules as to not obfuscate all the public methods you'd 
> like to use as the API for the library (which i guess you forgot).
>
> On Friday, July 19, 2013 6:11:04 PM UTC+3, Felix Garcia Lainez wrote:
>>
>> Hi,
>>
>> The case is that we have an Android Library Project that generates a jar 
>> files, being included this jar file as input library of other Android 
>> Library project that we distribute to several clients. The case is that I 
>> would like to obfuscate the code of the first Library Project before 
>> sending to the clients, of course without breaking the behavior of the 
>> code. I have read that ProGuard obfuscation is done on the process of 
>> building .apk on Android applications, but didn't found a way to do the 
>> same on Android Library projects.
>>
>> I have tried the idea shown in the following links, achieving the 
>> obfuscate the .jar generated by the first library, but after that it 
>> doesn't link correctly with a test Android app.
>>
>> http://proguard.sourceforge.net/index.html#manual/examples.html
>> http://proguard.sourceforge.net/index.html#manual/usage.html
>>
>> My question is if it possible to do what I want, what would be the best 
>> way, and how to do this.
>>
>> 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@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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Menu Not Showing

2013-07-23 Thread Felix Garcia Lainez
Hi,

The case is that I have several activities in which I use actionbar 
successfully, showing different actions on top (with icons), but when I 
click on menu key (galaxy s4) then the menu options is not shown... I don't 
know really if this is the desired behavior but I would like to have both 
available, as in my device I can't see long texts on action bar options...

I am creating the menu in the following way (I have also other menus in 
other activities created with onPrepareOptionsMenu)

@Override

public boolean onCreateOptionsMenu(Menu menu) 

{

MenuInflater inflater = getMenuInflater();

inflater.inflate(R.menu.my_menu, menu);

//super.onCreateOptionsMenu(menu);

return true;

}


And the content of my_menu is this




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







What I have found is that if I add more items to the menu (4 or 5) then it 
works... 


Am I missing something? Is this the desired behavior? If it is the case, 
how could I take advantage of showing both kind of menus?


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@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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Obfuscating Android Library Project

2013-07-23 Thread Felix Garcia Lainez
Yes I know how it works... What I said is that doesn't work as it does with 
Android application projects...

http://stackoverflow.com/questions/8088958/how-to-obfuscate-an-android-library-jar-file-using-proguard-in-eclipse

On Monday, July 22, 2013 12:27:06 PM UTC+2, Piren wrote:
>
> it works fine (as reiterated by Ourida).
>
> According to your other comments i'm not sure if you're fully aware of how 
> to use the obfuscation tool or what it does... i suggest you read up on 
> some material on the subject before continuing. 
>
> On Monday, July 22, 2013 12:59:04 PM UTC+3, Felix Garcia Lainez wrote:
>>
>> But how can I do it directly in the project? I know I can use Proguard as 
>> and standalone app, but I think that it doesn't work in Android Library 
>> Projects...
>>
>> On Sunday, July 21, 2013 8:52:17 AM UTC+2, Piren wrote:
>>>
>>> I haven't tried to obfuscate a jar file after it is made, but you 
>>> can definitely obfuscate it when you build the library project. Just 
>>> remember to put up rules as to not obfuscate all the public methods you'd 
>>> like to use as the API for the library (which i guess you forgot).
>>>
>>> On Friday, July 19, 2013 6:11:04 PM UTC+3, Felix Garcia Lainez wrote:
>>>>
>>>> Hi,
>>>>
>>>> The case is that we have an Android Library Project that generates a 
>>>> jar files, being included this jar file as input library of other Android 
>>>> Library project that we distribute to several clients. The case is that I 
>>>> would like to obfuscate the code of the first Library Project before 
>>>> sending to the clients, of course without breaking the behavior of the 
>>>> code. I have read that ProGuard obfuscation is done on the process of 
>>>> building .apk on Android applications, but didn't found a way to do the 
>>>> same on Android Library projects.
>>>>
>>>> I have tried the idea shown in the following links, achieving the 
>>>> obfuscate the .jar generated by the first library, but after that it 
>>>> doesn't link correctly with a test Android app.
>>>>
>>>> http://proguard.sourceforge.net/index.html#manual/examples.html
>>>> http://proguard.sourceforge.net/index.html#manual/usage.html
>>>>
>>>> My question is if it possible to do what I want, what would be the best 
>>>> way, and how to do this.
>>>>
>>>> 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@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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Obfuscating Android Library Project

2013-07-22 Thread Felix Garcia Lainez
Yes I understand... I understand that if for instance I pass an String 
"aaafddfffd" to a function call it will not be obfuscated by default, right?

On Monday, July 22, 2013 11:42:15 AM UTC+2, Ourida wrote:
>
> One obvious thing, you can't work with an obfuscated jar in your project 
> in dev phase. Because the developer who must use, let's say Android Library 
> Project obfuscated that contains a class named Class1, after obfuscation 
> its name will become another thing, so the developer won't be able to know 
> this API. 
>
> Another thing, adding any jar to your android project and launching 
> obfuscation process, all those jars will be obfuscated. So, if an API is 
> needed to be obfuscated, it must not be referenced in proguard config.
>
> After doing this, you must test your android application. If reflexion is 
> used in jar that will completely become obfuscated, bad things will happen. 
> Hence, Classes referenced by reflexion must be keeped. 
>
> Best regards.
>
> On Friday, July 19, 2013 3:11:04 PM UTC, Felix Garcia Lainez wrote:
>>
>> Hi,
>>
>> The case is that we have an Android Library Project that generates a jar 
>> files, being included this jar file as input library of other Android 
>> Library project that we distribute to several clients. The case is that I 
>> would like to obfuscate the code of the first Library Project before 
>> sending to the clients, of course without breaking the behavior of the 
>> code. I have read that ProGuard obfuscation is done on the process of 
>> building .apk on Android applications, but didn't found a way to do the 
>> same on Android Library projects.
>>
>> I have tried the idea shown in the following links, achieving the 
>> obfuscate the .jar generated by the first library, but after that it 
>> doesn't link correctly with a test Android app.
>>
>> http://proguard.sourceforge.net/index.html#manual/examples.html
>> http://proguard.sourceforge.net/index.html#manual/usage.html
>>
>> My question is if it possible to do what I want, what would be the best 
>> way, and how to do this.
>>
>> 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@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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Obfuscating Android Library Project

2013-07-22 Thread Felix Garcia Lainez
What about using aar? Someone has played with this?

http://www.flexlabs.org/2013/06/using-local-aar-android-library-packages-in-gradle-builds

On Friday, July 19, 2013 5:11:04 PM UTC+2, Felix Garcia Lainez wrote:
>
> Hi,
>
> The case is that we have an Android Library Project that generates a jar 
> files, being included this jar file as input library of other Android 
> Library project that we distribute to several clients. The case is that I 
> would like to obfuscate the code of the first Library Project before 
> sending to the clients, of course without breaking the behavior of the 
> code. I have read that ProGuard obfuscation is done on the process of 
> building .apk on Android applications, but didn't found a way to do the 
> same on Android Library projects.
>
> I have tried the idea shown in the following links, achieving the 
> obfuscate the .jar generated by the first library, but after that it 
> doesn't link correctly with a test Android app.
>
> http://proguard.sourceforge.net/index.html#manual/examples.html
> http://proguard.sourceforge.net/index.html#manual/usage.html
>
> My question is if it possible to do what I want, what would be the best 
> way, and how to do this.
>
> 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@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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Obfuscating Android Library Project

2013-07-19 Thread Felix Garcia Lainez
Hi,

The case is that we have an Android Library Project that generates a jar 
files, being included this jar file as input library of other Android 
Library project that we distribute to several clients. The case is that I 
would like to obfuscate the code of the first Library Project before 
sending to the clients, of course without breaking the behavior of the 
code. I have read that ProGuard obfuscation is done on the process of 
building .apk on Android applications, but didn't found a way to do the 
same on Android Library projects.

I have tried the idea shown in the following links, achieving the obfuscate 
the .jar generated by the first library, but after that it doesn't link 
correctly with a test Android app.

http://proguard.sourceforge.net/index.html#manual/examples.html
http://proguard.sourceforge.net/index.html#manual/usage.html

My question is if it possible to do what I want, what would be the best 
way, and how to do this.

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@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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Application Ranking?

2011-07-02 Thread Felix Garcia Lainez
Ahhh... Ok.. I was thinking on a fixed ranking by country like
AppStore. If there are more variables like carrier, device, etc then i
understand is possible that there are not tools for that..

About searching manually the position i had already thought about
that :)

Thanks!

On 2 jul, 19:38, John Coryat  wrote:
> One problem with "rank" is it can change depending on your location, carrier
> or even device.
>
> You can get an idea of what a rank for an app is by going into the market,
> selecting "all apps" and start counting, manually, until you find the app
> your interested in. That's pretty painful, especially if your app is beyond
> about 800 in overall rank as that's the maximum (or used to be) number
> listed in the "all" category.
>
> -John Coryat

-- 
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: MapView Overlay problem

2011-07-02 Thread Felix Garcia Lainez
Ok thanks! I will take a look..

On 1 jul, 17:34, Kostya Vasilyev  wrote:
> TraceView and dmtracedump:
>
> http://developer.android.com/guide/developing/debugging/debugging-tra...
>
> 01.07.2011 19:26, TreKing ?:
>
>
>
> >     How should i profile this case? Really as i said there is not
> >     any strange thing on the code... Simply a map with an overlay...
>
> > No idea. Look at the tools section in the docs and see what's
> > available to you. I *think* there some kind of profiling tool, but I
> > don't know for sure. If nothing else, you can throw a crude profiler
> > together fairly easily to track how long a given block of code takes.
>
> --
> Kostya Vasilyev

-- 
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: Application Ranking?

2011-07-02 Thread Felix Garcia Lainez
Nobody knows about some site/tool to check in which position is any
app on market? It should be very common, no?

On 29 jun, 13:38, Felix Garcia Lainez  wrote:
> Hi,
>
> Is there any web site i could find out what is the ranking of my
> application on Android Market? For instance on iPhone i use this 
> onehttp://applyzer.com/
>
> Regards.

-- 
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: MapView Overlay problem

2011-07-01 Thread Felix Garcia Lainez
I have improved the responsiveness using some of MyTrack approaches,
but i am still getting this exception, simply doing zoom in and zoom
out sometimes

java.lang.OutOfMemoryError: bitmap size exceeds VM budget
at android.graphics.Bitmap.nativeCreate(Native Method)
at android.graphics.Bitmap.createBitmap(Bitmap.java:574)
at com.google.android.maps.ZoomHelper.createSnapshot(ZoomHelper.java:
444)
at com.google.android.maps.ZoomHelper.doZoom(ZoomHelper.java:151)
at com.google.android.maps.ZoomHelper.doZoom(ZoomHelper.java:140)
at com.google.android.maps.MapView.doZoom(MapView.java:1478)
at com.google.android.maps.MapView.doZoom(MapView.java:1487)
at com.google.android.maps.MapView$6.onZoom(MapView.java:1442)
at android.widget.ZoomButtonsController
$3.onClick(ZoomButtonsController.java:268)
at android.view.View.performClick(View.java:2408)
at android.view.View$PerformClick.run(View.java:8817)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:144)
at android.app.ActivityThread.main(ActivityThread.java:4937)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
at dalvik.system.NativeStart.main(Native Method)

On 1 jul, 15:49, JP  wrote:
> You could conceivably use a change in zoom level to drive the thinning
> of the poly lines, or other factors that help you determine the level
> of thinning. This is not trivial - you'll want to run the algorithm
> outside of your Overlay.draw() and probably not draw any lines until
> the algorithm has finished. Off the cuff, I figure you'll have to use
> AsyncTask for that, so there's not quick and dirty way (that I can
> see) if you want to get this right. In any case, you could study
> MyTracks to find out how they've solved this problem.
>
> On Jul 1, 2:00 am, Felix Garcia Lainez 
> wrote:
>
>
>
> > Hi,
>
> > So you are doing something similar to my draw method?
>
> > I have just tested without alpha and anti-alising and it is faster,
> > but when there is big zoom level the mapactivity is closed (i think
> > this is due to memory usage)
>
> > How should i profile this case? Really as i said there is not any
> > strange thing on the code... Simply a map with an overlay...
>
> > Thanks!
>
> > On 1 jul, 01:39, TreKing  wrote:
>
> > > On Thu, Jun 30, 2011 at 5:47 PM, Felix Garcia Lainez <
>
> > > fgarcialai...@gmail.com> wrote:
> > > > About the size with 300 or 400 GeoPoints i am already having problems...
> > > > The method isOnePointVisible is an optimization i did in order to try to
> > > > improve performance (seems to work fine).
>
> > > So I have a very similar overlay to draw routes, with no optimization, 
> > > and I
> > > just loaded 7 or 8 of them with no apparent slow down on my Nexus One.
>
> > > Here are some thoughts:
> > > - What device are you running on?
> > > - Are you debugging or is this in release mode?
> > > - Do you need anti-aliasing? I think that might slow it down.
> > > - Do you need alpha? That would definitely slow down drawing. Set that to
> > > solid and see if if helps.
>
> > > If none of that helps you're going to have to profile your code to get a
> > > clear picture of what's taking so long.
>
> > > ---
> > >  --
> > > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> > > transit tracking app for Android-powered devices

-- 
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: MapView Overlay problem

2011-07-01 Thread Felix Garcia Lainez
Ok thank you. I will try to see how they do this.

On 1 jul, 15:49, JP  wrote:
> You could conceivably use a change in zoom level to drive the thinning
> of the poly lines, or other factors that help you determine the level
> of thinning. This is not trivial - you'll want to run the algorithm
> outside of your Overlay.draw() and probably not draw any lines until
> the algorithm has finished. Off the cuff, I figure you'll have to use
> AsyncTask for that, so there's not quick and dirty way (that I can
> see) if you want to get this right. In any case, you could study
> MyTracks to find out how they've solved this problem.
>
> On Jul 1, 2:00 am, Felix Garcia Lainez 
> wrote:
>
>
>
> > Hi,
>
> > So you are doing something similar to my draw method?
>
> > I have just tested without alpha and anti-alising and it is faster,
> > but when there is big zoom level the mapactivity is closed (i think
> > this is due to memory usage)
>
> > How should i profile this case? Really as i said there is not any
> > strange thing on the code... Simply a map with an overlay...
>
> > Thanks!
>
> > On 1 jul, 01:39, TreKing  wrote:
>
> > > On Thu, Jun 30, 2011 at 5:47 PM, Felix Garcia Lainez <
>
> > > fgarcialai...@gmail.com> wrote:
> > > > About the size with 300 or 400 GeoPoints i am already having problems...
> > > > The method isOnePointVisible is an optimization i did in order to try to
> > > > improve performance (seems to work fine).
>
> > > So I have a very similar overlay to draw routes, with no optimization, 
> > > and I
> > > just loaded 7 or 8 of them with no apparent slow down on my Nexus One.
>
> > > Here are some thoughts:
> > > - What device are you running on?
> > > - Are you debugging or is this in release mode?
> > > - Do you need anti-aliasing? I think that might slow it down.
> > > - Do you need alpha? That would definitely slow down drawing. Set that to
> > > solid and see if if helps.
>
> > > If none of that helps you're going to have to profile your code to get a
> > > clear picture of what's taking so long.
>
> > > ---
> > >  --
> > > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> > > transit tracking app for Android-powered devices

-- 
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: MapView Overlay problem

2011-07-01 Thread Felix Garcia Lainez
Ok it sounds good... The problem is that i don't know what initial
value to use for "tolerance" parameter... What would you recommend? 5
meters?

Thanks!

On 1 jul, 03:41, JP  wrote:
> I haven't had to use the Douglas-Peucker algorithm, but I understand
> others have so with 
> success.http://en.wikipedia.org/wiki/Ramer%E2%80%93Douglas%E2%80%93Peucker_al...
> This algorithm will thin out the number of poly lines.
> Apparently there's an open source implementation in the Android
> MyTracks app, licensed under Apache 
> 2.0.http://code.google.com/p/mytracks/source/browse/MyTracks/src/com/goog...
> It's in the method decimate().
> JP
>
> On Jun 30, 2:46 pm, Felix Garcia Lainez 
> wrote:
>
>
>
> > Hello,
>
> > The case is that i want to show a route on a MapView. Something simple
> > at first sight, simply i created a class that extends overlay and
> > implement draw method. On this method i iterate over an array of
> > GeoPoints and using a canvas y connect all points. It works fine more
> > or less, but i am having issues when drawing long routes with many
> > points. The problem is that application is very slow, and sometimes
> > MapActivity is closed simply doing a zoom in or zoom out on the map
> > with the route drawn...
>
> > My question is how to improve performance on this situation
>
> > 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@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: MapView Overlay problem

2011-07-01 Thread Felix Garcia Lainez
Hi,

So you are doing something similar to my draw method?

I have just tested without alpha and anti-alising and it is faster,
but when there is big zoom level the mapactivity is closed (i think
this is due to memory usage)

How should i profile this case? Really as i said there is not any
strange thing on the code... Simply a map with an overlay...

Thanks!


On 1 jul, 01:39, TreKing  wrote:
> On Thu, Jun 30, 2011 at 5:47 PM, Felix Garcia Lainez <
>
> fgarcialai...@gmail.com> wrote:
> > About the size with 300 or 400 GeoPoints i am already having problems...
> > The method isOnePointVisible is an optimization i did in order to try to
> > improve performance (seems to work fine).
>
> So I have a very similar overlay to draw routes, with no optimization, and I
> just loaded 7 or 8 of them with no apparent slow down on my Nexus One.
>
> Here are some thoughts:
> - What device are you running on?
> - Are you debugging or is this in release mode?
> - Do you need anti-aliasing? I think that might slow it down.
> - Do you need alpha? That would definitely slow down drawing. Set that to
> solid and see if if helps.
>
> If none of that helps you're going to have to profile your code to get a
> clear picture of what's taking so long.
>
> --- 
> --
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices

-- 
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: MapView Overlay problem

2011-06-30 Thread Felix Garcia Lainez
I use this code:

public class PolylineOverlay extends Overlay
{
private ArrayList polyline; // Contains set of points to be
connected.
private Paint pathPaint = null; // Paint tool that is used to draw
on the map canvas.

public PolylineOverlay(ArrayList polyline, int color)
{
this.polyline = new ArrayList(polyline);

this.pathPaint = new Paint();
this.pathPaint.setAntiAlias(true);
this.pathPaint.setStrokeWidth(4);
this.pathPaint.setColor(color);
this.pathPaint.setAlpha(120);
this.pathPaint.setStyle(Paint.Style.STROKE);
}

@Override
public void draw(Canvas canvas, MapView mView, boolean shadow)
{
if(!shadow)
{
if(polyline != null)
{
Projection projection = mView.getProjection();
Path routePath = new Path();

Point prevPoint = null;

//Add each point to the routePath.
for(GeoPoint inPoint : polyline)
{
Point outPoint = null;
outPoint = projection.toPixels(inPoint, 
outPoint);

if(polyline.indexOf(inPoint) == 0)
routePath.moveTo(outPoint.x, 
outPoint.y);
else
{
if(isOnePointVisible(prevPoint, 
outPoint, mView))
{

routePath.moveTo(prevPoint.x, prevPoint.y);

routePath.lineTo(outPoint.x, outPoint.y);
}
}

prevPoint = outPoint;
}

canvas.drawPath(routePath, pathPaint);
}
}

super.draw(canvas, mView, shadow);
}

private boolean isOnePointVisible(Point point, Point point2,
MapView mapView)
{
return (point.x > 0 && point.x < mapView.getWidth() && point.y >
0 && point.y < mapView.getHeight()) ||
(point2.x > 0 && point2.x < mapView.getWidth() && point2.y > 0
&& point2.y < mapView.getHeight());
}

@Override
public boolean onTap(GeoPoint p, MapView mapView) {
// Handle tapping on the overlay here
return false;
}
}

About the size with 300 or 400 GeoPoints i am already having
problems... The method isOnePointVisible is an optimization i did in
order to try to improve performance (seems to work fine).

Thanks!

On 1 jul, 00:16, TreKing  wrote:
> On Thu, Jun 30, 2011 at 4:46 PM, Felix Garcia Lainez <
>
> fgarcialai...@gmail.com> wrote:
> > On this method i iterate over an array of GeoPoints and using a canvas y
> > connect all points.
>
> What's your actual code?
>
> > It works fine more or less, but i am having issues when drawing long routes
> > with many points.
>
> Define "long routes" and "many points".
>
> --- 
> --
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices

-- 
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] MapView Overlay problem

2011-06-30 Thread Felix Garcia Lainez
Hello,

The case is that i want to show a route on a MapView. Something simple
at first sight, simply i created a class that extends overlay and
implement draw method. On this method i iterate over an array of
GeoPoints and using a canvas y connect all points. It works fine more
or less, but i am having issues when drawing long routes with many
points. The problem is that application is very slow, and sometimes
MapActivity is closed simply doing a zoom in or zoom out on the map
with the route drawn...

My question is how to improve performance on this situation

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@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] Application Ranking?

2011-06-29 Thread Felix Garcia Lainez
Hi,

Is there any web site i could find out what is the ranking of my
application on Android Market? For instance on iPhone i use this one
http://applyzer.com/

Regards.

-- 
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: AnimationDrawable on ItemizedOverlay

2011-06-22 Thread Felix Garcia Lainez
Ok i have done animating myself using a handler and it works. Thanks!

On 21 jun, 20:55, TreKing  wrote:
> On Tue, Jun 21, 2011 at 1:38 PM, Felix Garcia Lainez <
>
> fgarcialai...@gmail.com> wrote:
> > Yes i did, and just tested doing before and after adding ItemizedOverlay to
> > the map overlays array.
>
> Well, I'm out of ideas. If you don't get an answer to make this work the way
> it should, perhaps make you own animator for this case.
> It shouldn't be terribly difficult to make your own animated ItemizedOverlay
> by using the AnimationDrawable functions to get each frame with a timer in
> between as necessary.
>
> --- 
> --
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices

-- 
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: AnimationDrawable on ItemizedOverlay

2011-06-21 Thread Felix Garcia Lainez
Yes i did, and just tested doing before and after adding
ItemizedOverlay to the map overlays array.

On 21 jun, 20:19, TreKing  wrote:
> On Tue, Jun 21, 2011 at 12:49 PM, Felix Garcia Lainez <
>
> fgarcialai...@gmail.com> wrote:
> > Just tested and doesn't work... It is shown only the 1st image of
> > the animation list..
>
> Did you call start() on the AnimationDrawable? (More assumptions)
>
> --- 
> --
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices

-- 
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: AnimationDrawable on ItemizedOverlay

2011-06-21 Thread Felix Garcia Lainez
Just tested and doesn't work... It is shown only the 1st image of the
animation list..

On 21 jun, 19:44, TreKing  wrote:
> On Tue, Jun 21, 2011 at 12:04 PM, Felix Garcia Lainez <
>
> fgarcialai...@gmail.com> wrote:
> > But how do i do this if i haven't any imageview to show the animation?
>
> Honestly, don't know, but I would 
> assumehttp://developer.android.com/reference/android/content/res/Resources)
>
> Would return you the AnimationDrawable from the resource ID which you could
> pass to the ItemizedOverlay.
>
> Keyword being "assume" ;-). Try it.
>
> --- 
> --
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices

-- 
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: AnimationDrawable on ItemizedOverlay

2011-06-21 Thread Felix Garcia Lainez
But how do i do this if i haven't any imageview to show the animation?
I have seen this on documentation, but for an overlay is slightly
different...


 






 
Here is the code to load and play this animation.

 // Load the ImageView that will host the animation and
 // set its background to our AnimationDrawable XML resource.
 ImageView img = (ImageView)findViewById(R.id.spinning_wheel_image);
 img.setBackgroundResource(R.drawable.spin_animation);

 // Get the background, which has been compiled to an
AnimationDrawable object.
 AnimationDrawable frameAnimation = (AnimationDrawable)
img.getBackground();

 // Start the animation (looped playback by default).
 frameAnimation.start()

On 21 jun, 18:21, TreKing  wrote:
> On Tue, Jun 21, 2011 at 11:15 AM, Felix Garcia Lainez <
>
> fgarcialai...@gmail.com> wrote:
> > Is there any way to show a gif animated or animationdrawable (to do
> > something like MyLocationOverlay) on an ItemizedOverlay? Really i
> > don't see an easy way to do this...
>
> You of course tried setting an AnimationDrawable as the ItemizedOverlay's
> Drawable already ... ?
>
> --- 
> --
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices

-- 
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] AnimationDrawable on ItemizedOverlay

2011-06-21 Thread Felix Garcia Lainez
Hi,

Is there any way to show a gif animated or animationdrawable (to do
something like MyLocationOverlay) on an ItemizedOverlay? Really i
don't see an easy way to do this...

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@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: Strange exception

2011-06-16 Thread Felix Garcia Lainez
Umm... So the error is on one of my touchevents implementations for
textview objects (and subclass like edittext)?

On 16 jun, 15:00, Yahel  wrote:
> > really would be crazy, no?
>
> Crazy ? Yes ! Tedious ? Yes !
>
> But you can probably narrow it down since it is raised by a TextView
> ontouch event.
>
> Have fun :)
>
> Yahel

-- 
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: Strange exception

2011-06-16 Thread Felix Garcia Lainez
Yes, but really the problem is that the error could be in any place!!
If i have to set logs on application on each method start and end,
really would be crazy, no?

-- 
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: Strange exception

2011-06-16 Thread Felix Garcia Lainez
Really i got more crash logs of this type this morning. The case is
that this is the most frequent crash we have got on the application
(we released 2 days ago) and i would like to address it. My crash log
implementation is a subclass of UncaughtExceptionHandler, in which i
override this method public void uncaughtException(Thread t, Throwable
e) , reporting the exceptions to one of our servers.

Really the problem is that i don't know what is wrong.. It seems it is
crashing android process, but i can't figure out what could be the
reason as i don't see any line of our application...

Any ideas?

Thanks!

On this exception

On 16 jun, 04:08, TreKing  wrote:
> On Wed, Jun 15, 2011 at 7:23 PM, Felix Garcia Lainez <
>
> fgarcialai...@gmail.com> wrote:
> > I would like to know how to handle this kind of exceptions in which
> > there is not any reference to my application code, and in particular
> > what could have generated this one...
>
> Those are tricky - if it's rare (these are the only two reports you've ever
> gotten) then just ignore it. It's not worth the trouble.
> If it's frequent, then I would recommend a custom bug-reporting solution
> like ACRA that lets you include more information to track down bugs, like
> your own internal logs.
>
> --- 
> --
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices

-- 
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] Strange exception

2011-06-15 Thread Felix Garcia Lainez
Hi,

I have received an exception on my application from a user that
downloaded application from market. I know also that this user has a
HTC Glacier with API Level 8. Also i received the same exception from
other user. The problem is that i don't know how to find the place in
which is generated.. I don't see any code line in the stacktrace of
our application.

I would like to know how to handle this kind of exceptions in which
there is not any reference to my application code, and in particular
what could have generated this one...

java.lang.NullPointerException
at android.widget.TextView.onTouchEvent(TextView.java:6896)
at android.view.View.dispatchTouchEvent(View.java:3778)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:885)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:885)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:885)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:885)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:885)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:885)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:885)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:885)
at com.android.internal.policy.impl.PhoneWindow
$DecorView.superDispatchTouchEvent(PhoneWindow.java:1709)
at
com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:
1117)
at android.app.Dialog.dispatchTouchEvent(Dialog.java:642)
at com.android.internal.policy.impl.PhoneWindow
$DecorView.dispatchTouchEvent(PhoneWindow.java:1693)
at android.view.ViewRoot.handleMessage(ViewRoot.java:1802)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:143)
at android.app.ActivityThread.main(ActivityThread.java:5097)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
at dalvik.system.NativeStart.main(Native Method)

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@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: Simulator very slow

2011-06-14 Thread Felix Garcia Lainez
Doing this simulator loads faster but it is still very slow doing easy
actions like scrolling a list..

On 14 jun, 16:23, Oscar Marques  wrote:
> Try usin a SD card with 8mb in simulator.
> It slow cuz you are using a big SD card to emulate it.
>
> 2011/6/14 Felix Garcia Lainez 
>
>
>
>
>
> > Hi,
>
> > The case is that my simulator is terrible slow, not only starting,
> > else for instance doing actions as simple as scrolling a listview, or
> > click on a tab. I am working with Eclipse + ADT plugin on a Mac Book
> > Pro very new. I think it is performance problem of the simulator, but
> > may be could be improved this performance modifying some parameters i
> > don't know...
>
> > Any idea?
>
> > 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@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
>
> --
> Oscar Marques
> osca...@gmail.comhttp://www.dunkelheit.com.br
> @f117usbr <https://twitter.com/#%21/f117usbr>
> +55 21 9293-9343
>
> 
> Participe do I Hack'n Rio <http://hacknrio.org/>
> 

-- 
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] Simulator very slow

2011-06-14 Thread Felix Garcia Lainez
Hi,

The case is that my simulator is terrible slow, not only starting,
else for instance doing actions as simple as scrolling a listview, or
click on a tab. I am working with Eclipse + ADT plugin on a Mac Book
Pro very new. I think it is performance problem of the simulator, but
may be could be improved this performance modifying some parameters i
don't know...

Any idea?

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@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: Working with Activities

2011-06-14 Thread Felix Garcia Lainez
Ok it is one of the options i am thinking on..

Thanks!

On 13 jun, 21:17, TreKing  wrote:
> On Mon, Jun 13, 2011 at 3:19 AM, Felix Garcia Lainez <
>
> fgarcialai...@gmail.com> wrote:
> > Any ideas or suggestions on how to do it?
>
> Some kind of static data holder should work just fine. In addition, if this
> data does not need to be updated too frequently, you can save it to your
> cache directory for retrieval if and when your application gets killed.
>
> --- 
> --
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices

-- 
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] Working with Activities

2011-06-13 Thread Felix Garcia Lainez
Hi,

The case is that i need to create an activity that will download some
data via http rest API. This activity will be launched from a main
activity included in a tabwidget. Really i don't have any technical
problem on how to implement it, it is not really difficult.

I have doubts on what is the best way to structure the code. My idea
is to start loading data in the onCreate method of my activity that
shows this data. So the first time this activity is shown (via
startActivity(Intent)) then start loading this data. Once this
activity is loaded first time and data is downloaded, the next times
this activity is shown i would like to use previously downloaded data.
Really it is not very difficult, as i could store this data in other
class than activity, and simply check if this data exists in the
onCreate method of activity shown. Other idea could be to keep
downloaded data in a static variable of the activity...

But really i am not sure if those options are the most natural way to
do it on Android... On other platforms i would instantiate the view
only once (activity on Android case) and show it all the times is
necessary, storing on the instance the downloaded data. After checking
activity docs, i don't see a way to reuse activity instances.. Any
time i do startactivity(intent), the activity is recreated and
onCreate called...

Any ideas or suggestions on how to do it?

Regards.

-- 
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: Convert from Polyline to ArrayList

2011-05-13 Thread Felix Garcia Lainez
Any help please!!

On 11 mayo, 11:26, Felix Garcia Lainez 
wrote:
> It is not unrealistic... Imagine i have stored in a database a route
> in polyline format (in order to optimize storage), and i get that
> polyline string from a web service. Imagine i want to show it, or do
> some calculations on Android client... That is the reason to convert
> from polyline string to an array of location points...
>
> On 10 mayo, 23:28, Igor Prilepov  wrote:
>
>
>
> > It is unrealistic because people collect points and then show them as
> > polyline, polygon or just dots not the other way around.
> > It is unrealistic because Google MapActivity on Android is different from
> > the full scale Google Map API.
> > It is trivial because any Polyline (or Polygon) should be stored as some set
> > of points and therefore all you need to do is to open a documentation to
> > find out how exactly to do this. For example, if you 
> > openhttp://code.google.com/apis/maps/documentation/javascript/3.3/referen...
> > will find getPath()method to get 
> > MVCArray<http://code.google.com/apis/maps/documentation/javascript/3.3/referen...>
> >  http://code.google.com/apis/maps/documentation/javascript/3.3/referen...>
>
> > >.

-- 
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: Convert from Polyline to ArrayList

2011-05-11 Thread Felix Garcia Lainez
It is not unrealistic... Imagine i have stored in a database a route
in polyline format (in order to optimize storage), and i get that
polyline string from a web service. Imagine i want to show it, or do
some calculations on Android client... That is the reason to convert
from polyline string to an array of location points...

On 10 mayo, 23:28, Igor Prilepov  wrote:
> It is unrealistic because people collect points and then show them as
> polyline, polygon or just dots not the other way around.
> It is unrealistic because Google MapActivity on Android is different from
> the full scale Google Map API.
> It is trivial because any Polyline (or Polygon) should be stored as some set
> of points and therefore all you need to do is to open a documentation to
> find out how exactly to do this. For example, if you 
> openhttp://code.google.com/apis/maps/documentation/javascript/3.3/referen...you
> will find getPath()method to get 
> MVCArray
>  http://code.google.com/apis/maps/documentation/javascript/3.3/referen...>
>
>
>
> >.

-- 
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: Convert from Polyline to ArrayList

2011-05-10 Thread Felix Garcia Lainez
I don't understand, sorry... Could you explain me?

On 10 mayo, 19:35, Igor Prilepov  wrote:
>  I doubt you would find a ready to use solution because the task seems to be
> unrealistic (as well as trivial) .

-- 
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] Convert from Polyline to ArrayList

2011-05-10 Thread Felix Garcia Lainez
Hi,

I need to convert from google maps polyline to an array of android
Location objects.

Could anyone tell me if there is some utility function for that?

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@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: Music Playing

2011-05-09 Thread Felix Garcia Lainez
Ok... So the unique way is to do a raw search for music files (using
file extension for instance)? Isn't there any built control to select
music and return data to application?

On 9 mayo, 11:10, gaurav gupta  wrote:
> hi , u sud to fetch ur all music from ur sdcard,which will be stored with
> all detail information like album,artist.
> then fetch it , display all the songs in a listview and its onclick listener
> will start mediaplayer and that particular song_uri
> in default media player of android , u will find forward ,backward , play
> ,pause button inbuilt.
> for more functionality u need to creat ur own  custom media player.
>
> i hope it will work 4 u
>
> On Mon, May 9, 2011 at 2:22 PM, Felix Garcia Lainez 
>
>
> > wrote:
> > Hi,
>
> > I would like to add some music functionality on my application. The
> > idea is to show a list of device songs/albums/artists, and after user
> > choose some of them, then start playing on my application. Also i
> > would like to have some basic controls in one of my activities (next,
> > prev, pause/play)...
>
> > What would be the best way to implement something like this?
>
> > 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@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] Music Playing

2011-05-09 Thread Felix Garcia Lainez
Hi,

I would like to add some music functionality on my application. The
idea is to show a list of device songs/albums/artists, and after user
choose some of them, then start playing on my application. Also i
would like to have some basic controls in one of my activities (next,
prev, pause/play)...

What would be the best way to implement something like this?

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@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] Music Playing

2011-05-09 Thread Felix Garcia Lainez
Hi,

I would like to add some music functionality on my application. The
idea is to show a list of device songs/albums/artists, and after user
choose some of them, then start playing on my application. Also i
would like to have some basic controls in one of my activities (next,
prev, pause/play)...

What would be the best way to implement something like this?

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@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: HTC Desire Debugging on Snow Leopard

2011-02-25 Thread Felix Garcia Lainez
Ok thanks!

Really the problem was that i was connecting the phone to the Apple
usb keyboard which also acts as USB hub. On this way, the power was
not enough i think.. I plugged in mac directly and worked fine.

On 4 feb, 03:38, Brill Pappin  wrote:
> Try checking(on): Applications -> Development -> Stay awake
>
> FYI - I'm using the same setup as you are (i even happen to have a
> Desire connected right now) and it works fine for me.
>
> - Brill Pappin
>
> On Jan 29, 5:41 am, Felix Garcia Lainez 
> wrote:
>
>
>
> > Hi,
>
> > I am trying to debug an Android application on my HTC Desire from
> > Eclipse (Snow Leopard). Really followed these 
> > stepshttp://developer.android.com/guide/developing/device.html#setting-up,
> > but after connecting device via USB it appears some time when listing
> > using "adb devices" command (i achieve debug during a short time), but
> > later device is not shown anymore on the list...It is really weird...
>
> > Any idea on what could be happening?
>
> > 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@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] HTC Desire Debugging on Snow Leopard

2011-02-03 Thread Felix Garcia Lainez
Hi,

I am trying to debug an Android application on my HTC Desire from
Eclipse (Snow Leopard). Really followed these steps
http://developer.android.com/guide/developing/device.html#setting-up,
but after connecting device via USB it appears some time when listing
using "adb devices" command (i achieve debug during a short time), but
later device is not shown anymore on the list...It is really weird...

Any idea on what could be happening?

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