[android-developers] Country filter

2013-12-12 Thread Yougli
Hi,

I'm working on an application that needs to be blocked for a specific 
country on the Play Store.

For instance, my application should be available worldwide except in 
France, which means that french users should not be able to download the 
application, even if they are outside of France, but german users should be 
able to download it, even if they are currently in France (even with a 
french SIM card) - this is the most important part, and, I think, the most 
tricky one :p

I've read the documentation about filters on Google Play (
http://developer.android.com/google/play/filters.html), but there is no 
specific answer about this question, and no real details about how the 
country filter works.

I think the filter used to be based on the SIM card installed on the phone, 
which mean the restriction I need would not be 100% guaranteed (it could be 
bypassed by changing the SIM card or by using a 'market enabler'), but I 
also read somewhere that the filter may now be based on the IP address of 
the phone, which would also mean I would be out of luck...


Any official words about the mechanism behind the country filter ?
Is there any way I can achieve the restriction I need ?

Thanks in advance.

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


Re: [android-developers] Re: Swipe app out of recent tasks permanently kills app (like force-stop) even though it's running background services!

2013-12-12 Thread Cedric Counotte
Yeah thanks but no thanks. I'm fully aware of that.

I'm talking about the recent task list. Removing an app from that list does
like a force stop on KitKat.

Why don't you read what I wrote in the first place?
Le 13 déc. 2013 04:35, "RichardC"  a écrit :

> Have a read of:
>
> Launch controls on stopped applications in
> http://developer.android.com/about/versions/android-3.1.html
>
> Note that it says:
> *"Applications are in a stopped state when they are first installed but
> are not yet launched and when they are manually stopped by the user (in
> Manage Applications)."*
>
> This was introduced in 3.1 before we had swiping away.
>
>
> On Friday, December 13, 2013 1:22:27 AM UTC, 3c wrote:
>>
>> I cannot agree with this as the recent task list in no way suggest
>> killing the apps. Actually every users seems to see it differently. Some
>> take that recent task list as the name suggest, recent tasks and
>> activities, others see it as you suggest an app killing, but most users
>> don't know what's actually happening when removing a task from that list.
>>
>> Furthermore that list doesn't actually reflect apps still running, but
>> the recent tasks or apps used by end-user. On boot I may have a dozen apps
>> running, but no way to kill them (except going into settings, force-stop)
>> if I haven't started them once, making this task killer the worse I've ever
>> seen: it requires end-user to open the app before being able to kill it
>> permanently! And it's not because I remove a task from that very list that
>> I don't want its services to continue running.
>>
>> Looking at documentation for the Service class and the related manifest
>> attributes definitely confirm the behavior of Android 4.0 to 4.3:
>>
>> With Android 4.4, the below flag is now ineffective, which falls into the
>> bug category, not the other way around as you suggest.
>>
>>
>> public static final int stopWithTask
>> Added in API level 
>> 14
>>
>> If set to true, this service with be automatically stopped when the user
>> remove a task rooted in an activity owned by the application. The default
>> is false.
>>
>> Must be a boolean value, either "true" or "false".
>> public void onTaskRemoved 
>> (Intent
>>  rootIntent)
>> Added in API level 
>> 14
>>
>> This is called if the service is currently running and the user has
>> removed a task that comes from the service's application. If you have set
>> ServiceInfo.FLAG_STOP_WITH_TASK
>>  then
>> you will not receive this callback; instead, the service will simply be
>> stopped.
>>
>>
>>  --
> 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 a topic in the
> Google Groups "Android Developers" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/android-developers/H-DSQ4-tiac/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> android-developers+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

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


Re: [android-developers] BitmapMesh Refreshing

2013-12-12 Thread ashwini vandanapu
Hi,

   I have tried, but no Luck.


On Thu, Dec 12, 2013 at 9:06 PM, Justin Anderson wrote:

> What have you tried so far?
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
> On Fri, Nov 1, 2013 at 1:21 AM, ashwini vandanapu <
> ashwini.vandan...@gmail.com> wrote:
>
>> Dear All,
>>
>>
>>   In my android application, i want to apply image warp
>> effect for image. For that i use BitmapMesh from api demos. The problem is
>> that, it's not saving warped image. Whenever i touch image, it refresh the
>> image and doesn't save my previously warped image.I want to save that image
>> whenever user perform warp operation. If any one know kindly share with and
>> help me out.
>>
>>
>>
>> Thanks&Regards,
>> Ashwini V.
>>
>> --
>> 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.
>>
>
>  --
> 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.
>



-- 

Thanks&Regards,
Ashwini V.

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


Re: [android-developers] how to get item from grid view at specific postion

2013-12-12 Thread TreKing
On Thu, Dec 12, 2013 at 11:01 AM, Amit Mangal
wrote:

> Trekin i dont know the solution but  one hundered percent sure that u r
> wrong


Let me get this straight. You came here asking for help with this issue.
You admit you don't know the answer.
Yet you are somehow 100% sure that what I've told you is wrong?

Would you mind letting me know how, precisely, you came to this conclusion
given your admission that you don't have a solution?

I'd really love to know since, if I am incorrect, then I've been coding my
apps all wrong for the last 4 years I've been working with Android,
Adapters, and the getView method. I'd appreciate your vast insight to
correct my massive mistakes!

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


Re: [android-developers] Is it possible to access text messages to back up as they are received?

2013-12-12 Thread TreKing
On Thu, Dec 12, 2013 at 8:46 AM, Daniel Chacon  wrote:

> Would I use the SmsManager and SmsMessage api calls?


Never used those facilities, but strictly based on the name, sure seems
like a good place to start.

-
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
--- 
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: Swipe app out of recent tasks permanently kills app (like force-stop) even though it's running background services!

2013-12-12 Thread RichardC
Have a read of:

Launch controls on stopped applications in
http://developer.android.com/about/versions/android-3.1.html

Note that it says:
*"Applications are in a stopped state when they are first installed but are 
not yet launched and when they are manually stopped by the user (in Manage 
Applications)."*

This was introduced in 3.1 before we had swiping away.


On Friday, December 13, 2013 1:22:27 AM UTC, 3c wrote:
>
> I cannot agree with this as the recent task list in no way suggest killing 
> the apps. Actually every users seems to see it differently. Some take that 
> recent task list as the name suggest, recent tasks and activities, others 
> see it as you suggest an app killing, but most users don't know what's 
> actually happening when removing a task from that list. 
>
> Furthermore that list doesn't actually reflect apps still running, but the 
> recent tasks or apps used by end-user. On boot I may have a dozen apps 
> running, but no way to kill them (except going into settings, force-stop) 
> if I haven't started them once, making this task killer the worse I've ever 
> seen: it requires end-user to open the app before being able to kill it 
> permanently! And it's not because I remove a task from that very list that 
> I don't want its services to continue running.
>
> Looking at documentation for the Service class and the related manifest 
> attributes definitely confirm the behavior of Android 4.0 to 4.3:
>
> With Android 4.4, the below flag is now ineffective, which falls into the 
> bug category, not the other way around as you suggest. 
>
>
> public static final int stopWithTask
> Added in API level 
> 14
>
> If set to true, this service with be automatically stopped when the user 
> remove a task rooted in an activity owned by the application. The default 
> is false.
>
> Must be a boolean value, either "true" or "false".
> public void onTaskRemoved 
> (Intent
>  rootIntent)
> Added in API level 
> 14
>
> This is called if the service is currently running and the user has 
> removed a task that comes from the service's application. If you have set 
> ServiceInfo.FLAG_STOP_WITH_TASK
>  then 
> you will not receive this callback; instead, the service will simply be 
> stopped.
>
>
>

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


Re: [android-developers] how to optimize reliability of gcm messages on 2G network?

2013-12-12 Thread Robert Greenwalt
Applications using GCM should never need concern themselves with 2g vs 3g
vs wifi issues.  That is supposed to be one of the values of GCM.

Someone from the GCM team should comment on 2G reliability.


On Mon, Dec 9, 2013 at 8:57 PM, ranjit R  wrote:

> I am using 2g network for Instant messaging .with payload less than 2kb..
>  In 3g network success rate of receiving gcm messages is 10/10 with out
> queueing of messages in gcm messaged in GCM server.
>
> In 2G network " here Is the problem" 5/10 messages are received instantly
> other 5 goes in to queue I n GCM server ..
> My question is
> As Google queue messages on gcm server When phone is idle.
> 1 is there a callback to device when gcm message is queue in server.
>  2 is there way to optimize gcm messages on 2g network
> 3 when does gcm expire.
> 4 or is there better way of handling gcm message for 2G
>
> --
> 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.
>

-- 
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: Swipe app out of recent tasks permanently kills app (like force-stop) even though it's running background services!

2013-12-12 Thread 3c
I cannot agree with this as the recent task list in no way suggest killing 
the apps. Actually every users seems to see it differently. Some take that 
recent task list as the name suggest, recent tasks and activities, others 
see it as you suggest an app killing, but most users don't know what's 
actually happening when removing a task from that list. 

Furthermore that list doesn't actually reflect apps still running, but the 
recent tasks or apps used by end-user. On boot I may have a dozen apps 
running, but no way to kill them (except going into settings, force-stop) 
if I haven't started them once, making this task killer the worse I've ever 
seen: it requires end-user to open the app before being able to kill it 
permanently! And it's not because I remove a task from that very list that 
I don't want its services to continue running.

Looking at documentation for the Service class and the related manifest 
attributes definitely confirm the behavior of Android 4.0 to 4.3:

With Android 4.4, the below flag is now ineffective, which falls into the 
bug category, not the other way around as you suggest. 


public static final int stopWithTask
Added in API level 
14

If set to true, this service with be automatically stopped when the user 
remove a task rooted in an activity owned by the application. The default 
is false.

Must be a boolean value, either "true" or "false".
public void onTaskRemoved 
(Intent
 rootIntent)
Added in API level 
14

This is called if the service is currently running and the user has removed 
a task that comes from the service's application. If you have set 
ServiceInfo.FLAG_STOP_WITH_TASK
 then 
you will not receive this callback; instead, the service will simply be 
stopped.


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


Re: [android-developers] Google Drive says Action Bars on the bottom are ok?

2013-12-12 Thread Ken

On Thursday, December 12, 2013 4:40:45 PM UTC-5, Kostya Vasilyev wrote:
>
> Do you mean the panel that slides up and down as you scroll the documents 
> list?
> Google+ does this too.
>

Yep...the panel at the bottom w/ the Camera button.  I thought Google said 
not to do this? :-P
It's a weird UI pattern.  Almost seems to conflict w/ the other UI pattern 
where the softkeys (back/home/etc.) hide when you're viewing content.  
Scroll down and the camera panel shows up...touch the bottom of the screen 
and the softkeys show up.  It works fine if your device has hardkeys for 
the home button like a Galaxy S3, but doesn't work well on the N7.
There's even a library for it named AndroidSlidingUpPanel.

-- 
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: Swipe app out of recent tasks permanently kills app (like force-stop) even though it's running background services!

2013-12-12 Thread RichardC
Based on the blog post when the "task killing" of applications was 
introduced, I would say that restarting a service of a killed application 
(process) was an implementation bug.  It was clear from the blog post that 
when and end-user "task killed" an application then that application (and 
all components of it) should not run again until manually started.  

The clear intent was to give end-users control of "sticky" applications 
that would just not stop and allow them to be terminated.

On Thursday, December 12, 2013 9:20:34 PM UTC, 3c wrote:
>
> The swipe app out of recent tasks is supposed (as far as I understand it) 
> to terminate all activities but keep services running. This is true (and I 
> verified that behavior) until KitKat (verified on 4.4.1 and 4.4.2).
>
> In KitKat, the app is killed instantly:
> 12-12 22:04:47.386: I/ActivityManager(784): Killing 
> 16695:/u0a80 (adj 16): remove task
>
> And will not run until the user manually starts the app again!
>
> Looking at the Android settings, Applications, Running tab shows the app 
> as running 0 processes and 1 service. However the service is completely 
> gone and no actual Linux process is running it. A "ps" clearly reveals it's 
> not running. Service is not even restarted!
>
> The onTaskRemoved() method is called as expected and then app is 
> permanently killed.
>
> On Android 4.3, the app process is killed (along with all background 
> services), however those services returning START_STICKY are restarted as 
> expected.
>
> Adding a notification icon using the foreground service flag does solves 
> this, however the UI memory is no longer claimed and it's not the behavior 
> that's being documented, is it?
>

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


Re: [android-developers] Google Drive says Action Bars on the bottom are ok?

2013-12-12 Thread Kostya Vasilyev
Do you mean the panel that slides up and down as you scroll the documents
list?

Google+ does this too.

I guess it's the fashionable UI pattern du jour.

-- K


2013/12/12 Ken 

> Just noticed this recently...Google Drive has a few action bar items at
> the bottom.
>
> I thought we weren't supposed to put action bar items at the bottom
> because it's confusing to users with the soft button bar (with back, home,
> etc.) down there as well?
>
> --
> 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.
>

-- 
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] Swipe app out of recent tasks permanently kills app (like force-stop) even though it's running background services!

2013-12-12 Thread 3c
The swipe app out of recent tasks is supposed (as far as I understand it) 
to terminate all activities but keep services running. This is true (and I 
verified that behavior) until KitKat (verified on 4.4.1 and 4.4.2).

In KitKat, the app is killed instantly:
12-12 22:04:47.386: I/ActivityManager(784): Killing 
16695:/u0a80 (adj 16): remove task

And will not run until the user manually starts the app again!

Looking at the Android settings, Applications, Running tab shows the app as 
running 0 processes and 1 service. However the service is completely gone 
and no actual Linux process is running it. A "ps" clearly reveals it's not 
running. Service is not even restarted!

The onTaskRemoved() method is called as expected and then app is 
permanently killed.

On Android 4.3, the app process is killed (along with all background 
services), however those services returning START_STICKY are restarted as 
expected.

Adding a notification icon using the foreground service flag does solves 
this, however the UI memory is no longer claimed and it's not the behavior 
that's being documented, is it?

-- 
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] Google Drive says Action Bars on the bottom are ok?

2013-12-12 Thread Ken
Just noticed this recently...Google Drive has a few action bar items at the 
bottom.

I thought we weren't supposed to put action bar items at the bottom because 
it's confusing to users with the soft button bar (with back, home, etc.) 
down there as well?

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


Re: [android-developers] how to get item from grid view at specific postion

2013-12-12 Thread Amit Mangal
Trekin i dont know the solution but  one hundered percent sure that u r
wrong
On 12-Dec-2013 7:40 AM, "TreKing"  wrote:

>
> On Wed, Dec 11, 2013 at 5:14 PM, Amit Mangal 
> wrote:
>
>> i am trying to add saveForLaterOverlay on button pressed number item in
>> grid view but nothing happing this method just executing when i click the
>> button on image but doing nothing.
>
>
> Your main problem is calling getView() on the adapter. This is not how you
> use this method.
> When you click your button, instead of trying to add the layout, modify
> your object / data model and invalidate the adapter.
> Then, in your adapter's getView() method, you create or update the view
> based on the object / data model's state.
>
>
> -
> 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
> ---
> 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.
>

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


Re: [android-developers] BitmapMesh Refreshing

2013-12-12 Thread Justin Anderson
What have you tried so far?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Fri, Nov 1, 2013 at 1:21 AM, ashwini vandanapu <
ashwini.vandan...@gmail.com> wrote:

> Dear All,
>
>
>   In my android application, i want to apply image warp effect
> for image. For that i use BitmapMesh from api demos. The problem is that,
> it's not saving warped image. Whenever i touch image, it refresh the image
> and doesn't save my previously warped image.I want to save that image
> whenever user perform warp operation. If any one know kindly share with and
> help me out.
>
>
>
> Thanks&Regards,
> Ashwini V.
>
> --
> 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.
>

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


Re: [android-developers] Status Bar Notification

2013-12-12 Thread Justin Anderson
Complete shot in the dark here... but have you tried giving your
notification an id other than 0?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Sun, Dec 8, 2013 at 10:51 PM, Rahul Kaushik wrote:

> Hi,
>
> Status bar notififcation is not showing up in Sony Xperia z with android
> version 4.2
>
> Code
>
> NotiCountValue= NotiCountValue + ncount;
>
>  NotificationManager mNotificationManager = (NotificationManager) context
>  .getSystemService(Context.NOTIFICATION_SERVICE);
> CharSequence contentTitle =   "FranConnect Mobile";
>  int icon = R.drawable.fcicon;
> Notification notification = new Notification();
>  CharSequence contentText =NotiCountValue+ " Unread Notifications.";
>  Intent notifyIntent = new Intent(context,MainActivity.class);
>  notifyIntent.setClass(context, hybridlistactivity.class);
>  PendingIntent pendingintent =
> PendingIntent.getActivity(context, 0,
> notifyIntent,  PendingIntent.FLAG_UPDATE_CURRENT |
> Notification.FLAG_AUTO_CANCEL);
>  notification.icon=icon;
>  notification.setLatestEventInfo(context, contentTitle, contentText,
> pendingintent);
>  mNotificationManager.notify(0, notification);
>
>
> Please suggest
>
> Thanks
> RK
>
> --
> 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.
>

-- 
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: Reverse Fragment Stack Order

2013-12-12 Thread Alex Fu
Found the answer to my own question and published a sample app to demo -- 
https://github.com/alexfu/ReversedFrameLayout

On Wednesday, December 11, 2013 4:58:11 PM UTC-5, Alex Fu wrote:
>
> Is there a way to reverse the order in which Fragments are added and drawn 
> onto the screen? Instead of the newest Fragment added being on top, I'd 
> like to try and get the newest Fragment added on bottom. I tried looking 
> into the ViewGroup that a Fragment is attached to and maybe altering the 
> behavior in which it lays out it's children, but it seems like that has no 
> bearing on the order/z-index. See https://gist.github.com/alexfu/7918808 for 
> reference.
>

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


Re: [android-developers] Reverse Fragment Stack Order

2013-12-12 Thread Justin Anderson
What specifically are you trying to accomplish?  Maybe there is a better
way to get the same effect...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Wed, Dec 11, 2013 at 2:58 PM, Alex Fu  wrote:

> Is there a way to reverse the order in which Fragments are added and drawn
> onto the screen? Instead of the newest Fragment added being on top, I'd
> like to try and get the newest Fragment added on bottom. I tried looking
> into the ViewGroup that a Fragment is attached to and maybe altering the
> behavior in which it lays out it's children, but it seems like that has no
> bearing on the order/z-index. See https://gist.github.com/alexfu/7918808 for
> reference.
>
> --
> 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.
>

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


Re: [android-developers] Re: Get Area code (DDD)

2013-12-12 Thread Justin Anderson
http://lmgtfy.com/?q=android+get+phone+number+programmatically

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Wed, Dec 11, 2013 at 6:41 PM, RichardC wrote:

> Most SIMs do not know their own phone number as they do not need that
> information.  The mobile phone network uses IMEI codes for identification
> and connection.
>
>
> On Wednesday, December 11, 2013 1:51:26 PM UTC, Italo Mendonça Rocha wrote:
>>
>> Hello,
>>
>> I need to retrieve the full phone number from my SIM, including the area
>> code. Does anyone know how I do it?
>>
>> Thanks, Ítalo.
>>
>  --
> 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.
>

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


Re: [android-developers] Unlike previous versions, Paint.measureText() returns a rounded value in 4.4?

2013-12-12 Thread Piren
you can try using this instead:
http://developer.android.com/reference/android/text/Layout.html#getDesiredWidth(java.lang.CharSequence,
 
int, int, android.text.TextPaint)

Or just copy the source code for Paint without the Ceil :)

On Wednesday, December 11, 2013 8:28:09 PM UTC+2, Harri J. Smatt wrote:
>
> Why are you using one pixel sized text for measuring? It can only cause 
> you trouble if the rounding did not occur before automatically. Make text 
> size somewhere near to 1000 pixels in size (or higher if the platform 
> allows) and you have basis for calculating sub pixel values on certain 
> precision at least.
>
> —
> H
>
> On 11 Dec 2013, at 00:37, Ab > wrote:
>
> Oh, well, that seems definitive and unlikely to have a workaround. 
>  Though, it's It is and unfortunate, and not backwards compatible, for 
> someone who renders text...
>
> On Tuesday, 10 December 2013 19:21:54 UTC-5, RichardC wrote:
>>
>> Can't help you to fix this but have researched the change...
>>
>> Source for the return value of Paint.measureText I see:
>> Android 17
>>   return w*mInvCompatScaling;
>> Android 18
>>   return (float) Math.ceil(w*mInvCompatScaling);
>>
>> The change was done for the follow reasons:
>>
>> https://github.com/android/platform_frameworks_base/commit/8e04840f38a16f806754dfca3de50c2548e67913
>>
>>
>>
>> On Tuesday, December 10, 2013 8:45:45 PM UTC, Ab wrote:
>>>
>>> I make heavy use of the Paint.measureText() method and was surprised to 
>>> find that in 4.4 thefloat this method returns is always rounded up. In 
>>> previous versions, no rounding occurred. I ran the below code on a 4.0.4 
>>> device and a 4.4 device. The results for the 4.0.4 device are first, the 
>>> results for the 4.4 device are second.
>>>
>>> Any suggestions of how I can get unrounded values in 4.4, possibly there 
>>> is a new attribute for Paintthat I missed?
>>>
>>> @Overrideprotected void onCreate(Bundle savedInstanceState) {
>>> super.onCreate(savedInstanceState);
>>>
>>> Paint p = new Paint();
>>> p.setTypeface(Typeface.create(Typeface.SANS_SERIF, Typeface.NORMAL));
>>> p.setTextSize(1);
>>> p.setAntiAlias(true);
>>> p.setSubpixelText(true);
>>>
>>> Log.e("T", p.measureText("T")+"");
>>> Log.e("h", p.measureText("h")+"");
>>> Log.e("e", p.measureText("e")+"");
>>> Log.e("L", p.measureText("L")+"");
>>> Log.e("a", p.measureText("a")+"");
>>> Log.e("z", p.measureText("z")+"");
>>> Log.e("y", p.measureText("y")+"");
>>> Log.e("w", p.measureText("w")+"");}
>>>
>>> 4.0.4:
>>>
>>> 0.59375 0.5625 0.515625 0.546875 0.546875 0.5 0.5 0.75
>>>
>>> 4.4:
>>>
>>> 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0
>>>
>>>
> -- 
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to 
> android-d...@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.
>
>
>

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


Re: [android-developers] Filename with invalid encoding crashes File.list()

2013-12-12 Thread Justin Anderson
On Thu, Dec 12, 2013 at 5:19 AM, Martin Heller wrote:

> Hopefully this issue is resolved soon.
>

That's a good one... This is Google we are talking about here. :-)

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware

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


Re: [android-developers] Is it possible to access text messages to back up as they are received?

2013-12-12 Thread Daniel Chacon
Would I use the SmsManager and SmsMessage api calls?
Looks like it is what I need, thank you

On Wed, Dec 11, 2013 at 8:40 PM, TreKing  wrote:

>
> On Wed, Dec 11, 2013 at 8:04 PM, Dan Cha  wrote:
>
>> im wondering if there is a way I can build a app for myself to access my
>> text, when I send or receive a text, the message is backed up and within a
>> certain period of time its removed from my phone.
>
>
> Yes, this is possible.
>
>
> -
> 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
> ---
> 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.
>

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


Re: [android-developers] Filename with invalid encoding crashes File.list()

2013-12-12 Thread Martin Heller
I have filed a bug report for this issue
http://code.google.com/p/android/issues/detail?id=63576
Hopefully this issue is resolved soon.

Martin

On Thursday, December 12, 2013 10:51:14 AM UTC+1, Martin Heller wrote:
>
> Unfortunately, Harri is right. The whole VM crashes regardless whether the 
> code is surrounded with a try/catch block or not.
> Following the stack trace I posted before, VM crash is recorded in logcat
>
> 12-12 10:40:01.942: E/dalvikvm(1914): VM aborting
> 12-12 10:40:01.942: A/libc(1914): Fatal signal 11 (SIGSEGV) at 0xdeadd00d 
> (code=1), thread 1914 (application.name)
>
> I guess my best shot is filing a bug for Android and possibly trying to 
> avoid using File.list() entirely. Are there any alternatives to this method?
>
>
> Martin
>
> On Wednesday, December 11, 2013 8:16:32 PM UTC+1, Harri J. Smatt wrote:
>>
>> Hopefully something like this is doable - but since the crash seems to 
>> originate from DalvikVM itself - it’s possible there is nothing one can do 
>> on Java level about this issue Martin is facing  :(
>>
>> —
>> H
>>
>> On 11 Dec 2013, at 19:09, Steve Gabrilowitz  wrote:
>>
>> You could surround the appropriate code with a try catch block, not ideal 
>> but better than a crash!
>>
>>
>>

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


Re: [android-developers] Displaying Google Map Android API V2 in fragment

2013-12-12 Thread Surabhi Jain
Hi Harri,

I have try to write executePendingTransactions() line in my code, but in
both cases not getting success :(

in *onResume* method of* CustomFragment Class*.
App get Crashed with exception *android recursive entry to execute pending
transactions*.

My Code is as follows:
fragmentManager = getSupportFragmentManager();
FragmentTransaction fragmentTransaction =
fragmentManager.beginTransaction();
fragmentTransaction.add(R.id.mapImage, mapFragment);
fragmentTransaction.show(mapFragment);
fragmentTransaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
fragmentTransaction.commit();

//when adding pending transaction line here
fragmentManager.executePendingTransactions();
Throws exception* mapFragment view with id not found*.

Where, I implement this fragmentManager.executePendingTransactions()?



On Wed, Dec 11, 2013 at 11:47 PM, Harri Smått  wrote:

> You should keep following in mind (in regard to your original SO code
> snippet);
>
> 1. Once you add the fragment containing map, and call commit(), the
> fragment IS NOT added right away. See
> FragmentManager.executePendingTransactions() for executing the commit()
> asap.
>
> 2. If you still cannot get the proper non null Map reference, try doing it
> on Fragment.onResume() instead. I believe this is the final chance to get
> the map object without using a handler..
>
> —
> H
>
> On 11 Dec 2013, at 12:24, surabhi jain  wrote:
>
> Hi,
> Thanks for the reply,I have do that but still I am getting same issue.
>
> I have use Handler for getting google map value, code as on below link
>
> http://stackoverflow.com/questions/19219255/supportmapfragment-getmap-returns-null
>
> Scenario is as follows:
> I am displaying map in fragment inside view pager,with detail fragment,for
> map I have created fragment dynamically. I am using single activity so each
> screen is represented by a Fragment. NewsDetailsFragment includes a
> ViewPager (map).
>
> When I navigate to the NewsDetailsFragment initially, the map is loaded,
> now if I load a new instance of the NewsDetailsFragment like on scrolling
> pager I am displaying my next record. The ViewPager in the 2nd
> NewsDetailsFragment wont display the map. In LogCat,Log shows that
> everything works fine, map is displaying and markers get set. But on place
> of map showing black screen.
>
> Is there any way to get google map value without using Handler in Fragment?
>
>
> On Wed, Dec 11, 2013 at 4:34 PM, VenomVendor™ wrote:
>
>> Have you solved it, if not.
>> 1. Null the Map.
>> 2. Destroy the fragment overriding in onDestroy method.
>>
>> --
>> 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.
>>
>
>
>
> --
> Thanks & Regards
> Surabhi Jain
>
> --
> 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.
>
>
>  --
> 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.
>



-- 
Thanks & Regards
Surabhi Jain

-- 
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, sen

Re: [android-developers] Filename with invalid encoding crashes File.list()

2013-12-12 Thread Martin Heller
Unfortunately, Harri is right. The whole VM crashes regardless whether the 
code is surrounded with a try/catch block or not.
Following the stack trace I posted before, VM crash is recorded in logcat

12-12 10:40:01.942: E/dalvikvm(1914): VM aborting
12-12 10:40:01.942: A/libc(1914): Fatal signal 11 (SIGSEGV) at 0xdeadd00d 
(code=1), thread 1914 (application.name)

I guess my best shot is filing a bug for Android and possibly trying to 
avoid using File.list() entirely. Are there any alternatives to this method?


Martin

On Wednesday, December 11, 2013 8:16:32 PM UTC+1, Harri J. Smatt wrote:
>
> Hopefully something like this is doable - but since the crash seems to 
> originate from DalvikVM itself - it’s possible there is nothing one can do 
> on Java level about this issue Martin is facing  :(
>
> —
> H
>
> On 11 Dec 2013, at 19:09, Steve Gabrilowitz > 
> wrote:
>
> You could surround the appropriate code with a try catch block, not ideal 
> but better than a crash!
>
>
>

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