[android-developers] Re: Dolby Audio API

2014-02-22 Thread Ubuntu guy
Thanks Eric. However, i still don't get as to why the service can't be 
distributed through the play store. Even if its installed in unsupported 
devices, the APIs like getDolbyAudioProcessing(...,...) could just return 
null and applications would anyways be handling such cases, isn't it?

   The pro being any quick fix to the service can be deployed quickly via 
play store rather than being bottlenecked by OEM's update schedule, which 
is often influenced by many factors and there by delaying the dolby's fix.

On Thursday, February 20, 2014 1:41:24 PM UTC-8, Eric Ang wrote:

 Hey Ubuntu, the reason the API isn't bundled is because the API makes 
 callbacks to the underlying Dolby Tech built into supported Devices. The 
 Dolby Service is definitely in Amazon Devices, but also many other OEMS. 
 We're working to get ALL OEM partners to adopt the Dolby Solution 
 (including the Dolby decoder)

 So what does that means for App Developers? Instead of having to deal with 
 a whole SDK built into your app, you integrate a small jar file that's tiny 
 which can talk to the underlying Dolby tech found on supported devices.

 We are working all those companies ;) Amazon is definitely pushing for 
 this since all their Kindle Fire HD(X) devices have Dolby built in.


 http://developer.amazon.com/public/community/post/Tx1G2N72C7VKCTR/Dolby-Raises-the-Bar-Again-for-Audio-Standards-on-Kindle-Fire



 On Sunday, January 5, 2014 7:18:12 PM UTC-8, Ubuntu guy wrote:


   These new APIs seem to be fun to try but is there any reason as to why 
 the plug-in service is not distributed through play store just like google 
 play services?
 Based on what i read, any updates, bug fixes in the plug-in service would 
 be restricted by the OEM like amazon in this case, isn't it? This isn't 
 good for users and application developers.

   Besides, whats the idea behind the plug in service? Why not let the 
 linked jar to directly call upon Dolby's audio components? Is it because of 
 permissions?
 Finally, hope you guys work directly work with companies like Netflix, 
 Google, Amazon and popular games for quick adoption.

 On Thursday, January 2, 2014 2:17:40 PM UTC-8, Eric Ang wrote:

 Hey Everyone,

 I recently joined Dolby Laboratories and Dolby has an Android Audio API 
 which enhances Audio.

 Is this something you folks would be interested in?

 It's a Java Library with a few simple API calls.

 Anyways, I'd like to use this to get feedback as well.

 The API is available at http://developer.dolby.com

 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
--- 
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] ContentProvider contains dirty data from a previous JUnit test

2014-02-22 Thread codeguru
Two of my JUnit tests against my app pass when I run them separately but 
fail when run consecutively.

The two tests run through the following sequence of actions:

*Test 1:*

   1. 
   
   Insert a single row to the database.
   
   This all occurs within the app using getContentResolver().insert().
   2. 
   
   Clean up the test.
   
   In particular, I delete the database using 
   context.deleteDatabase(DB_NAME);.
   
*Test 2:*

   1. 
   
   Insert multiple rows to the database.
   
   This again occurs within the app using multiple calls to 
   getContentResolver.insert(). The data inserted to the database includes 
   the data for the single row from Test 1. When this row of data is reached 
   in test 2, the test fails.
   
From what I can tell, the ContentProvider in Test 2 still sees the data 
added during Test 1. I suspect this is due to my method of cleaning up the 
test. I verified with adb shell that the database file is deleted when Test 
1 cleans up and that it is recreated when Test 2 starts.

How do I correctly clean up the first test so that the second test doesn't? 
I guess I could split the two test methods into two separate classes. Even 
if this works, it means that I will have to split up other classes with 
even more test methods that experience the same issue. Does anyone have 
other suggesions?

Code Guru

-- 
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] ContentProvider contains dirty data from a previous JUnit test

2014-02-22 Thread Danny D
Is the object instance for the content provider different between test runs? 
How are you destroying and recreating the ContentProvider?

I suspect that if the Application instance is the same between test runs the 
ContentProvider might be too.  It's created at the Application level through 
the manifest, so you may need to use an ApplicationTestCase or something 
similar to be sure that the App instance is killed and restarted between tests.

-- 
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] ContentProvider contains dirty data from a previous JUnit test

2014-02-22 Thread Code Guru
The `ContentProvider` is created indirectly by calling
`getContentResolver()` from inside a method of the `Activity` under test. I
will have to look into using `ApplicationTestCase` as you suggest.


On Sat, Feb 22, 2014 at 11:44 PM, Danny D daniel.m.dev...@gmail.com wrote:

 Is the object instance for the content provider different between test
 runs? How are you destroying and recreating the ContentProvider?

 I suspect that if the Application instance is the same between test runs
 the ContentProvider might be too.  It's created at the Application level
 through the manifest, so you may need to use an ApplicationTestCase or
 something similar to be sure that the App instance is killed and restarted
 between tests.

 --
 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/oOCF2V8tf90/unsubscribe
 .
 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] ContentProvider contains dirty data from a previous JUnit test

2014-02-22 Thread Code Guru
My current test class extends `ActivityInstrumentationTestCase2`. If I
change it to extend `ApplicationTestCase`, how do I start an activity?


On Sun, Feb 23, 2014 at 12:16 AM, Code Guru codegur...@gmail.com wrote:

 The `ContentProvider` is created indirectly by calling
 `getContentResolver()` from inside a method of the `Activity` under test. I
 will have to look into using `ApplicationTestCase` as you suggest.


 On Sat, Feb 22, 2014 at 11:44 PM, Danny D daniel.m.dev...@gmail.comwrote:

 Is the object instance for the content provider different between test
 runs? How are you destroying and recreating the ContentProvider?

 I suspect that if the Application instance is the same between test runs
 the ContentProvider might be too.  It's created at the Application level
 through the manifest, so you may need to use an ApplicationTestCase or
 something similar to be sure that the App instance is killed and restarted
 between tests.

 --
 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/oOCF2V8tf90/unsubscribe
 .
 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.