[android-developers] fail to build uiautomator jar.

2013-12-10 Thread 12169
Hi , I am trying to use UiAutomator tools to test android project. i use the below command to create build.xml /tools/android create uitest-project -n -t 1 -p but when i try to create jar with below command. ant build but get exception Buildfile: C:\RemoteMaxWorkSpace\build.xml -check-e

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

2013-12-10 Thread Amit Mangal
Hi team, i m having grid view which is displaying 2 images per row and having 2 columns. each image is having one image button at its bottom right corner. i need to get relative layout view in which image is displaying on grid view so that i could add some overlay item on the selected button imag

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

2013-12-10 Thread Ab
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... > >

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

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

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

2013-12-10 Thread Palmer Eldritch
As per its docs: Note that you must not modify the collection returned by this method, or > alter any of its contents. The consistency of your stored data is not > guaranteed if you do. > Is there a r

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

2013-12-10 Thread joare...@googlemail.com
Hi there, I am trying to use an sdcard on my built android source: 1) mksdcard -l mysdcard 1024M mysdcardfile.img 2) chmod 777 mysdcardfile.img 3) emulator -sdcard mysdcardfile.img But when I am trying to push anything to the sdcard, I don't have writing permissions: *Failed to push sele

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

2013-12-10 Thread Ab
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 resu

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

2013-12-10 Thread Jeremy Villalobos
It is somewhat clear from reading the documentation about apk expansion files that these files are not intended to be optional files but essential files for the app to function. However, the documentation does not explicitly say that the service should not be used for optional data. http://d

Re: [android-developers] How to parse this json

2013-12-10 Thread Harri Smått
Isn’t that a JSON array of JSON arrays? Should it be no problem to parse outmost JSON array, grab instances of inner JSON arrays and use JSONArray.getString(index) to retrieve the values. Hope I am not too badly mistaken :) — H On 10 Dec 2013, at 06:53, Arun Kumar K wrote: > [ > [ >

Re: [android-developers] How to parse this json

2013-12-10 Thread Justin Anderson
> > How to parse this json Write a json parser. Or use an existing parsing library, like gson. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Dec 9, 2013 at 11:53 PM, Arun Kumar K wrote: > [ > [ > "strServiceToken", > "intVote