« first day (853 days earlier)      last day (583 days later) » 

04:21
Good Morning People :D
04:33
Good Morning All
kId
kId
good morning
04:57
Good Morning
 
1 hour later…
06:19
@curiousMind how to remove focus from edittext of adapter within an activity
 
1 hour later…
07:28
Hello everyone! Has anyone faced any issue of not getting any API key while creating a "google-services.gson" file?
07:48
@AnshulTyagi which scenario do you mean, btw?
leave. you're late
lol ok
08:22
@AnshulTyagi
@IshitaSinha how to disable radio button i mean i was did but its not look like disable just user can not select it. but i want to do like light grayscale color when its disable
@Ishita I am trying to use React-navigation
but got stuck
this is my App.js
when I am trying to add something like -
> const AppNavigator = StackNavigator({
Login: {
screen: Login,
},
Home: {
screen: Dashboard,
},
});

export default AppNavigator;
I am getting error as Only one default export allowed per module.
perhaps need to do some experiment after lunch
xP
BRB
08:57
@VishalThakkar setEnabled(false); isn't working for that case?
09:46
@AnshulTyagi is disable button but not view like disable button so User not identify its disable.
@AnshulTyagi i was make patch to set alpha
so its look like its disable. but i dont know is good way or not .
10:29
export default const AppNavigator = StackNavigator({
Login: {
screen: Login,
},
Home: {
screen: Dashboard,
},
});
or const AppNavigator = StackNavigator({
Login: {
screen: Login,
},
Home: {
screen: Dashboard,
},
});

export AppNavigator;
you already wrote export default class App, you can't write another export default
10:44
thats my question
that how to do that navigation thing, if I cant add one more export default
I wanna navigate from Login to Home / Dashboard screen
Android seems damn easy than this one :[]
You can add an export, just remove the default keyword
@NarendraJi welcome to my world 🤣🤣
:D
@IshitaSinha I tried but still was getting some issue
lemme try again and share with you
Then create another module for the navigator.
went above my head
You'll get all the info in React navigation docs
Oh
10:49
aah
the docs
I mean declare the navigator in another file
Call it routeconfig.js or something
that will be the new task for me xP
> const { navigate } = this.props.navigation;
navigate('Home')
Is this the correct way to navigate?
I am getting error like this -
11:05
@NarendraJi it would be if you mapped it
did you map it?
[eyeroll]
see line 78, 79
there I am trying to navigate to dashboard/Home screen
and App.js
@Ishita I hope, you will get the answer of your question
@NarendraJi you didn't bind "this" to check validations
Okay
how to do that?
11:10
see your own line 31 in login.js
eyeroll
I tried some bind thing
but it was causing errors
so got some workaround
mastermind is here'
@NarendraJi what was the error
right now, trying to fix this error
xP
I forgot those ones
then do that
do what?
is that connected with this error?
11:13
Nothing
@NarendraJi yes. this.props.navigation is empty because this is undefined because you didn't bind this to the method
so duplicate line 31 for checkValidations method
@Narendra hello?
yes
@IshitaSinha thinking that
@NarendraJi thinking??
thinking how to do that
11:17
-_-
[facepalm]
this.checkValidations = this.checkValidations.bind(this)
this.validations = this.checkValidations.bind(this)
something like this?
congratulations
yes, that I was thinking
and on button click, I need to call that validations
right?
11:19
on button click nothing needs to change
instead of directly calling checkValidations
just put that line in after the other bind
okay
> onPress={() => this.checkValidations()}
still error
I guess, I need to remove () from the checkValidations thing
@NarendraJi what's the error
@NarendraJi it's the same as without the braces
tell me what's the error
same error it seems
as the above ss
> undefined is not an object (evaluating 'this.props.navigation.navigate')
11:24
okay
wait
Okay
line 162, 32 & 68
@NarendraJi you haven't even added AppNavigator into the render of App.js -_-
how do you expect navigation props to be mapped into the login and dashboard screens
did you check the react navigation docs or not?
sorry :( kind of irked these days
I see
I didn't know thats why I was asking
read this carefully
I'm really sorry buddy :(
@NarendraJi I know, I should have been more patient :(
and you need to rewrite the render method's logic thus:
(pasting in hastebin, wait)
@IshitaSinha onPress={() => this.props.navigation.navigate('Details')}
are you mentioning this thing?
11:33
:/
my case is different
I wanted to call validation method first
I'm pasting the logic baba
Okies
App.js
look in the last lines of these class
there is the AppNavigator
should it be inside render()?
@Ishita
11:36
@NarendraJi this should be your App.js's render:
render() {
   return <AppNavigator/>;
}
Oh okay
now you also have to do a check to figure out the initial route
right?
right now its something like this -
> render() {
if (this.state.isLoggedIn)
return <Dashboard
onLogoutPress={() => this.setState({isLoggedIn: false})}
/>;
else
return <Login
onLoginPress={() => this.setState({isLoggedIn: true})}
/>;
}
for now, my target was to navigate from Login to Home
11:38
for that you'll have to pass the initial routename from App
fine, let's do that first
Hey, I somewhat got
I perhaps need to do in if condtion
if (this.state.isLoggedIn)
that return statement,
let me try
yes, but you'll have to create a functional component for the navigator if you want to pass props to it
you can't directly pass isLoggedIn to AppNavigator
mm ok
let me proceed step by step
11:39
something like this:
AppNavContainer = (props) => {
    return (<AppNavigator props={props}/>)
}
and then
render() {
   return <AppNavContainer isLoggedIn={this.state.isLoggedIn}/>;
}
but...you can't directly modify isLoggedIn which is in App component's state from another component (either login or dashboard)
for that you would need a global state :(
and for that you would probably need redux or flux :(
anyway, for now add appnavigator in the render of App.js and check if navigation props still remains undefined @NarendraJi
Good night
you reached?
not yet...
your TL is mad
and when will that ID be issued?
12:24
@IshitaSinha AppNavContainer?
do I need to declare something in order to make it accessible?
@NarendraJi of course
export
const
Okay
doing
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task 'MyApp:transformClassesWithJarMergingForDebug'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: org/apache/commons/io/CopyUtils.class
i am getting above error while making my project
me too
:P
55
A: java.util.zip.ZipException: duplicate entry during packageAllDebugClassesForMultiDex

GeekHadesYou need to check that you have inserted v4 library and compile library? You must not repeat library in your app or your dependence program. delete the repeat library so that just one V4 remains. in your app dir build.gradle file add this command: android{ configurations { all*....

79
A: java.util.zip.ZipException: duplicate entry during packageAllDebugClassesForMultiDex

zwebieYou've probably fixed this by now but just so this doesn't stay unanswered, Try adding this to your build.gradle: configurations { all*.exclude group: 'com.android.support', module: 'support-v4' }

12:29
ha ha
no still this is showing error
what ur gradle is saying?
yes, because your file has something from apache that's duplicate
12
A: Gradle build failed: java.util.zip.ZipException: duplicate entry: org/apache/commons/io/CopyUtils.class

Rasool MohamedPlease use the below code in build.gradle file. configurations { all*.exclude group: 'org.apache.commons' } Enjoy!!!

check this one too
12:36
v good
:)
for what
but i am using org.apache.commons.lang3 in my app
have u tried checking that?
yes i tried but now it giving error in my source code that could't resolve org.apache.commons.lang3
kId
kId
12:54
@NakAndroidDev can you please show your gradle
kId
kId
remove these dependencies
compile 'org.apache.commons:commons-io:1.3.2'
        compile('org.apache.httpcomponents:httpmime:4.3.6') {
            exclude module: "httpclient"
        }
        compile 'org.apache.httpcomponents:httpclient-android:4.3.5.1'
        compile 'org.apache.commons:commons-lang3:3.4'
and add one by one and check for which dependency it is causing the problem
but i am using those
ok
kId
kId
and also check there is no jar files of those libraries
in libs folder
I used
compile 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2'
this one
for apache
13:44
@kId
 
2 hours later…
15:58
posted on May 17, 2018 by Android Developers

Posted by Gerardo Capiel and Varouj Chitilian, Google Pay Today's customers want to get things done faster than ever, whether they're ordering groceries or shopping for a new pair of shoes. With Google Pay, we want to ensure checkout doesn't slow them (or your conversions) down, while enhancing the customer experience at every step of the way. Last week at Google I/O, we announced s

16:15
@AnshulTyagi @ColdFire
 
1 hour later…
17:27
@NakAndroidDev yes ?
17:56
@NakAndroidDev ?

« first day (853 days earlier)      last day (583 days later) »