Re: [android-developers] Re: Activty on orientation

2014-02-12 Thread Rahul Kaushik
its a native app and i don't need to access the internet,i have to show the same data which was in horizontal orientaion On Thu, Feb 13, 2014 at 4:20 AM, Guy Smith wrote: > I've found creating Views - even view hierarchies - quite fast. But > accessing data can be slower, especially over the i

[android-developers] TextView maxLines based on height

2014-02-12 Thread Ankur Avlani
Hi All, I am designing an native custom article view in android. My requirement is such that I have a "long" text which i need to break into pages. I can find out the total height of my TextView, how do i calculate the max visible lines for the view based on the height? I know Paint.breakText w

[android-developers] Adding AAR library to my libs directory in Android Studio causes "duplicate files during packaging of APK " error

2014-02-12 Thread MarkG123
The error suggests it's a problem with duplicate AndroidManifest.xml (which there are, one in the main project, one in the aar library project). What have I done wrong? Surely this is something the build system can handle? (the AAR was generated by Android Studio too). Executing tasks: [:te

[android-developers] Android Studio - libraries always called classes.jar

2014-02-12 Thread MarkG123
I can't seem to find anywhere to set the output filename of my class in Android studio. I have looked in the project setting, and the god-awful gradle files that get spewed all over the place. Am I missing something obvious? (other than renaming by hand). Thanks. -- You received this message

[android-developers] Re: forcing more GC_FOR_ALLOC

2014-02-12 Thread Nobu Games
Could you tell a bit more about the game: - What Android version are you testing on? - Do you draw graphics using OpenGL ES or Canvas? - How many bitmaps or textures do you use at a time? - What's the average resolution and bit depth of your bitmaps / textures? - Do you scale or process bitmaps on

[android-developers] Re: Activty on orientation

2014-02-12 Thread Guy Smith
I’ve found creating Views – even view hierarchies – quite fast. But accessing data can be slower, especially over the internet. Do you need to keep your view hierarchy, or just a cache of your data, between invocations of onCreate()? On Saturday, February 8, 2014 10:38:40 PM UTC+10, rahul k

[android-developers] forcing more GC_FOR_ALLOC

2014-02-12 Thread firebreather
i'm recycling large bitmap files for my game in hopes of avoiding out of memory errors. however the system does not appear to be making the memory available for new bitmap allocation and no matter how many bitmaps I recycle it always appears to crashe at the same time as if I didn't recycle a