This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * This gist was inspired from https://gist.github.com/homam/8646090 which I wanted to work when uploading an image from | |
| * a base64 string. | |
| * Updated to use Promise (bluebird) | |
| * Web: https://mayneweb.com | |
| * | |
| * @param {string} base64 Data | |
| * @return {string} Image url | |
| */ | |
| const imageUpload = async (base64) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.io.Serializable; | |
| public class ContactModel implements Serializable{ | |
| private String name; | |
| private String email; | |
| private String phone; | |
| public ContactModel(String name, String email, String phone) { | |
| this.name = name; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.beatme.app.util; | |
| import android.content.Context; | |
| import android.database.Cursor; | |
| import android.provider.ContactsContract; | |
| import com.beatme.app.service.model.ContactModel; | |
| import java.util.ArrayList; | |
| import java.util.List; |
NewerOlder