[android-developers] Re: Strange Layout issue on two different devices with same screen size and resolution

2014-02-23 Thread Piren
The difference in scaledDensity is because the font size is different across devices. http://developer.android.com/reference/android/util/DisplayMetrics.html#scaledDensity Regarding the bad layout, post the xml/code relevant to the Published/Draft buttons On Thursday, February 20, 2014

Re: [android-developers] WifiEnterpriseConfig setClientKeyEntry doesn't work with .p12 client cert/key in the keystore

2014-02-23 Thread Nikolay Elenkov
On Sat, Feb 22, 2014 at 9:02 AM, Pradeep Phatak pradeep.pha...@gmail.com wrote: Context- I have stored a password protected .p12 client certificate/key programatically in the Android keystore. During provisioning, Wifi was selected in the dialog (instead of VPN and apps). I want to use it

Re: [android-developers] ContentProvider contains dirty data from a previous JUnit test

2014-02-23 Thread Danny D
As I read your reply, I'm confused now about what's being tested. Are you testing the ContentProvider or the Activity? If testing the Activity, it may be better to create a MockContentProvider that's responsible for providing back the info. If testing the ContentProvider, skip the Activity

Re: [android-developers] ContentProvider contains dirty data from a previous JUnit test

2014-02-23 Thread Code Guru
In this case, I am testing the activities of my app with ActivityInstrumentationTestCase2. (I also have tests for the ContentProvider using ProviderTestCase2.) The two tests that I outlined earlier are for the data entry activity. I want to verify that the data entered is inserted into the

Re: [android-developers] ContentProvider contains dirty data from a previous JUnit test

2014-02-23 Thread Kostya Vasilyev
I think you're seeing normal Unix (and Linux) file system semantics, with respect to deleting a file that's currently open. This unlinks the name from the underlying file system, but the file itself continues to stay open, and has same content as before unlinking -- until the process that has the

[android-developers] Download folder

2014-02-23 Thread yves...@gmail.com
This is the strangest thing. -- 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] Download folder

2014-02-23 Thread yves...@gmail.com
This is the strangest thing. This problem I found is on Nexus 5. Maybe this applies to all Android devices. I downloaded a picture from gmail, and from Gallery, i can see that picture. By click on Details, I can see the file path is /storage/emulated/0/Download/12345.jpg. Then in my app, I

[android-developers] Gradle and amazon libs?

2014-02-23 Thread Larry Meadors
I've been fighting with this all weekend and could use some help. Hope this isn't tl;dr. :-/ Short version: I'm looking for a way to add a provided scope, but the trick where you add a provided configuration doesn't seem to work with android apps that use productFlavors. I have an application

Re: [android-developers] Download folder

2014-02-23 Thread TreKing
On Sun, Feb 23, 2014 at 6:41 PM, yves...@gmail.com yves...@gmail.comwrote: Then in my app, I tried to access that picture, it says file is not found. What API level are you running and how are you accessing the file?

Re: [android-developers] Download folder

2014-02-23 Thread Yves Liu
TreKing, Here is the code snippet File file = new File( /storage/emulated/0/Download/12345.jpg); if(file.exists()) return true; And another file which I can see through astro file manager there works. On Sun, Feb 23, 2014 at 10:20 PM, TreKing treking...@gmail.com wrote: On Sun, Feb

Re: [android-developers] Download folder

2014-02-23 Thread TreKing
On Mon, Feb 24, 2014 at 12:27 AM, Yves Liu yves...@gmail.com wrote: Here is the code snippet OK, first thing is you should not be hard-coding paths. Use the external storage APIs. Second, you didn't answer the other question: which platform version are you running on?