Solutions

Solutions for different problems, might not contain code

  1. Home
  2. chevron_right
  3. Solutions

Android Parse JSON file from Assets

turned_in_not,
commentNo Comments
Under src/main add new directory named “assets“. Inside this directory add your json file. Create a Utils class to add the method that will read your json file from assets. import android.content.Context; import android.util.Log; import java.io.IOException; import java.io.InputStream; public class…

Android Bottom Border Line

commentNo Comments
The simplest way to add a bottom border line to a view is this one. If you search on Google and StackOverflow you will find many ways to do this, but they seemed overly complex compared to this one. So…
Menu