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
<?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
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
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 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
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 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 static double EarthRadius = 6378137.0; | |
static double TwoPi = Math.PI * 2, DegreesToRadians = 0.0174532925, RadiansToDegrees = 57.2957795; | |
public static LatLng getLatLng(LatLng source, double range, double bearing) { | |
range = range * 1000; | |
double latA = source.latitude * DegreesToRadians; | |
double lonA = source.longitude * DegreesToRadians; | |
double angularDistance = range / EarthRadius; | |
double trueCourse = bearing * DegreesToRadians; |
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
/***************************************************************************************/ | |
/****************************** Full Screen Theme **************************************/ | |
/***************************************************************************************/ | |
<style name="AppThemeFullScreen" parent="Theme.AppCompat.Light.NoActionBar"> | |
<item name="windowActionBar">false</item> | |
<item name="windowNoTitle">true</item> | |
<item name="android:windowFullscreen">true</item> | |
<item name="android:windowContentOverlay">@null</item> | |
</style> |