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

2013-12-11 Thread VenomVendor™
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

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

2013-12-11 Thread surabhi jain
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

[android-developers] Re: How to get write permission on sd card when using mksdcard?

2013-12-11 Thread joare...@googlemail.com
$./adb shell $su mount -o rw,remount rootfs / chmod 777 /mnt/sdcard -- 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] Get Area code (DDD)

2013-12-11 Thread Italo Mendonça Rocha
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] WeakReference containing callback interface

2013-12-11 Thread TheNetStriker
I've got a question regarding WeakReferences in Android. I'am using AndroidQuery in my app to load images asynchronous. I've modified the AndroidQuery source a bit, so that it is also able to send progress callbacks so that I can update the progressbars in my notifications. The problem is that

[android-developers] Re: WeakReference containing callback interface

2013-12-11 Thread Nobu Games
Why don't you check your progress bar if it's null before modifying it? If the progress bar got garbage collected it's safe to say that it is not there anymore (not visible) and any modification wouldn't make any sense at that stage. On Wednesday, December 11, 2013 8:43:56 AM UTC-6,

[android-developers] In 4.4, Paint.measureText() is not backwards compatible. Any workarounds?

2013-12-11 Thread Ab
It is crucial for my app to be able to accurately measure Strings; I have been usingPaint.measureText() to do this. Unfortunately, in 4.4, this method was changed to no longer return a precise value, instead it returns a up-rounded value. Is anyone aware of another method I can use to

Re: [android-developers] Looking for API to gain access to my email

2013-12-11 Thread Daniel Chacon
Can anyone help with this.. I was looking lastnight and found the android.intent.action.delete but not sure that will allow me access to the trash folder on the phone. Also found android.content.intent.action delete which may get me close, but how would I find the URI of the trash folder? On Tue,

[android-developers] Re: Looking for API to gain access to my email

2013-12-11 Thread 12169
hi, As per my search it is not possible. but you can built your on email client for refernce you can find the ssource code of k9 application. On Friday, April 19, 2013 8:49:40 PM UTC-7, Dan Cha wrote: Im trying to build an app that can connect to my email client on my phone. Im using the

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

2013-12-11 Thread TreKing
On Tue, Dec 10, 2013 at 11:50 PM, Amit Mangal forum.amit.man...@gmail.comwrote: i get position of button pressed using get tag but i am unable to get the relative layout on whihc image and button is displaying. any idea how to get that layout view Your question is not really clear. What

Re: [android-developers] In 4.4, Paint.measureText() is not backwards compatible. Any workarounds?

2013-12-11 Thread Harri Smått
Is it really necessary to have string width in sub-pixel width? One could expect you need to round the previously returned value in any case either by yourself or some other means before using it in any case.. Unfortunately, as for finding another way of calculating the sub-pixel width, I

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

2013-12-11 Thread Harri Smått
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

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

2013-12-11 Thread Justin Anderson
GridView uses an adapter... all of the changes you are talking about doing should be done in your adapter's getView() method. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Dec 11, 2013 at 10:09 AM, TreKing treking...@gmail.com wrote: On Tue,

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

2013-12-11 Thread Harri Smått
Looking at the crash log it seems so that the filename is not valid UTF-8 format.. Do you happen to have any idea how such a filename took place to begin with? — H On 11 Dec 2013, at 16:43, Martin Heller heller.m...@gmail.com wrote: Hello, I have encountered a crash in the

Re: [android-developers] How to get write permission on sd card when using mksdcard?

2013-12-11 Thread Harri Smått
Is this correct group for your question? android-building sounds a bit more alike if I was asked. — H On 11 Dec 2013, at 13:29, joare...@googlemail.com joare...@gmail.com wrote: $./adb shell $su mount -o rw,remount rootfs / chmod 777 /mnt/sdcard -- You received this

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

2013-12-11 Thread Harri Smått
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

Re: [android-developers] why does not android.content.SharedPreferences#getAll() return an unmodifiable map ?

2013-12-11 Thread Harri Smått
I am quite sure this relates to the fact changing the values on a Map object, i.e on memory only, does not give too many options to store same values on SDcard more for later use. — H On 10 Dec 2013, at 21:57, Palmer Eldritch the.u...@gmail.com wrote: As per its docs : Note that you

Re: [android-developers] Using the Expansion Pack for optional data

2013-12-11 Thread Harri Smått
I have never tried expansion files myself, but reading the documentation tells about two types of expansion files; 1. Main expansion file (required) 2. Patch expansion file (optional) Maybe combining the two would give you an optional expansion file instead if you let the main one be empty..

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

2013-12-11 Thread Martin Heller
Well, that is what I am writing, the filename is not in a valid UTF-8 format. Originally the filename appeared due to a programming error (not converting filename to UTF-8). However, what concerns me is that files with such filenames can appear in the filesystem (intentionally or

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

2013-12-11 Thread Steve Gabrilowitz
You could surround the appropriate code with a try catch block, not ideal but better than a crash! On Dec 11, 2013 1:36 PM, Martin Heller heller.m...@gmail.com wrote: Well, that is what I am writing, the filename is not in a valid UTF-8 format. Originally the filename appeared due to a

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

2013-12-11 Thread Harri Smått
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 steveg1...@gmail.com wrote: You could surround

Re: [android-developers] Re: Looking for API to gain access to my email

2013-12-11 Thread Daniel Chacon
Well I was looking to create just a simple app to clear the trash folder is all, nothing more.. just something to gain access to that folder and clear it.. I have thousands of emails in that folder that I don't need, the emails have to be stored somewhere on the phone that can be accessed and

Re: [android-developers] Re: Looking for API to gain access to my email

2013-12-11 Thread Kristopher Micinski
They have to be stored somewhere on the phone: but they don't have to be accessible to you. I believe in this case they are *not* available through any public API... Kris On Wed, Dec 11, 2013 at 2:47 PM, Daniel Chacon cuban...@gmail.com wrote: Well I was looking to create just a simple app to

[android-developers] Reverse Fragment Stack Order

2013-12-11 Thread Alex Fu
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

Re: [android-developers] why does not android.content.SharedPreferences#getAll() return an unmodifiable map ?

2013-12-11 Thread MrMrs D
On Wednesday, December 11, 2013 8:30:53 PM UTC+2, Harri J. Smatt wrote: I am quite sure this relates to the fact changing the values on a Map object, i.e on memory only, does not give too many options to store same values on SDcard more for later use. So why it does not return an

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

2013-12-11 Thread Amit Mangal
Here is the code of my getview on button click where i am trying to add relative layout but nothing happing Holder holder; if (convertView == null) { convertView = inflater.inflate(R.layout.grid_image_row, null); holder = new Holder();

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

2013-12-11 Thread RichardC
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

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

2013-12-11 Thread TreKing
On Wed, Dec 11, 2013 at 5:14 PM, Amit Mangal forum.amit.man...@gmail.comwrote: 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

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

2013-12-11 Thread Dan Cha
Im not using any 3rd party app for my text, but I do use one to back up my text before I delete them, so 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

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

2013-12-11 Thread TreKing
On Wed, Dec 11, 2013 at 8:04 PM, Dan Cha cuban...@gmail.com 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.

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

2013-12-11 Thread ranjit R
Can't we use getdataactiivty() of telephone manager to know current status of the data connectivity to fire some sort of hit to web to wake the network from dormant state getDataActivity return following states has any tried this way