This file contains 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
a single * in python changes the whole thing | |
In this example ,i am working with backend server to validate my credentials.unfortunately i got the error like Wrong Credentials. | |
putting before * makes sense for me for that f****g problem |
This file contains 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
keytool -list -v -keystore "%USERPROFILE%\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android | |
USERPROFILE -->C:\Users\trina\.android\debug.keystore |
This file contains 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
320dp: a typical phone screen (240x320 ldpi, 320x480 mdpi, 480x800 hdpi, etc). | |
480dp: a tweener tablet like the Streak (480x800 mdpi). | |
600dp: a 7” tablet (600x1024 mdpi). | |
720dp: a 10” tablet (720x1280 mdpi, 800x1280 mdpi, etc). | |
The Max widths are as follows |
This file contains 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
/** | |
* try to get the 'best' location selected from all providers | |
*/ | |
private Location getBestLocation() { | |
Location gpslocation = getLocationByProvider(LocationManager.GPS_PROVIDER); | |
Location networkLocation = | |
getLocationByProvider(LocationManager.NETWORK_PROVIDER); | |
// if we have only one location available, the choice is easy | |
if (gpslocation == null) { | |
Log.d(TAG, "No GPS Location available."); |
This file contains 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
Code Structure | |
activities | |
Contains all the activities. Classes are all named with Activity at the end. That way, you can immediately know what it is when reading Java code that doesn't have its full package name. | |
adapters | |
Contains all the adapters. |
This file contains 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.emil.android.util; | |
import android.content.Context; | |
import android.location.Location; | |
import android.location.LocationListener; | |
import android.location.LocationManager; | |
import android.os.Bundle; | |
import android.util.Log; | |
/** |
This file contains 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 NetworkHelper extends Fragment { | |
public static final String TAG = "NetworkHelper"; | |
public static final String CHECK_INTERNET = "network_connection"; | |
private Activity mActivity; | |
AlertDialog mAlertDialog = null; | |
private BroadcastReceiver onNotice = new BroadcastReceiver() { | |
@Override |
This file contains 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 React, {Component} from 'react' | |
import {connect} from 'react-redux' | |
export default function (ComposedComponent) { | |
class Authentication extends Component { | |
componentWillMount() { | |
if (!this.props.authenticated) this.props.navigation.navigate('LoginForm') | |
} |
This file contains 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 React from 'react' | |
import PropTypes from 'prop-types'; | |
import Svg, {G, Path} from "react-native-svg"; | |
class ImageIco extends React.Component { | |
constructor(props) { | |
super(props); | |
} | |
render() { |
This file contains 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 React, {Component} from 'react' | |
import {connect} from 'react-redux' | |
export default function (ComposedComponent) { | |
class Authentication extends Component { | |
componentWillMount() { | |
if (!this.props.authenticated) this.props.navigation.navigate('LoginForm') | |
} |
OlderNewer