[android-developers] Re: Android Studio unit testing useless

2015-11-05 Thread Paulo Morandi
Hello, Here at our company we use Robolectric + PowerMock + Mockito for Unit Tests and works really fine. It's fast and don't need the emulator or device to run the tests. I think you should check this out. Of course, still somehow slow to build (due the gradle build), but the run of tests

[android-developers] handling data migration in android application upgradation

2015-11-05 Thread Jags
Hi All, I need to implement data migration in my app. I have an sqlitedb which is synchronized to cloud. my problem is to find best way to handle data migration on app update. my questions are below. - does my existing data and database get deleted on app upgrade ? - is it possible to invoke

[android-developers] Re: handling data migration in android application upgradation

2015-11-05 Thread Streets Of Boston
Read this first https://developer.android.com/reference/android/database/sqlite/SQLiteOpenHelper.html In the onUpgrade helper you can execute SQL statements to add columns, add/alter tables, drop tables, etc., whatever your need is. Here is some more info

[android-developers] Re: Android Studio unit testing useless

2015-11-05 Thread Streets Of Boston
The tests run fast. The building of the changed code is what takes way too long. On Thursday, November 5, 2015 at 7:07:20 AM UTC-5, Paulo Morandi wrote: > > Hello, > > Here at our company we use Robolectric + PowerMock + Mockito for Unit > Tests and works really fine. It's fast and don't need

[android-developers] strange behavior of AutocompleteTextView on Samsung

2015-11-05 Thread yaturner
This appears to happen only on Samsung Galaxy devices, If I have an AutoCompleteTextView and I type a letter that does not match anything in the backing MatrixCursor, I do not get any dropdown values or completions. This is as it should be, if I type a second letter, the first letter is