[android-developers] Android memory management question
I have bunch of queries regarding android memory management . I know each app is provided with jvm , but how about memory size , do they increase and decrease with respect to other apps on phone? The main part how do jni memory allocation in each jvm taken care ? When accessing one of the android default native methods , where does memory allocation take place? Can low memory cause segmentation faults , when native methods are executed ? Considering the scenario i am trying to test , where there is low memory for my app and native calls can cause issue.What are effective ways to test low memory scenarios on android Thank you -- 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] Asset folder
apart from the folders provided (image, sound and webkit) can we add new folders to asset ??? When i added and used getAssets().list() , it didn not capture the new folders added ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Asset folder
Hi Those folders are not present , but if you create them and files in them and use list with relative path it works Say create image folder under assets and give getAssets().list(image) it will provide all the files under image folder. But i am trying to create folder X, Y and Z and retrieve files in these folders On Jun 10, 11:03 am, Mark Murphy mmur...@commonsware.com wrote: On Fri, Jun 10, 2011 at 1:23 PM, KC203 kavithachandramo...@gmail.com wrote: apart from the folders provided (image, sound and webkit) can we add new folders to asset ??? Those folders aren't provided, unless Eclipse has started adding them and I haven't noticed. You create an assets/ directory in your project and put in there whatever you want, all at compile time. When i added and used getAssets().list() , it didn not capture the new folders added ? I don't know if list() ever returns folders. I think it only returns files. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android 3.0 Programming Books:http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Asset folder
Umm , i tried adding fonts/ and placed a test.txt under it , and wen i called getassets().list(fonts) it returned a String[] of size zero : ( and also list() does not display fonts folder... What am i doing wrong , in eclipse i select assets folder , right click and select create new folder , is there any other way of doing it ??? I am sure sub directories are allowed in assets but not sure if why this behavior On Jun 10, 11:30 am, Mark Murphy mmur...@commonsware.com wrote: On Fri, Jun 10, 2011 at 2:28 PM, RichardC richard.crit...@googlemail.com wrote: See Set up a working space that organizes files for multiple densities in: http://developer.android.com/guide/practices/ui_guidelines/icon_desig... This would sugguest that folders below assets are ignored. I presume that the assets/ there is referring to some directory on a graphic designer's workstation, not an assets/ directory in a project. There would be little value in packaging Photoshop PSD files in your app, as that page suggests. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android 3.0 Programming Books:http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Asset folder
Never mind it is working fine :) Conclusion , Assets folder allows you to create subdirectories and also you to access files with relative path On Jun 10, 11:46 am, KC203 kavithachandramo...@gmail.com wrote: Umm , i tried adding fonts/ and placed a test.txt under it , and wen i called getassets().list(fonts) it returned a String[] of size zero : ( and also list() does not display fonts folder... What am i doing wrong , in eclipse i select assets folder , right click and select create new folder , is there any other way of doing it ??? I am sure sub directories are allowed in assets but not sure if why this behavior On Jun 10, 11:30 am, Mark Murphy mmur...@commonsware.com wrote: On Fri, Jun 10, 2011 at 2:28 PM, RichardC richard.crit...@googlemail.com wrote: See Set up a working space that organizes files for multiple densities in: http://developer.android.com/guide/practices/ui_guidelines/icon_desig... This would sugguest that folders below assets are ignored. I presume that the assets/ there is referring to some directory on a graphic designer's workstation, not an assets/ directory in a project. There would be little value in packaging Photoshop PSD files in your app, as that page suggests. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android 3.0 Programming Books:http://commonsware.com/books -- 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] New added folder to app
Hi , In my android , i am creating multiple folders say X1 , X2 , X3 so on , and each have list of files which needs to be displayed to user for selection I am trying to read the files in say folder X1 , how do i go about doing that , whats the relative path which would help get list of files in folder X1 Thanks Kavitha -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: New added folder to app
But that would be storing and deleting when the app in running on the device , i am packing this folder and files along with .apk On Jun 9, 2:51 pm, Miguel Morales therevolti...@gmail.com wrote: See:http://developer.android.com/guide/topics/data/data-storage.html On Thu, Jun 9, 2011 at 2:49 PM, KC203 kavithachandramo...@gmail.com wrote: Hi , In my android , i am creating multiple folders say X1 , X2 , X3 so on , and each have list of files which needs to be displayed to user for selection I am trying to read the files in say folder X1 , how do i go about doing that , whats the relative path which would help get list of files in folder X1 Thanks Kavitha -- 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 -- ~ Jeremiah:9:23-24 Android 2D MMORPG:http://solrpg.com/,http://www.youtube.com/user/revoltingx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: New added folder to app
Apart from asset and raw is there no way i can define my own folder and try reading files from it ??? I mean , adding an additional folder and reading using relative path seems to be very complicated On Jun 9, 3:16 pm, Miguel Morales therevolti...@gmail.com wrote: Ah, then try checking: file:///android_asset I *believe* this gets converted in the app to the path of your resource folder. On Thu, Jun 9, 2011 at 3:06 PM, KC203 kavithachandramo...@gmail.com wrote: But that would be storing and deleting when the app in running on the device , i am packing this folder and files along with .apk On Jun 9, 2:51 pm, Miguel Morales therevolti...@gmail.com wrote: See:http://developer.android.com/guide/topics/data/data-storage.html On Thu, Jun 9, 2011 at 2:49 PM, KC203 kavithachandramo...@gmail.com wrote: Hi , In my android , i am creating multiple folders say X1 , X2 , X3 so on , and each have list of files which needs to be displayed to user for selection I am trying to read the files in say folder X1 , how do i go about doing that , whats the relative path which would help get list of files in folder X1 Thanks Kavitha -- 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 -- ~ Jeremiah:9:23-24 Android 2D MMORPG: http://solrpg.com/,http://www.youtube.com/user/revoltingx -- 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 -- ~ Jeremiah:9:23-24 Android 2D MMORPG:http://solrpg.com/,http://www.youtube.com/user/revoltingx -- 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] Customizing emulator home page
Hi , When an emulator is launched a default home page is displayed, i want to change the options here and some images. Can we do this ?? Where do i have to tweak the code? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en