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
public class Constants { | |
public static final String URL = "http://404server.com"; | |
public static final String USER_IMEI = "USER_IMEI"; | |
public static final String USER_FCM = "USER_FCM"; | |
public static final String USER_ID = "USER_ID"; | |
public static final String USER_EMAIL = "USER_EMAIL"; | |
public static final String USER_MOBILE = "USER_MOBILE"; | |
public static final String USER_NAME = "USER_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
public class CTextView extends TextView { | |
public static final String ANDROID_SCHEMA = "http://schemas.android.com/apk/res/android"; | |
public CTextView(Context context, AttributeSet attrs) { | |
super(context, attrs); | |
applyCustomFont(context, attrs); | |
} |
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
public class CEditText extends TextInputEditText { | |
public static final String ANDROID_SCHEMA = "http://schemas.android.com/apk/res/android"; | |
public CEditText(Context context, AttributeSet attrs) { | |
super(context, attrs); | |
applyCustomFont(context, attrs); | |
} | |
public CEditText(Context context, AttributeSet attrs, int defStyle) { |
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.util.Arrays; | |
import java.util.LinkedList; | |
import java.util.List; | |
/** | |
* Created by arthtilva | |
*/ | |
public class MultiSelectDialog { | |
String[] _items = null; | |
boolean[] mSelection = null; |
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
public void createNewAccount() { | |
isLoginComplete = false; | |
if (checkInternetAvailable() == false) { | |
isConnected = false; | |
return; | |
} | |
new AsyncTask<Void, Void, Boolean>() { | |
@Override |
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
<?php | |
$conn = mysqli_connect("localhost","dinesh","_[#*cch(LpEB","dinesh_accident_report") or die(mysql_error()); | |
$street=$_REQUEST['street']; | |
$place=$_REQUEST['place']; | |
$description=$_REQUEST['description']; | |
$latitude=$_REQUEST['latitude']; | |
$longitude=$_REQUEST['longitude']; | |
$date=$_REQUEST['date']; | |
$images=""; |
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
private boolean unpackZip(String path, String zipname) | |
{ | |
InputStream is; | |
ZipInputStream zis; | |
try | |
{ | |
String filename; | |
is = new FileInputStream(path + zipname); | |
zis = new ZipInputStream(new BufferedInputStream(is)); | |
ZipEntry ze; |
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
Uri ImagefileUri; | |
int hasStoragePermission, hasCameraPermission, GALLERY_CLICK = 100, CAMERA_CLICK = 101; | |
File appImageFolder; | |
boolean askOnceAgain = false; | |
hasStoragePermission = ContextCompat.checkSelfPermission(activity, Manifest.permission.WRITE_EXTERNAL_STORAGE); | |
if (hasStoragePermission != PackageManager.PERMISSION_GRANTED) { | |
ActivityCompat.requestPermissions(activity, new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE}, | |
11); | |
} else { |
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
public class ImageFilePath | |
{ | |
/** | |
* Method for return file path of Gallery image | |
* | |
* @param context | |
* @param uri | |
* @return path of the selected image file from gallery |