[android-developers] Unit Testing Functional Testing

2010-12-06 Thread Etienne
I have created an app that sends intents among multiple activities. After doing some research i have found that the ActivityUnitTestCase class is designed for unit testing while the ActivityInstrumentationTestCase2 is designed for functional testing. I understand the use of methods such as

[android-developers] Setting up a test project issues

2010-12-08 Thread Etienne
On the developer.android.com website there is a guide to testing android that says: You can create a test project anywhere in your file system, but the best approach is to add the test project so that its root directory tests/ is at the same level as the src/ directory of the main application's

[android-developers] TextView.setError() strange behavior

2010-12-09 Thread Etienne
The documentation for the method TextView.setError() says that the method: Sets the right-hand compound drawable of the TextView to the error icon and sets an error message that will be displayed in a popup when the TextView has focus. The icon and error message will be reset to null when any key

[android-developers] Re: TextView.setError() strange behavior

2010-12-09 Thread Etienne
); return false; } }); Now the setError behavior works fine. Issue Resolved. On Dec 9, 2:07 am, Etienne lawloretie...@gmail.com wrote: The documentation for the method TextView.setError() says that the method: Sets the right-hand compound drawable of the TextView to the error icon

[android-developers] admob ads in android app not showing all the time

2010-12-13 Thread Etienne
Hello, so i am creating an android app. I have followed the tutorial and example on the admob website. I requestFreshAd() in test mode and then setTestDevices(). This works most of the time but not all the time. I understand that requestFreshAd() is making a request for an ad and needs internet

[android-developers] Unit Testing Functional Testing

2010-12-14 Thread Etienne
I have created an app that sends intents among multiple activities. After doing some research i have found that the ActivityUnitTestCase class is designed for unit testing while the ActivityInstrumentationTestCase2 is designed for functional testing. I understand the use of methods such as

[android-developers] Re: Unit Testing Functional Testing

2010-12-15 Thread Etienne
So when you say: In general, you test the result of a method by creating the object with all the dependencies set to known values (the fixture), preferably by injection. Then you call the method with pre-determined values. Based on the dependencies as the values, you should be able to predict

[android-developers] Re: Parse application/smil MMS MIME type on android

2012-07-23 Thread Etienne
This question was first asked HERE - http://stackoverflow.com/questions/11556633/parse-application-smil-mms-mime-type-on-android -- 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] Re: SimpleCursorTreeAdapter and CursorLoader for ExpandableListView

2012-07-26 Thread Etienne
This has been solved HERE http://stackoverflow.com/questions/10611927/simplecursortreeadapter-and-cursorloader-for-expandablelistview -- 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] Re: Scenario where initLoader() does not call onLoadFinished()

2012-07-26 Thread Etienne
Actually it should be: Loader loader = getLoaderManager().getLoader(-1); if (loader != null !loader.isReset()) { getLoaderManager().restartLoader(-1, null, this); } else { getLoaderManager().initLoader(-1, null, this); } You should only restart the loader if the loader

[android-developers] Global variable extend application class

2012-04-07 Thread Etienne
So I am trying extend the base android.app.Application class and add member variables to create global variables like in this first solution of the link below. Android global variablehttp://stackoverflow.com/questions/1944656/android-global-variable This works if the member variable is a

[android-developers] Re: Global variable extend application class

2012-04-07 Thread Etienne
appropriately. However when i access the HashMap variable its value is set to '{}', an empty HashMap. Is there some kind of Serialization that needs to happen with a complex data type? On Saturday, April 7, 2012 7:13:09 PM UTC-7, Etienne wrote: So I am trying extend the base android.app.Application class

[android-developers] Re: Global variable extend application class

2012-04-07 Thread Etienne
. However when i access the HashMap variable its value is set to '{}', an empty HashMap. Is there some kind of Serialization that needs to happen with a complex data type? On Saturday, April 7, 2012 7:13:09 PM UTC-7, Etienne wrote: So I am trying extend the base android.app.Application class

[android-developers] Re: Global variable extend application class

2012-04-07 Thread Etienne
In fact, I am now setting three member variables in onActivityResult() (a boolean, a String, and a HashMap), and i am trying to access these member variables in the onClick() method of a button's onClickListener. When i access the string and boolean variables their values are set appropriately.

[android-developers] Re: Global variable extend application class

2012-04-07 Thread Etienne
I have also added an ArrayListBoolean as a member variable and when i accessed this variable in the onclick() method it was set correctly. Possibly HashMaps must be set differently. I'm not too sure are this point. -- You received this message because you are subscribed to the

Re: [android-developers] Global variable extend application class

2012-04-08 Thread Etienne
Here is the my subclass of Application public class MyApp extends Application { private HashMapString, Boolean selectedContacts = null; public HashMapString, Boolean getSelectedContacts() { return this.selectedContacts; } public void setSelectedContacts(HashMapString, Boolean sc) {

Re: [android-developers] Global variable extend application class

2012-04-08 Thread Etienne
The HashMap is valid when i put it in the Intent, and when I get it back it is also valid. UPDATE: So I fixed this issue. In my onActivityResult, I was iterating through the HashMap like so: IteratorEntryString, Boolean it = sc.entrySet().iterator(); while (it.hasNext()) { HashMap.Entry

Re: [android-developers] Global variable extend application class

2012-04-08 Thread Etienne
I am using the application object to maintain global application state. What are the disadvantages of sub-classing the Application class? And what advantages do SharedPreferences have over my solution? -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] AlphabetIndexer with Custom Adapter managed by LoaderManager

2012-04-25 Thread Etienne
25.04.2012 11:02, Etienne написал: And if I comment the setFastScrollEnabled() call, then it does not error out, but I do not see the AlphabetIndexer working. Does anyone have suggestions about how to make this all work? -- Kostya Vasilyev -- You received this message because you

Re: [android-developers] AlphabetIndexer with Custom Adapter managed by LoaderManager

2012-04-26 Thread Etienne
I now got this to work. The solution is here http://stackoverflow.com/questions/10224233/alphabetindexer-with-custom-adapter-managed-by-loadermanager On Wednesday, April 25, 2012 9:30:36 PM UTC-7, Etienne wrote: Here is the stack trace: 04-25 01:37:23.280: E/AndroidRuntime(711): FATAL

Re: [android-developers] How to reload app without restarting emulator

2012-01-23 Thread Etienne
To reload an app without restarting emulator, just uninstall the app on the emulator, then in Eclipse choose to run the application. This will reinstall the application and run the latest version of your app on the current emulator. This is the fastest process of reloading an app that I have

[android-developers] Re: correct use of Loaders with ExpandableListView (honeycomb)

2012-05-16 Thread Etienne
I am doing something similar HERE http://stackoverflow.com/questions/10611927/simplecursortreeadapter-and-cursorloader On Tuesday, July 12, 2011 8:01:06 AM UTC-7, jjoe64 wrote: Hello. For honeycomb I'm refectoring my app to use the new Loader classes introduced here:

[android-developers] Re: correct use of Loaders with ExpandableListView (honeycomb)

2012-05-16 Thread Etienne
I am doing something similar HERE http://stackoverflow.com/questions/10611927/simplecursortreeadapter-and-cursorloader On Tuesday, July 12, 2011 8:01:06 AM UTC-7, jjoe64 wrote: Hello. For honeycomb I'm refectoring my app to use the new Loader classes introduced here:

[android-developers] Re: v4 compatibility support for SimpleCursorTreeAdapter

2012-05-16 Thread Etienne
I am doing something similar HERE http://stackoverflow.com/questions/10611927/simplecursortreeadapter-and-cursorloader On Monday, March 5, 2012 5:04:30 PM UTC-8, OldSkoolMark wrote: I note that unlike SimpleCursorAdapter, SimpleCursorTreeAdapter doesn't have static library support defined in

[android-developers] Re: CursorLoader vs AsyncQueryHandler?

2012-05-16 Thread Etienne
I am doing something similar HERE http://stackoverflow.com/questions/10611927/simplecursortreeadapter-and-cursorloader On Wednesday, February 22, 2012 7:19:08 AM UTC-8, Hank wrote: I have seen sample code on how to implement both a CursorLoader and a AsyncQueryHandler. If I wanted to use

[android-developers] Re: How to implement a filter with an expandablelistview backed by a cursor

2012-05-16 Thread Etienne
I am doing something similar HERE http://stackoverflow.com/questions/10611927/simplecursortreeadapter-and-cursorloader On Monday, February 21, 2011 12:45:22 AM UTC-8, Richard Marsh wrote: I'm just a little stumped on this. I would like to implement some sort of filter or search functionality

[android-developers] Re: SimpleCursorTreeAdapter and CursorLoader for ExpandableListView

2012-05-22 Thread Etienne
Is there an issue with how the group/child CursorLoaders are instantiated in onCreateLoader()? -- 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

[android-developers] Re: SimpleCursorTreeAdapter and CursorLoader for ExpandableListView

2012-05-24 Thread Etienne
I am thinking there is a problem with how the group/child CursorLoaders are instantiated in onCreateLoader(). For the group CursorLoader i just want all groups in my phone. The child cursorLoader should contain all contacts within a group. Does anyone have any ideas what could be the

[android-developers] Contact Bubble EditText

2012-05-30 Thread Etienne
I am trying to create contact bubbles in the MultiAutoCompleteTextView similiar to how it is implemented in the Google+ app. Below is a screen shot: [image: Google+ Compose Post Screenshot] . I have tried to extend the DynamicDrawableSpan class in order to get a spannable drawable in the

[android-developers] Re: Contact Bubble EditText

2012-05-31 Thread Etienne
Question first asked HERE http://stackoverflow.com/questions/10812316/contact-bubble-edittext/10815184#10815184 -- 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

[android-developers] Re: Contact Bubble EditText

2012-06-06 Thread Etienne
This has been solved HERE http://stackoverflow.com/questions/10812316/contact-bubble-edittext/10815184#10815184 -- 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

[android-developers] Android Alarm Clock UI

2012-11-28 Thread Etienne
[image: enter image description here] I am trying to figure out how the UI was designed for the Android Alarm Clock app. This appears to be using the Holo Dark Theme. The screenshot included is the Create/Edit Alarm Activity screen. It looks similar to Android

[android-developers] Re: Android Alarm Clock UI

2012-11-28 Thread Etienne
Originally posted here : http://stackoverflow.com/questions/13523350/android-alarm-clock-ui/13523970#comment18608151_13523970 -- 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] AutoCompleteTextView behaves differently in different versions of android

2012-12-30 Thread Etienne
I am not clear whether this is an issue with different versions of Android, or different screen sizes, but I am getting some unpredictable behavior. I am testing the UI of the dropdown of a MultiAutoCompleteTextView on a Nexus S which is onAndroid v4.1.2 and I am testing on a Nexus 4 which is

[android-developers] Re: AutoCompleteTextView behaves differently in different versions of android

2013-01-02 Thread Etienne
Originally Posted : http://stackoverflow.com/questions/14048913/autocompletetextview-behaves-differently-in-different-versions-of-android -- 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] Re: Moving the cursor to the beginning of an EditText

2013-01-02 Thread Etienne
This doesnt work in my case. The setSelection() method seems to have no effect. My EditText view contains ImageSpans. Is there some other kind of workaround? On Tuesday, February 16, 2010 7:22:40 PM UTC-8, Kevin Park wrote: You can do it like this. EditText eidtText = new

Re: [android-developers] Set carat/cursor position for EditText?

2013-01-03 Thread Etienne
This doesnt work in my case. The setSelection() method seems to have no effect. My EditText view contains ImageSpans. Is there some other kind of workaround? On Thursday, February 28, 2008 6:43:29 PM UTC-8, Megha Joshi wrote: Hi, This request has been made before and a method for handling

[android-developers] Re: Sending and Receiving SMS/MMS in Android

2013-01-24 Thread Etienne
Originally Posted here : http://stackoverflow.com/questions/14452808/sending-and-receiving-sms-mms-in-android -- 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

[android-developers] Re: Sending and Receiving SMS/MMS in Android

2013-03-13 Thread Etienne
*Receiving MMS* So after doing more research I saw some suggestions of registering a ContentObserver. That way you can detect when there are any changes to the content://mms-sms/conversations Content Provider, consequently allowing you to detect incoming MMS. Here is the closest example to

[android-developers] Re: Sending and Receiving SMS/MMS in Android

2013-03-23 Thread Etienne
This now has a 200 Reputation Bounty !!! http://stackoverflow.com/questions/14452808/sending-and-receiving-sms-and-mms-in-android -- -- 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] Re: Sending and Receiving SMS/MMS in Android

2013-04-26 Thread Etienne
Unfortunately this questions still remains unanswered and is now up to 7100 views : http://stackoverflow.com/questions/14452808/sending-and-receiving-sms-and-mms-in-android Anyone have any ideas? -- -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Get context of PopupMenu like ContextMenu

2013-05-18 Thread Etienne
So my ExpandableListView has group rows that are defined like : *group_row.xml* ?xml version=1.0 encoding=utf-8?RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=match_parent android:layout_height=match_parent TextView

[android-developers] Re: Get context of PopupMenu like ContextMenu

2013-05-18 Thread Etienne
This was originally posted HERE http://stackoverflow.com/questions/16621070/get-context-of-popupmenu-like-contextmenu -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Get context of PopupMenu like ContextMenu

2013-05-24 Thread Etienne
Hey Kostya, Thanks. The getTag() and setTag() methods of a View are exactly what i needed. -Etienne -- -- 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

Re: [android-developers] Get context of PopupMenu like ContextMenu

2013-05-24 Thread Etienne
Hey Kostya, Thanks. The getTag() and setTag() methods of a View are exactly what i needed. -Etienne -- -- 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

[android-developers] Implementations of Emoji (Emoticon) View/Keyboard Layouts

2013-05-27 Thread Etienne
I am trying to figure out how the emoji (emoticon) selections are implemented on the Facebook app and the Google Hangouts app. I looked into the SoftKeyboard Demo app in the Android API Samples but the display of these emoji views does not look like a SoftKeyboard. It looks and behaves more

[android-developers] Re: Implementations of Emoji (Emoticon) View/Keyboard Layouts

2013-05-27 Thread Etienne
This was originally posted HERE!!! http://stackoverflow.com/questions/16768930/implementations-of-emoji-emoticon-view-keyboard-layouts -- -- 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] Re: Sending and Receiving SMS/MMS in Android

2013-06-07 Thread Etienne
Still no clear cut way to send and receive MMS. How are other apps implementing this? -- -- 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

[android-developers] Overriding referenced style attributes

2013-06-14 Thread Etienne
After reading through References To Theme Attributeshttp://developer.android.com/guide/topics/resources/accessing-resources.html#ReferencesToThemeAttributes I am trying to reference the value of an attribute in the my custom theme that I have set. I am applying a user-defined style to a

[android-developers] Re: Overriding referenced style attributes

2013-06-14 Thread Etienne
Originally posted HERE - http://stackoverflow.com/questions/17103894/overriding-referenced-style-attributes -- -- 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

[android-developers] Re: Overriding referenced style attributes

2013-06-18 Thread Etienne
I tried setting the Theme in the AndroidManifest.xml file as well as tried to set the theme in the onCreate() method of my Activity, before the super.onCreate(savedInstanceState) method was called but am having no luck with overriding the style attribute. -- -- You received this message

[android-developers] Picasso loading of image spawned inside AsyncTask

2013-09-14 Thread Etienne
So I am trying to use the a href=http://square.github.io/picasso/;Picasso Library/a for image downloading and caching. In order to get the contactUri to pass to `Picasso` I need to make a query to the Contacts `Content Provider`. Since I don't want to block the main UI thread to get the

[android-developers] Re: Picasso loading of image spawned inside AsyncTask

2013-09-16 Thread Etienne
This was originally posted HERE - http://stackoverflow.com/questions/18808114/picasso-loading-of-image-spawned-inside-asynctask -- 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] Receive MMS messages in Android KitKat

2014-02-13 Thread Etienne
So this video from #DevBytes https://plus.google.com/s/%23DevBytes SMS APIs KITKAT http://www.youtube.com/watch?v=mdq0R2WQssQ explains the recent changes to the SMS APIs in KitKat. They also provide a link with a sample project. http://goo.gl/uQ3Nih They suggest that you handle the receive

[android-developers] Re: Receive MMS messages in Android KitKat

2014-02-13 Thread Etienne
Originally posted HERE http://stackoverflow.com/questions/21748209/receive-mms-messages-in-android-kitkat -- 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

[android-developers] Request location updates in IntentService instead of Activity

2015-04-01 Thread Etienne
So these google samples set up location updates in an Activity but can this logic be moved to an IntentService? I have been searching but can't find any examples of managing location updates in a Service, including checking to see if Location Settings is on for the device.

Re: [android-developers] Re: Setting up a test project issues

2010-12-08 Thread Etienne Lawlor
Yes i am using Eclipse. I did all of your steps up to the point where you said So, if you used /home/etienne/workspace/MyProject as the location for your app project, use the location /home/etienne/workspace/MyProject/ tests as the location for your test project. When i click finish, then i get

Re: [android-developers] Re: Setting up a test project issues

2010-12-08 Thread Etienne Lawlor
as an andrdoid instrumentation. On Dec 8, 2010 11:51 AM, Etienne Lawlor lawloretie...@gmail.com wrote: Yes i am using Eclipse. I did all of your steps up to the point where you said So, if you used /home/etienne/workspace/MyProject as the location for your app project, use the location

Re: [android-developers] Re: Setting up a test project issues

2010-12-08 Thread Etienne Lawlor
pre-associated with an application project. That is, you'd like a single button associated with your application that runs the tests for the application. It's certainly possible to do this in Ant, by setting up the proper target. It's an interesting idea. A. Elk. On Dec 8, 2:45 pm, Etienne

Re: [android-developers] Re: Setting up a test project issues

2010-12-09 Thread Etienne Lawlor
Yes i was looking at the latest docs for Gingerbread (2.3). On Thu, Dec 9, 2010 at 10:08 AM, A. Elk lancaster.dambust...@gmail.comwrote: Are you looking at the latest docs for Gingerbread (2.3)? On Dec 8, 5:32 pm, Etienne Lawlor lawloretie...@gmail.com wrote: Thanks for the clarification

[android-developers] Dalvik VM performance

2012-10-25 Thread Etienne Fortin
? Was it tried before? Etienne -- 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

[android-developers] overlay webcam

2012-01-20 Thread Etienne Le Néchet
Hello, I develop an application which use camera...but I want an overlay. I want draw a circle which allows a person to place his head properly for face recognition. What are method to implement that? -- You received this message because you are subscribed to the Google Groups Android