[android-developers] Native code linking error
I'm currently attempting to build ffmpeg to work on the Android platform. I was able to successfully build and run ndk-build without errors, however when I go to actually run the application, I get hit with the following linking error: cannot locate symbol atof referenced by libavformat-55.so As far as I can tell, atof is in stdlib, however it doesn't seem to be picking it up for some reason. -- 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/d/optout.
[android-developers] Re: Reverse Fragment Stack Order
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.
[android-developers] Reverse Fragment Stack Order
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] Loading Images Using HttpURLConnection Concurrently
Is there a way to test this? On Monday, April 8, 2013 10:35:02 PM UTC-4, Indicator Veritatis wrote: It should not cause a 400 error, since the 400 error is caused by bad syntax. Specifying HTTPS is not bad syntax, and it should handle the exact same URL as HTTP (only the scheme being different). But do you know that the server you are using conforms well to the HTTP 1.1 spec? On Saturday, April 6, 2013 6:27:58 AM UTC-7, Alex Fu wrote: If possible, I would rather not. I'm using my own server to serve up data so for the HTTPS bit, I used a self signed certificate. Not sure if that's something that would cause the 400 error. On Sat, Apr 6, 2013 at 2:55 AM, Harri Smått har...@gmail.com wrote: Hi, Is it possible for you to share an example of an image URL you're using? -- H On Apr 6, 2013, at 5:59 AM, Alex Fu alex@gmail.com wrote: I tested HTTPS and I'm getting a 400 Bad Request error when using mobile data. On WiFi, everything goes through smoothly... wth. -- -- 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 a topic in the Google Groups Android Developers group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-developers/zf4czg611ZU/unsubscribe?hl=en . 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. -- Alex Fu -- -- 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] Loading Images Using HttpURLConnection Concurrently
If possible, I would rather not. I'm using my own server to serve up data so for the HTTPS bit, I used a self signed certificate. Not sure if that's something that would cause the 400 error. On Sat, Apr 6, 2013 at 2:55 AM, Harri Smått har...@gmail.com wrote: Hi, Is it possible for you to share an example of an image URL you're using? -- H On Apr 6, 2013, at 5:59 AM, Alex Fu alex.fu...@gmail.com wrote: I tested HTTPS and I'm getting a 400 Bad Request error when using mobile data. On WiFi, everything goes through smoothly... wth. -- -- 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/zf4czg611ZU/unsubscribe?hl=en . 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. -- Alex Fu -- -- 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] Loading Images Using HttpURLConnection Concurrently
Hello guys, I'm currently facing an issue that I think should be fairly simple. I have a GridView which will get populated with images. If the image can't be found on the local disk, it will attempt to download the image from the network. Images download successfully, however the problem I am having is that the first image downloads just fine, however the second image that is downloaded is in very poor quality and is a fraction of the size it should be (5KB vs 100KB). This only happens when using mobile data connection. On WiFi, images download perfectly. Here is a link to the exact method that is retrieving these images... https://gist.github.com/alexfu/5319597. Any ideas or suggestions are greatly appreciated! -- -- 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] Loading Images Using HttpURLConnection Concurrently
Didn't think that would be a possibility. These images are less than 1 MB. Whats the reasoning behind using HTTPS? Just out of curiosity. On Apr 5, 2013 11:45 AM, Robert Greenwalt rgreenw...@google.com wrote: Is it possible your carrier is silently downgrading images to save bandwidth? Perhaps try https? On Fri, Apr 5, 2013 at 7:21 AM, Alex Fu alex.fu...@gmail.com wrote: Hello guys, I'm currently facing an issue that I think should be fairly simple. I have a GridView which will get populated with images. If the image can't be found on the local disk, it will attempt to download the image from the network. Images download successfully, however the problem I am having is that the first image downloads just fine, however the second image that is downloaded is in very poor quality and is a fraction of the size it should be (5KB vs 100KB). This only happens when using mobile data connection. On WiFi, images download perfectly. Here is a link to the exact method that is retrieving these images... https://gist.github.com/alexfu/5319597. Any ideas or suggestions are greatly appreciated! -- -- 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 a topic in the Google Groups Android Developers group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-developers/zf4czg611ZU/unsubscribe?hl=en . 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] Loading Images Using HttpURLConnection Concurrently
I will certainly try that out On Apr 5, 2013 12:22 PM, Robert Greenwalt rgreenw...@google.com wrote: I'm not suggesting it as a real fix, just as a test. Using https they won't be able to snoop and rescale the images if that's what's really causing it. On Fri, Apr 5, 2013 at 9:11 AM, Alex Fu alex.fu...@gmail.com wrote: Didn't think that would be a possibility. These images are less than 1 MB. Whats the reasoning behind using HTTPS? Just out of curiosity. On Apr 5, 2013 11:45 AM, Robert Greenwalt rgreenw...@google.com wrote: Is it possible your carrier is silently downgrading images to save bandwidth? Perhaps try https? On Fri, Apr 5, 2013 at 7:21 AM, Alex Fu alex.fu...@gmail.com wrote: Hello guys, I'm currently facing an issue that I think should be fairly simple. I have a GridView which will get populated with images. If the image can't be found on the local disk, it will attempt to download the image from the network. Images download successfully, however the problem I am having is that the first image downloads just fine, however the second image that is downloaded is in very poor quality and is a fraction of the size it should be (5KB vs 100KB). This only happens when using mobile data connection. On WiFi, images download perfectly. Here is a link to the exact method that is retrieving these images... https://gist.github.com/alexfu/5319597. Any ideas or suggestions are greatly appreciated! -- -- 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 a topic in the Google Groups Android Developers group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-developers/zf4czg611ZU/unsubscribe?hl=en . 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. -- -- 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/zf4czg611ZU/unsubscribe?hl=en . 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
Re: [android-developers] Loading Images Using HttpURLConnection Concurrently
I tested HTTPS and I'm getting a 400 Bad Request error when using mobile data. On WiFi, everything goes through smoothly... wth. On Fri, Apr 5, 2013 at 4:08 PM, bob b...@coolfone.comze.com wrote: Are the images JPEG or PNG? If the carrier is messing with the quality of the images, I would expect them to be more likely to do it with JPEG since it is lossy anyway. If using JPEG, maybe try PNG? Thanks. On Friday, April 5, 2013 11:25:13 AM UTC-5, Alex Fu wrote: I will certainly try that out On Apr 5, 2013 12:22 PM, Robert Greenwalt rgree...@google.com wrote: I'm not suggesting it as a real fix, just as a test. Using https they won't be able to snoop and rescale the images if that's what's really causing it. On Fri, Apr 5, 2013 at 9:11 AM, Alex Fu alex@gmail.com wrote: Didn't think that would be a possibility. These images are less than 1 MB. Whats the reasoning behind using HTTPS? Just out of curiosity. On Apr 5, 2013 11:45 AM, Robert Greenwalt rgree...@google.com wrote: Is it possible your carrier is silently downgrading images to save bandwidth? Perhaps try https? On Fri, Apr 5, 2013 at 7:21 AM, Alex Fu alex@gmail.com wrote: Hello guys, I'm currently facing an issue that I think should be fairly simple. I have a GridView which will get populated with images. If the image can't be found on the local disk, it will attempt to download the image from the network. Images download successfully, however the problem I am having is that the first image downloads just fine, however the second image that is downloaded is in very poor quality and is a fraction of the size it should be (5KB vs 100KB). This only happens when using mobile data connection. On WiFi, images download perfectly. Here is a link to the exact method that is retrieving these images... https://gist.github.**com/alexfu/5319597https://gist.github.com/alexfu/5319597. Any ideas or suggestions are greatly appreciated! -- -- 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=enhttp://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_outhttps://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-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=enhttp://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/**zf4czg611ZU/unsubscribe?hl=enhttps://groups.google.com/d/topic/android-developers/zf4czg611ZU/unsubscribe?hl=en . 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_outhttps://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-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=enhttp://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_outhttps://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-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=enhttp://groups.google.com/group/android-developers?hl
[android-developers] Simple attribute/style question
I have a custom style that I want to apply to my own implementation of EditText. The following link is a summary of how I am trying to get attributes from my custom style... https://gist.github.com/2972687 My goal is to have the style applied when I instantiate this custom EditText regardless if it is instantiated via code or XML and for some reason, when I try to access the *android:textColor* attribute, it returns a -1. I've tried adding other attributes to my style and accessing them results in a -1 as well. It seems as though I can only access the * android:background* attribute. -- 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] addFooterView(view,data,isSelectable) Explanation
Can someone provide an example as to how this function, http://developer.android.com/reference/android/widget/ListView.html#addFooterView(android.view.View, java.lang.Object, boolean), would work? As with a ListView, you need an adapter. Which adapter does this function uses? The same adapter for your ListView? If so how would you determine if the footer view is being passed, assuming your footer view has a different view structure compared to the rows in your ListView. I tried searching for examples but nothing comes up... Can someone please shed some light on this function? -- 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] Replacing a Fragment Inside of ViewPager
In my application I have 2 fragments existing in 1 activity. On orientation change, I would like to have my 2nd fragment to use a different layout and since I have my Activity set with android:configChanges=orientation in the manifest, changes will be managed by the Activity. So I would have to replace my second fragment with a new instance of the same fragment but I am not sure how to do this since both fragments are inside of a ViewPager as well. I originally found this snippet of code: http://pastebin.com/5Ycna2cg but I am not clear on certain parts.. Like, what is mSavedState and why is it adding null to it? The original source of this code is found here: http://stackoverflow.com/questions/7723964/replace-fragment-inside-a-viewpager If someone can give me a clear explanation of how this is done I would be greatly appreciated. Also, the reason I am not letting the application recreate everything on orientation change is because I have some complex data I want to retain. -- 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] Phone State Listener
Does anyone know if the phone's state changes when Airplane mode is on? Because if it does, my onServiceStateChanged function isn't getting triggered. I'm a little confused because here is what Logcat says when I enter Airplane mode... 10-26 09:44:06.080: ERROR/SML(4691): [PHONESTATUS] onServiceStateChanged nNetwork =0 10-26 09:44:06.080: ERROR/SML(4691): [PHONESTATUS] onServiceStateChanged bRoming =false Not exactly sure what this means. -- 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