DatePickerDialog in Android, date validation

I have a simple activity where a user needs to choose date(date only, without time). I need to make a correct validation. Firstly, i thought to put dayOfMonth, monthOfYear and year into 3 different Text View, then using "if else" write conditions suc...
more »

2017-10-04 20:10 (2) Answers

Appium 1.7.1 with Crosswalk

I’ve noticed that crosswalk integration was added to appium back on may, but i’ve been having problems getting my test script to recognize the webview context once i added crosswalk to my project. I want to be able to write tests using the webvi...
more »

2017-10-04 18:10 (0) Answers

Firestore getProductID cannot be null error

I am trying to use the new Firestore released by Firebase in my android app. Unfortunately I keep getting this error when trying to write to the database. public class MainActivity extends AppCompatActivity { EditText txtName,txtSurname; @Override...
more »

2017-10-04 14:10 (3) Answers

/dev/kvm is not found on Mac OS

I recently updated my Macbook pro to Mac OS High Sierra. Now I'm running into an issue where I can no longer start the emulator in Android Studio. The warning /dev/kvm is not found. is shown. When I tried to start the emulator I get the following er...
more »

2017-10-04 14:10 (2) Answers

Rebuild project in Android Studio MD5 hash

I am getting this message when I try to Rebuild my project but when I run the project everything works well, please any help? Error:Failed to capture snapshot of output files for task 'mockableAndroidJar' property 'outputFile' during up-to-date chec...
more »

2017-10-04 14:10 (0) Answers

View/edit SQLite database on Android emulator

I am developing an app (that uses SQLite) in Android Studio 2.3 on Mac OS and would like to view the SQLite database, but can't seem to find the sqlite file. Where are the AVM files and specifically the sqlite file? I found the AVD folder /Users/&l...
more »

2017-10-03 17:10 (1) Answers

Android studio build apk failed

I get this following error while generating apk or when I am trying to deploy the app to a device, I restarted studio after deleting the .gradle and build folder but it didn't help i has tried the invalidate cache and restart option still i get this ...
more »

2017-10-03 13:10 (1) Answers

load images from url just work for last imageview

now i am trying to make image loader from URL, if its just 1 image and ImageView work fine, but when i do it more than 1, The images are loaded, but just the last ImageView being set. here is the codes public class ImageLoader { private final St...
more »

2017-10-03 06:10 (1) Answers

Base64 encode/decode in ECC encrypt and decrypt

I want to test the ECC algorithm encrypt and decrypt. I write code to: Generate key pair (publickey and privatekey) ---> write them to file (maybe not secure but I just only test). Then using public key to encrypt my string (Write on Java) Now, I ...
more »

2017-10-02 20:10 (1) Answers

How to check Validity of an URL

I am working on a web Browser, I have a SearchView in it, for user to input queries. I want to differentiate between a search query or a web address. My current code just add http://www. in front of any query that comes in and try to load it. This i...
more »

2017-10-02 19:10 (3) Answers

Android webview Override link

I am trying to override the signout link in an android website to redirect to the Intro Activity instead than to the signout page of the website. private class MyWebViewClient extends WebViewClient { @Override public boolean shouldOverrideUr...
more »

2017-10-02 15:10 (1) Answers

Gradle plugin 3.0 rewrite versionName

I migrated to Android studio 3 and using gradle plugin v3.0.0-beta6. I would like to rewrite versionName/vesionCode of output .apk files. I used following code for gradle plugin 2.x in the build.gradle of my Android app module applicationVariants.a...
more »

2017-10-02 11:10 (0) Answers

android:json object giving error

I want to send an JSONObject using retrofit 2 to server and i am sending this kind of json object : {"Order Summary": "[ { \ "ProductName\":\"Wine\", \"ProductPrice\":\"500\", \"ProductQuantity\":\"2\", \"ProductCost\":\"1...
more »

2017-10-01 14:10 (1) Answers